Diferencia entre revisiones de «Plantilla:SiteColor»
De Inkipedia
m (Added hex codes; removed User:GuyPerfect/) |
m (Added example markup for templates) |
||
Línea 22: | Línea 22: | ||
==== Markup ==== | ==== Markup ==== | ||
<nowiki><span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span></nowiki> | <nowiki><span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span></nowiki> | ||
For use in templates with an optional color parameter: | |||
<nowiki>style=" background:rgb({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}); "</nowiki> | |||
==== Output ==== | ==== Output ==== | ||
<span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span> | <span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span> | ||
</noinclude> | </noinclude> |
Revisión del 15:47 13 abr 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:
|
Example
Markup
<span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span>
For use in templates with an optional color parameter:
style=" background:rgb({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}); "
Output
Sample text