Difference between revisions of "Template:SiteColor"
ink>Kjhf m (Kjhf moved page Template:Sitecolor to Template:SiteColor over redirect) |
ink>Kjhf m (Added hex codes; removed User:GuyPerfect/) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#switch: "{{{1|}}}" | <includeonly>{{#switch: "{{{1|}}}" | ||
| − | |"Generic" = 0, 153, 255 | + | |"Generic" = 0, 153, 255 <!-- #0099FF --> |
| − | |"NIWA" = 255, 128, 0 | + | |"NIWA" = 255, 128, 0 <!-- #FF8000 --> |
| − | |"Splatoon" = 170, 220, 0 | + | |"Splatoon" = 170, 220, 0 <!-- #AADC00 --> |
| − | |"Splatoon 2" = 240, 60, 120 | + | |"Splatoon 2" = 240, 60, 120 <!-- #F03C78 --> |
| − | |#default = 192, 192, 192 | + | |#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 13: | Line 13: | ||
|<code>theme</code>||Unnamed. | |<code>theme</code>||Unnamed. | ||
|The theme ID for the color to use. Must be one of the following: | |The theme ID for the color to use. Must be one of the following: | ||
| − | *{{Ink|custom|16|rgb({{ | + | *{{Ink|custom|16|rgb({{SiteColor|Generic}})}} Generic |
| − | *{{Ink|custom|16|rgb({{ | + | *{{Ink|custom|16|rgb({{SiteColor|Splatoon}})}} Splatoon |
| − | *{{Ink|custom|16|rgb({{ | + | *{{Ink|custom|16|rgb({{SiteColor|Splatoon 2}})}} Splatoon 2 |
| − | *{{Ink|custom|16|rgb({{ | + | *{{Ink|custom|16|rgb({{SiteColor}})}} ''Any other value'' |
|} | |} | ||
| Line 24: | Line 24: | ||
==== Output ==== | ==== Output ==== | ||
| − | <span style="color: rgb({{ | + | <span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span> |
</noinclude> | </noinclude> | ||
Revision as of 15:45, 13 April 2017
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>
Output
Sample text