Difference between revisions of "Template:SiteColor"

From WikiMe @ iroiro.io
Jump to: navigation, search
ink>UsaNeko123
ink>Bzeep
m (Reverted edits by UsaNeko123 (talk) to last revision by Heddy)
Line 3: Line 3:
 
|"NIWA"      = 255, 128, 0    <!-- #FF8000 -->
 
|"NIWA"      = 255, 128, 0    <!-- #FF8000 -->
 
|"Splatoon"  = 170, 220, 0    <!-- #AADC00 -->
 
|"Splatoon"  = 170, 220, 0    <!-- #AADC00 -->
|"Splatoon 2" = 0,128,128   <!-- #008080 -->
+
|"Splatoon 2" = 240, 60, 120   <!-- #F03C78 -->
 
|#default    = 192, 192, 192  <!-- #C0C0C0 -->
 
|#default    = 192, 192, 192  <!-- #C0C0C0 -->
 
}}</includeonly><noinclude>__NOTOC__
 
}}</includeonly><noinclude>__NOTOC__

Revision as of 02:20, 11 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:
  •   Generic
  •   Splatoon
  •   Splatoon 2
  •   NIWA
  •   Any other value

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