Template:SiteColor: Difference between revisions
From Inkipedia, the Splatoon wiki
GuyPerfect (talk | contribs) m (Adding example) |
GuyPerfect (talk | contribs) m (Removing TOC) |
||
Line 4: | Line 4: | ||
|#default = 196, 196, 196 | |#default = 196, 196, 196 | ||
}}{{#if:{{{2|}}}|, {{{2}}}}})</includeonly><noinclude> | }}{{#if:{{{2|}}}|, {{{2}}}}})</includeonly><noinclude> | ||
__NOTOC__ | |||
Produces a CSS color value using Inkipedia site colors. | Produces a CSS color value using Inkipedia site colors. | ||
Revision as of 02:15, 17 January 2017
Produces a CSS color value using Inkipedia site colors.
Usage
{{SiteColor|theme[|alpha]}}
Parameters
theme - The theme ID for the color to use. Must be one of the following:
- "Splatoon"
- "Splatoon 2"
- Any other value
alpha - If present, a number in the range [0.0, 1.0] representing the opacity of the color. If absent, a fully-opaque color is produced.
Example
Markup
<span style="color: {{SiteColor|Splatoon 2|0.5}};">Sample text</span>
Output
Sample text