Difference between revisions of "Template:Font colour"
GrampaSwood (talk | contribs) m (Added a note so I know to deal with it later) |
GrampaSwood (talk | contribs) m |
||
Line 3: | Line 3: | ||
ISSUE: The switch statement doesn't parse "strange" as the parameter, but rather as the actual input for some reason. Fix that, somehow. | 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 | + | --><font color="{{#switch:{{{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:
User:GrampaSwood/Template:Font colour
{{Font colour|strange|Strange items}}
produces:
User:GrampaSwood/Template:Font colour