Difference between revisions of "Template:Font colour"

From Team Fortress Wiki
Jump to: navigation, search
m
(added custom hex example)
Line 31: Line 31:
 
<code><nowiki>{{Font colour|strange|Strange items}}</nowiki></code> produces:
 
<code><nowiki>{{Font colour|strange|Strange items}}</nowiki></code> produces:
 
{{Font colour|strange|Strange items}}
 
{{Font colour|strange|Strange items}}
 +
 +
<code><nowiki>{{Font colour|E52A6F|Goodbye Wiki!}}</nowiki></code> produces:
 +
{{Font colour|E52A6F|Goodbye Wiki!}}
 
</noinclude>
 
</noinclude>

Revision as of 03:56, 22 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 (must be in all lowercase). 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

{{Font colour|E52A6F|Goodbye Wiki!}} produces: Goodbye Wiki!