Template:TColor: Difference between revisions

From [N8]
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><span style="color:{{#switch:{{{2|}}}
<includeonly><span style="color:{{#switch:{{{color|}}}
|#default = #000000
|#default = #000000
|silver = #C0C0C0
|silver = #C0C0C0
Line 15: Line 15:
|fuchsia = #FF00FF
|fuchsia = #FF00FF
|purple = #800080
|purple = #800080
}}">'''{{{1}}}'''</span></includeonly><noinclude>
}}">'''{{{color}}}'''</span></includeonly><noinclude>
{{/doc}}
{{/doc}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 18:56, 4 June 2020

Template documentation
This documentation is transcluded from Template:TColor/doc. [edit] [purge]

This makes text any color of the following color parameters.

Syntax

{{{TColor|<Text Color>|<Text>|<Background Color>(Optional)}}

Usage

Without background:

{{TColor|fuchsia|example text}}

{{{color}}}

With background

{{TColor|white|example text|green}}

{{{color}}}

More Examples:
{{{color}}}
{{{color}}}
{{{color}}}

With Formatting

{{TColor|fuchsia|'''example text'''}}

{{{color}}}

Parameters

  • black - {{{color}}}
  • silver - {{{color}}}
  • gray - {{{color}}}
  • red - {{{color}}}
  • maroon - {{{color}}}
  • yellow - {{{color}}}
  • olive - {{{color}}}
  • lime - {{{color}}}
  • green - {{{color}}}
  • aqua - {{{color}}}
  • teal - {{{color}}}
  • blue - {{{color}}}
  • navy - {{{color}}}
  • fuchsia - {{{color}}}
  • purple - {{{color}}}
  • gold - {{{color}}}
  • gemini - {{{color}}}
  • orange - {{{color}}}