Template:SiteColor: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Adding entry for Generic. Same color as Splatoon for now, but now it's not set in stone.)
m (Updating documentation, removing NIWA definition)
Line 9: Line 9:
Produces an RGB triplet color value using Inkipedia site colors.
Produces an RGB triplet color value using Inkipedia site colors.


=== Usage ===
=== Parameters ===
<nowiki>{{</nowiki>SiteColor|''theme''}}
{|
==== Parameters ====
|- style="vertical-align: top;"
''theme'' - The theme ID for the color to use. Must be one of the following:
|<code>theme</code>||Unnamed.
|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|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
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor|NIWA}})}} NIWA
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor}})}} ''Any other value''
*{{Ink|custom|16|rgb({{User:GuyPerfect/SiteColor}})}} ''Any other value''
|}


=== Example ===
=== Example ===

Revision as of 06:43, 18 January 2017


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
  •   Any other value

Example

Markup

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

Output

Sample text