Diferencia entre revisiones de «Plantilla:SiteColor»

De Inkipedia
(Added Splatoon 3)
m (2 revisiones importadas desde fandom:Plantilla:SiteColor)
Línea 1: Línea 1:
<includeonly>{{#switch: "{{{1|}}}"
{{#switch: "{{{1|}}}"
|"Generic"        = 0, 153, 255    <!-- #0099FF -->
|"Generic"        = 240, 60, 120    <!-- #F03C78 -->
|"NIWA"          = 255, 128, 0    <!-- #FF8000 -->
|"NIWA"          = 255, 128, 0    <!-- #FF8000 -->
|"Splatoon"      = 170, 220, 0    <!-- #AADC00 -->
|"Splatoon"      = 170, 220, 0    <!-- #AADC00 -->
|"Splatoon 2"    = 240, 60, 120    <!-- #F03C78 -->
|"Splatoon 2"    = 240, 60, 120    <!-- #F03C78 -->
|"Splatoon 3"    = 235, 238, 61    <!-- #EBEE3D -->
|"Octo Expansion" = 174, 21, 102    <!-- #AE1566 -->
|"Octo Expansion" = 174, 21, 102    <!-- #AE1566 -->
|#default        = 192, 192, 192  <!-- #C0C0C0 -->
|#default        = 192, 192, 192  <!-- #C0C0C0 -->
}}</includeonly><noinclude>__NOTOC__
}}
Produces an RGB triplet color value using Inkipedia site colors.
 
=== Parameters ===
{|
|- style="vertical-align: top;"
|<code>theme</code>||Unnamed.
|The theme ID for the color to use. Must be one of the following:
*{{Ink|custom|1|rgb({{SiteColor|Generic}})}} Generic
*{{Ink|custom|1|rgb({{SiteColor|Splatoon}})}} {{S}}
*{{Ink|custom|1|rgb({{SiteColor|Splatoon 2}})}} {{S2}}
*{{Ink|custom|1|rgb({{SiteColor|Splatoon 3}})}} {{S3}}
*{{Ink|custom|1|rgb({{SiteColor|Octo Expansion}})}} Octo Expansion
*{{Ink|custom|1|rgb({{SiteColor|NIWA}})}} NIWA
*{{Ink|custom|1|rgb({{SiteColor}})}} ''Any other value''
|}
 
=== Example ===
==== Markup ====
<nowiki><span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span></nowiki>
 
For use in templates with an optional color parameter:
<nowiki>style=" background:rgb({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}); "</nowiki>
 
==== Output ====
<span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span>
</noinclude>

Revisión del 21:52 5 mar 2022

192, 192, 192