Difference between revisions of "Template:SiteColor"

From WikiMe @ iroiro.io
Jump to: navigation, search
ink>GuyPerfect
m (It makes more sense as just the color triplet)
ink>GuyPerfect
m
Line 17: Line 17:
 
=== Example ===
 
=== Example ===
 
==== Markup ====
 
==== Markup ====
  <nowiki><span style="color: rgb({{SiteColor|Splatoon 2|0.5}});">Sample text</span></nowiki>
+
  <nowiki><span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span></nowiki>
  
 
==== Output ====
 
==== Output ====
 
<span style="color: rgb({{User:GuyPerfect/SiteColor|Splatoon 2}});">Sample text</span>
 
<span style="color: rgb({{User:GuyPerfect/SiteColor|Splatoon 2}});">Sample text</span>
 
</noinclude>
 
</noinclude>

Revision as of 03:11, 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"
  •   Any other value

Example

Markup

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

Output

Sample text