Template:Color: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Text replacement - "Category:Formatting Templates" to "Category:Formatting templates")
(making into module invocation)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<span style="color:{{#ifeq:{{{3|}}}|ingame|rgb({{TextColor|{{{2}}}}})|{{{2}}}}}">{{{1}}}</span><noinclude>
<includeonly>{{#invoke:Color|main}}</includeonly><noinclude>
Template invocation of [[Module:Color]].


== Summary ==
{{:Module:Color/doc}}
Colors text the specified color.
</noinclude>
 
{{t|Color|The Text|The Color|ingame}}
 
If <code>ingame</code> is present, the named color is passed to [[Template:TextColor]] to show in-game color, instead of using HTML notation
 
To color links, see {{t|Color-link}}
 
== Examples ==
{| class="wikitable sitecolor-generic"
! Code
! Result
|-
|<code><nowiki>{{color|Named Example|red}}</nowiki></code>||{{color|Named Example|red}}
|-
|<code><nowiki>{{color|In-Game Example|Orange S2|ingame}}</nowiki></code>||{{color|In-Game Example|Orange S2|ingame}}
|-
|<code><nowiki>{{color|Hex Example|#0055FF}}</nowiki></code>||{{color|Hex Example|#0055FF}}
|}
 
[[Category:Formatting templates|Color]]</noinclude>

Latest revision as of 14:34, 10 September 2023

Template invocation of Module:Color.

Summary

Colors text the specified color.

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

If ingame is present, the named color is passed to {{TextColor|<color>}} to show in-game color, instead of using HTML notation

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

Examples

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