Difference between revisions of "Template:SiteColor"

From WikiMe @ iroiro.io
Jump to: navigation, search
ink>GuyPerfect
m
ink>GuyPerfect
m
Line 1: Line 1:
 
<includeonly>{{#switch: "{{{1|}}}"
 
<includeonly>{{#switch: "{{{1|}}}"
 +
|"NIWA"      = 255, 128, 0
 
|"Splatoon"  = 170, 220, 0
 
|"Splatoon"  = 170, 220, 0
 
|"Splatoon 2" = 240, 60, 120
 
|"Splatoon 2" = 240, 60, 120
Line 11: Line 12:
 
==== Parameters ====
 
==== Parameters ====
 
''theme'' - The theme ID for the color to use. Must be one of the following:
 
''theme'' - The theme ID for the color to use. Must be one of the following:
*{{Ink|custom|16|rgb(170, 220, 0)}} "Splatoon"
+
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor|Splatoon}})}} Splatoon
*{{Ink|custom|16|rgb(240, 60, 120)}} "Splatoon 2"
+
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor|Splatoon 2}})}} Splatoon 2
 +
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor|NIWA}})}} NIWA
 
*{{Ink|custom|16|rgb(196, 196, 196)}} ''Any other value''
 
*{{Ink|custom|16|rgb(196, 196, 196)}} ''Any other value''
  

Revision as of 05:47, 17 January 2017


Produces an RGB triplet color value using Inkipedia site colors.

Usage

{{SiteColor|theme}}

Parameters

theme - The theme ID for the color to use. Must be one of the following:

  •   Splatoon
  •   Splatoon 2
  •   NIWA
  •   Any other value

Example

Markup

<span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span>

Output

Sample text