Template:SiteColor: Difference between revisions
From Inkipedia, the Splatoon wiki
m (Reverted edits by UsaNeko123 (talk) to last revision by Heddy) |
(Adding Octo Expansion) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: "{{{1|}}}" | <includeonly>{{#switch: "{{{1|}}}" | ||
|"Generic" | |"Generic" = 0, 153, 255 <!-- #0099FF --> | ||
|"NIWA" | |"NIWA" = 255, 128, 0 <!-- #FF8000 --> | ||
|"Splatoon" | |"Splatoon" = 170, 220, 0 <!-- #AADC00 --> | ||
|"Splatoon 2" = 240, 60, 120 <!-- #F03C78 --> | |"Splatoon 2" = 240, 60, 120 <!-- #F03C78 --> | ||
|#default | |"Octo Expansion" = 174, 21, 102 <!-- #AE1566 --> | ||
|#default = 192, 192, 192 <!-- #C0C0C0 --> | |||
}}</includeonly><noinclude>__NOTOC__ | }}</includeonly><noinclude>__NOTOC__ | ||
Produces an RGB triplet color value using Inkipedia site colors. | Produces an RGB triplet color value using Inkipedia site colors. | ||
Line 16: | Line 17: | ||
*{{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|Octo Expansion}})}} Octo Expansion | |||
*{{Ink|custom|16|rgb({{SiteColor|NIWA}})}} NIWA | *{{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 11:23, 16 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