Diferencia entre revisiones de «Plantilla:SiteColor»
De Inkipedia
m (Kjhf moved page Template:Sitecolor to Template:SiteColor over redirect) |
m (Added hex codes; removed User:GuyPerfect/) |
||
Línea 1: | Línea 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. | ||
Línea 13: | Línea 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'' | ||
|} | |} | ||
Línea 24: | Línea 24: | ||
==== Output ==== | ==== Output ==== | ||
<span style="color: rgb({{ | <span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span> | ||
</noinclude> | </noinclude> |
Revisión del 15:45 13 abr 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