Template:SiteColor: Difference between revisions
From Inkipedia, the Splatoon wiki
GuyPerfect (talk | contribs) m (Removing TOC) |
GuyPerfect (talk | contribs) m (It makes more sense as just the color triplet) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#switch: "{{{1|}}}" | ||
|"Splatoon" = 170, 220, 0 | |"Splatoon" = 170, 220, 0 | ||
|"Splatoon 2" = 240, 60, 120 | |"Splatoon 2" = 240, 60, 120 | ||
|#default = 196, 196, 196 | |#default = 196, 196, 196 | ||
}} | }}</includeonly><noinclude> | ||
__NOTOC__ | __NOTOC__ | ||
Produces | Produces an RGB triplet color value using Inkipedia site colors. | ||
=== Usage === | === Usage === | ||
<nowiki>{{</nowiki>SiteColor|''theme'' | <nowiki>{{</nowiki>SiteColor|''theme''}} | ||
==== Parameters ==== | ==== Parameters ==== | ||
''theme'' - The theme ID for the color to use. Must be one of the following: | ''theme'' - The theme ID for the color to use. Must be one of the following: | ||
Line 14: | Line 14: | ||
*{{Ink|custom|16|rgb(240, 60, 120)}} "Splatoon 2" | *{{Ink|custom|16|rgb(240, 60, 120)}} "Splatoon 2" | ||
*{{Ink|custom|16|rgb(196, 196, 196)}} ''Any other value'' | *{{Ink|custom|16|rgb(196, 196, 196)}} ''Any other value'' | ||
=== Example === | === Example === | ||
==== Markup ==== | ==== Markup ==== | ||
<nowiki><span style="color: {{SiteColor|Splatoon 2|0.5}};">Sample text</span></nowiki> | <nowiki><span style="color: rgb({{SiteColor|Splatoon 2|0.5}});">Sample text</span></nowiki> | ||
==== Output ==== | ==== Output ==== | ||
<span style="color: {{User:GuyPerfect/SiteColor|Splatoon 2 | <span style="color: rgb({{User:GuyPerfect/SiteColor|Splatoon 2}});">Sample text</span> | ||
</noinclude> | </noinclude> |
Revision as of 02:20, 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|0.5}});">Sample text</span>
Output
Sample text