Difference between revisions of "Template:Font colour"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Added a note so I know to deal with it later)
Line 1: Line 1:
<font color="{{#switch: {{ucfirst:{{{1}}}}}
+
<!--
 +
 
 +
ISSUE: The switch statement doesn't parse "strange" as the parameter, but rather as the actual input for some reason. Fix that, somehow.
 +
 
 +
--><font color="{{#switch:{{ucfirst:{{{1}}}}}
 
| normal = #B2B2B2
 
| normal = #B2B2B2
 
| unique = #FFD700
 
| unique = #FFD700

Revision as of 00:35, 11 February 2024

{{{2}}}

Documentation for Font colour

Template for changing font colours. By default supports all item qualities in TF2. Otherwise accepts hex and text (e.g. "red").

Usage

{{Font colour|1|2}}

1
Accepts colours and hex values, as well as item quality names. Defaults to black.
2
Text to display in the aforementioned colour.

Example

{{Font colour|green|Hello Wiki!}} produces: Hello Wiki!

{{Font colour|strange|Strange items}} produces: Strange items