Difference between revisions of "Template:SiteColor"
ink>Thinker224 (Undo revision 122244 by Thinker224 (talk)) |
ink>Heddy (NIWA) |
||
| Line 16: | Line 16: | ||
*{{Ink|custom|16|rgb({{SiteColor|Splatoon}})}} Splatoon | *{{Ink|custom|16|rgb({{SiteColor|Splatoon}})}} Splatoon | ||
*{{Ink|custom|16|rgb({{SiteColor|Splatoon 2}})}} Splatoon 2 | *{{Ink|custom|16|rgb({{SiteColor|Splatoon 2}})}} Splatoon 2 | ||
| + | *{{Ink|custom|16|rgb({{SiteColor|NIWA}})}} NIWA | ||
*{{Ink|custom|16|rgb({{SiteColor}})}} ''Any other value'' | *{{Ink|custom|16|rgb({{SiteColor}})}} ''Any other value'' | ||
|} | |} | ||
Revision as of 14:28, 9 June 2018
Produces an RGB triplet color value using Inkipedia site colors.
Parameters
theme |
Unnamed. | The theme ID for the color to use. Must be one of the following:
|
Example
Markup
<span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span>
For use in templates with an optional color parameter:
style=" background:rgb({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}); "
Output
Sample text