Diferencia entre revisiones de «Plantilla:SiteColor»
De Inkipedia
m (Removing TOC) |
m (It makes more sense as just the color triplet) |
||
Línea 1: | Línea 1: | ||
<includeonly> | <includeonly>{{#switch: "{{{1|}}}" | ||
|"Splatoon" = 170, 220, 0 | |"Splatoon" = 170, 220, 0 | ||
|"Splatoon 2" = 240, 60, 120 | |"Splatoon 2" = 240, 60, 120 | ||
|#default = 196, 196, 196 | |#default = 196, 196, 196 | ||
}} | }}</includeonly><noinclude> | ||
__NOTOC__ | __NOTOC__ | ||
Produces | Produces an RGB triplet color value using Inkipedia site colors. | ||
=== Usage === | === Usage === | ||
<nowiki>{{</nowiki>SiteColor|''theme'' | <nowiki>{{</nowiki>SiteColor|''theme''}} | ||
==== Parameters ==== | ==== Parameters ==== | ||
''theme'' - The theme ID for the color to use. Must be one of the following: | ''theme'' - The theme ID for the color to use. Must be one of the following: | ||
Línea 14: | Línea 14: | ||
*{{Ink|custom|16|rgb(240, 60, 120)}} "Splatoon 2" | *{{Ink|custom|16|rgb(240, 60, 120)}} "Splatoon 2" | ||
*{{Ink|custom|16|rgb(196, 196, 196)}} ''Any other value'' | *{{Ink|custom|16|rgb(196, 196, 196)}} ''Any other value'' | ||
=== Example === | === Example === | ||
==== Markup ==== | ==== Markup ==== | ||
<nowiki><span style="color: {{SiteColor|Splatoon 2|0.5}};">Sample text</span></nowiki> | <nowiki><span style="color: rgb({{SiteColor|Splatoon 2|0.5}});">Sample text</span></nowiki> | ||
==== Output ==== | ==== Output ==== | ||
<span style="color: {{User:GuyPerfect/SiteColor|Splatoon 2 | <span style="color: rgb({{User:GuyPerfect/SiteColor|Splatoon 2}});">Sample text</span> | ||
</noinclude> | </noinclude> |
Revisión del 02:20 17 ene 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:
- Plantilla:Ink "Splatoon"
- Plantilla:Ink "Splatoon 2"
- Plantilla:Ink Any other value
Example
Markup
<span style="color: rgb({{SiteColor|Splatoon 2|0.5}});">Sample text</span>
Output
Sample text