Diferencia entre revisiones de «Plantilla:SiteColor»
De Inkipedia
(Created page with "<includeonly>rgb{{#if:{{{2|}}}|a}}({{#switch: "{{{1|}}}" |"Splatoon" = 170, 220, 0 |"Splatoon 2" = 240, 60, 120 |#default = 196, 196, 196 }}{{#if:{{{2|}}}|, {{{2}}}}})</...") |
m (Adding example) |
||
Línea 14: | Línea 14: | ||
*{{Ink|custom|16|rgb(196, 196, 196)}} ''Any other value'' | *{{Ink|custom|16|rgb(196, 196, 196)}} ''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. | ''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 ==== | |||
<nowiki><span style="color: {{SiteColor|Splatoon 2|0.5}};">Sample text</span></nowiki> | |||
==== Output ==== | |||
<span style="color: {{User:GuyPerfect/SiteColor|Splatoon 2|0.5}};">Sample text</span> | |||
</noinclude> | </noinclude> |
Revisión del 02:14 17 ene 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:
- Plantilla:Ink "Splatoon"
- Plantilla:Ink "Splatoon 2"
- Plantilla:Ink 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