Template:SiteColor: Difference between revisions
From Inkipedia, the Splatoon wiki
GuyPerfect (talk | contribs) m (It makes more sense as just the color triplet) |
GuyPerfect (talk | contribs) mNo edit summary |
||
Line 17: | Line 17: | ||
=== Example === | === Example === | ||
==== Markup ==== | ==== Markup ==== | ||
<nowiki><span style="color: rgb({{SiteColor|Splatoon 2 | <nowiki><span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span></nowiki> | ||
==== Output ==== | ==== Output ==== | ||
<span style="color: rgb({{User:GuyPerfect/SiteColor|Splatoon 2}});">Sample text</span> | <span style="color: rgb({{User:GuyPerfect/SiteColor|Splatoon 2}});">Sample text</span> | ||
</noinclude> | </noinclude> |
Revision as of 03:11, 17 January 2017
Produces an RGB triplet color value using Inkipedia site colors.
Usage
{{SiteColor|theme}}
Parameters
theme - The theme ID for the color to use. Must be one of the following:
- "Splatoon"
- "Splatoon 2"
- Any other value
Example
Markup
<span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span>
Output
Sample text