Template:SiteColor: Difference between revisions
From Inkipedia, the Splatoon wiki
(Added Splatoon 3) |
(adding category, not sure why this doesn't have a category, a lot of templates are uncategorized, that should be fixed; hopefully i did this right lol) |
||
Line 34: | Line 34: | ||
<span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span> | <span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span> | ||
</noinclude> | </noinclude> | ||
<noinclude> | |||
[[Category:Templates]]</noinclude> |
Revision as of 14:35, 29 September 2022
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