Difference between revisions of "Template:SiteColor"

From WikiMe @ iroiro.io
Jump to: navigation, search
ink>GuyPerfect
m
ink>GuyPerfect
m (Adding entry for Generic. Same color as Splatoon for now, but now it's not set in stone.)
Line 1: Line 1:
 
<includeonly>{{#switch: "{{{1|}}}"
 
<includeonly>{{#switch: "{{{1|}}}"
 +
|"Generic"    = 170, 220, 0
 
|"NIWA"      = 255, 128, 0
 
|"NIWA"      = 255, 128, 0
 
|"Splatoon"  = 170, 220, 0
 
|"Splatoon"  = 170, 220, 0
Line 12: Line 13:
 
==== 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({{User:GuyPerfect/SiteColor|Generic}})}} Generic
 
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor|Splatoon}})}} Splatoon
 
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor|Splatoon}})}} Splatoon
 
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor|Splatoon 2}})}} Splatoon 2
 
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor|Splatoon 2}})}} Splatoon 2

Revision as of 06:38, 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:

  •   Generic
  •   Splatoon
  •   Splatoon 2
  •   NIWA
  •   Any other value

Example

Markup

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

Output

Sample text