Template:Color: Difference between revisions
From Inkipedia, the Splatoon wiki
m (Text replacement - "Category:Formatting Templates" to "Category:Formatting templates") |
Trig Jegman (talk | contribs) (& testing something) Tag: Reverted |
||
Line 1: | Line 1: | ||
<span style="color:{{#ifeq:{{{3|}}}|ingame|rgb({{TextColor|{{{2}}}}})|{{{2}}}}}">{{{1}}}</span><noinclude> | <span style="color:{{#ifeq:{{{3|}}}|ingame|rgb({{TextColor|{{{2}}}}})|{{{2}}}}}">{{{1}}}text-align: {{#if: {{{4|}}}|center|start}}</span><noinclude> | ||
== Summary == | == Summary == |
Revision as of 23:44, 10 February 2023
{{{1}}}text-align: start
Summary
Colors text the specified color.
{{Color|<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 |
---|---|
{{color|Named Example|red}} |
Named Exampletext-align: start |
{{color|In-Game Example|Orange S2|ingame}} |
In-Game Exampletext-align: start |
{{color|Hex Example|#0055FF}} |
Hex Exampletext-align: start |