Template:TC: Difference between revisions

From Inkipedia, the Splatoon wiki
mNo edit summary
m (hiding template from source page since it just shows {{{1}}})
 
Line 1: Line 1:
<div style="color:{{#ifeq:{{{3|}}}|ingame|rgb({{TextColor|{{{2}}}}})|{{{2}}}}}; text-align: center;">{{{1}}}</div><noinclude>
<includeonly><div style="color:{{#ifeq:{{{3|}}}|ingame|rgb({{TextColor|{{{2}}}}})|{{{2}}}}}; text-align: center;">{{{1}}}</div></includeonly><noinclude>== Summary ==
 
== Summary ==
Colors text the specified color and centers the text, for tables. Not to be confused with [[Template:Color]].
Colors text the specified color and centers the text, for tables. Not to be confused with [[Template:Color]].



Latest revision as of 12:52, 12 March 2024

Summary

Colors text the specified color and centers the text, for tables. Not to be confused with Template:Color.

{{TC|<The Text>|<The Color>|<ingame>}}

If ingame is present, the named color is passed to Template:TextColor to show in-game color, instead of using HTML notation

To color links, see {{Color-link}}

Examples

Code Result
{{TC|Named Example|red}}
Named Example
{{TC|In-Game Example|Orange S2|ingame}}
In-Game Example
{{TC|Hex Example|#0055FF}}
Hex Example