Template:TColor: Difference between revisions

From [N8]
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style=
<includeonly><span style=
"color:{{#switch:{{{1|}}}
"color:{{#switch:{{{1|}}}
|#default = #000000
|black = #000000
|white = #FFFFFF
|white = #FFFFFF
|silver = #C0C0C0
|silver = #C0C0C0
Line 18: Line 18:
|purple = #800080
|purple = #800080
|orange = #FFA500
|orange = #FFA500
|gold = #FFA500
|gold = #FFD700
|gemini = #04090a
|gemini = #04090a
|#default = #000000
}};
}};
background-color:{{#switch:{{{3}}}
background-color:{{#if:{{{3|}}}|{{#switch:{{{3}}}|
|#default = #000000
|white = #FFFFFF
|white = #FFFFFF
|black = #000000
|silver = #C0C0C0
|silver = #C0C0C0
|gray = #808080
|gray = #808080
Line 39: Line 40:
|purple = #800080
|purple = #800080
|orange = #FFA500
|orange = #FFA500
|gold = #FFA500
|gold = #FFD700
|gemini = #04090a
|gemini = #04090a
}}"
|#default = #FFFFFF
>'''{{{2}}}'''</span></includeonly><noinclude>
}}}}"
>{{{2}}}</span></includeonly><noinclude>
{{/doc}}
{{/doc}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 20:43, 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}}

example text

With background

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

example text

More Examples:
example text
example text
example text

With Formatting

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

example text

Parameters

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