Difference between revisions of "Template:SiteColor"

From WikiMe @ iroiro.io
Jump to: navigation, search
ink>GuyPerfect
m
ink>GuyPerfect
m
Line 3: Line 3:
 
|"Splatoon"  = 170, 220, 0
 
|"Splatoon"  = 170, 220, 0
 
|"Splatoon 2" = 240, 60, 120
 
|"Splatoon 2" = 240, 60, 120
|#default    = 196, 196, 196
+
|#default    = 192, 192, 192
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
__NOTOC__
 
__NOTOC__
Line 15: Line 15:
 
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor|Splatoon 2}})}} 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({{User:GuyPerfect/SiteColor|NIWA}})}} NIWA
*{{Ink|custom|16|rgb(196, 196, 196)}} ''Any other value''
+
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor}})}} ''Any other value''
  
 
=== Example ===
 
=== Example ===

Revision as of 05:48, 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