Difference between revisions of "Template:SiteColor"
ink>Thinker224 |
Darumarchen (talk | contribs) m (23 revisions imported) |
||
| (7 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#switch: "{{{1|}}}" | <includeonly>{{#switch: "{{{1|}}}" | ||
| − | |"Generic" | + | |"Generic" = 0, 153, 255 <!-- #0099FF --> |
| − | |"NIWA" | + | |"NIWA" = 255, 128, 0 <!-- #FF8000 --> |
| − | |"Splatoon" | + | |"Splatoon" = 170, 220, 0 <!-- #AADC00 --> |
| − | |"Splatoon 2" = 240, 60, 120 <!-- #F03C78 --> | + | |"Splatoon 2" = 240, 60, 120 <!-- #F03C78 --> |
| − | |" | + | |"Octo Expansion" = 174, 21, 102 <!-- #AE1566 --> |
| − | |#default | + | |#default = 192, 192, 192 <!-- #C0C0C0 --> |
}}</includeonly><noinclude>__NOTOC__ | }}</includeonly><noinclude>__NOTOC__ | ||
Produces an RGB triplet color value using Inkipedia site colors. | Produces an RGB triplet color value using Inkipedia site colors. | ||
| Line 14: | Line 14: | ||
|<code>theme</code>||Unnamed. | |<code>theme</code>||Unnamed. | ||
|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| | + | *{{Ink|custom|1|rgb({{SiteColor|Generic}})}} Generic |
| − | *{{Ink|custom| | + | *{{Ink|custom|1|rgb({{SiteColor|Splatoon}})}} Splatoon |
| − | *{{Ink|custom| | + | *{{Ink|custom|1|rgb({{SiteColor|Splatoon 2}})}} Splatoon 2 |
| − | *{{Ink|custom| | + | *{{Ink|custom|1|rgb({{SiteColor|Octo Expansion}})}} Octo Expansion |
| − | *{{Ink|custom| | + | *{{Ink|custom|1|rgb({{SiteColor|NIWA}})}} NIWA |
| + | *{{Ink|custom|1|rgb({{SiteColor}})}} ''Any other value'' | ||
|} | |} | ||
Latest revision as of 22:26, 17 May 2019
Produces an RGB triplet color value using Inkipedia site colors.
Parameters[edit]
theme |
Unnamed. | The theme ID for the color to use. Must be one of the following:
|
Example[edit]
Markup[edit]
<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[edit]
Sample text