Diferencia entre revisiones de «Plantilla:SiteColor»
De Inkipedia
m (Protected "Template:SiteColor": Widely transcluded ([Edit=Allow only autoconfirmed users] (indefinite))) |
(Added Splatoon 3) |
||
Línea 4: | Línea 4: | ||
|"Splatoon" = 170, 220, 0 <!-- #AADC00 --> | |"Splatoon" = 170, 220, 0 <!-- #AADC00 --> | ||
|"Splatoon 2" = 240, 60, 120 <!-- #F03C78 --> | |"Splatoon 2" = 240, 60, 120 <!-- #F03C78 --> | ||
|"Splatoon 3" = 235, 238, 61 <!-- #EBEE3D --> | |||
|"Octo Expansion" = 174, 21, 102 <!-- #AE1566 --> | |"Octo Expansion" = 174, 21, 102 <!-- #AE1566 --> | ||
|#default = 192, 192, 192 <!-- #C0C0C0 --> | |#default = 192, 192, 192 <!-- #C0C0C0 --> | ||
Línea 15: | Línea 16: | ||
|The theme ID for the color to use. Must be one of the following: | |The theme ID for the color to use. Must be one of the following: | ||
*{{Ink|custom|1|rgb({{SiteColor|Generic}})}} Generic | *{{Ink|custom|1|rgb({{SiteColor|Generic}})}} Generic | ||
*{{Ink|custom|1|rgb({{SiteColor|Splatoon}})}} | *{{Ink|custom|1|rgb({{SiteColor|Splatoon}})}} {{S}} | ||
*{{Ink|custom|1|rgb({{SiteColor|Splatoon 2}})}} Splatoon | *{{Ink|custom|1|rgb({{SiteColor|Splatoon 2}})}} {{S2}} | ||
*{{Ink|custom|1|rgb({{SiteColor|Splatoon 3}})}} {{S3}} | |||
*{{Ink|custom|1|rgb({{SiteColor|Octo Expansion}})}} Octo Expansion | *{{Ink|custom|1|rgb({{SiteColor|Octo Expansion}})}} Octo Expansion | ||
*{{Ink|custom|1|rgb({{SiteColor|NIWA}})}} NIWA | *{{Ink|custom|1|rgb({{SiteColor|NIWA}})}} NIWA |
Revisión del 23:56 17 feb 2021
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