|
|
(3 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| <includeonly>{{#switch: "{{{1|}}}" | | <includeonly>{{#invoke:SiteColor|main}}</includeonly><noinclude> |
| |"Generic" = 0, 153, 255 <!-- #0099FF -->
| | Template invocation of [[Module:SiteColor]]. |
| |"NIWA" = 255, 128, 0 <!-- #FF8000 -->
| |
| |"Splatoon" = 207, 88, 27 <!-- #CF581B -->
| |
| |"Splatoon 2" = 207, 4, 102 <!-- #CF0466 -->
| |
| |"Splatoon 3" = 208, 190, 8 <!-- #D0BE08 -->
| |
| |"Octo Expansion" = 174, 21, 102 <!-- #AE1566 -->
| |
| |#default = 192, 192, 192 <!-- #C0C0C0 -->
| |
| }}</includeonly><noinclude>__NOTOC__ | |
| Produces an RGB triplet color value using Inkipedia site colors.
| |
|
| |
|
| === Parameters ===
| | {{:Module:SiteColor/doc}} |
| {| | |
| |- style="vertical-align: top;"
| |
| |<code>theme</code>||Unnamed.
| |
| |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|Splatoon}})}} {{S}}
| |
| *{{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|NIWA}})}} NIWA
| |
| *{{Ink|custom|1|rgb({{SiteColor}})}} ''Any other value''
| |
| |}
| |
| | |
| === Example ===
| |
| ==== Markup ====
| |
| <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 ====
| |
| <span style="color: rgb({{SiteColor|Splatoon 2}});">Sample text</span>
| |
| | |
| | |
| === Class Example ===
| |
| You may also use Site Color's defined classes directly from [[Template:SiteColor/styles.css]].
| |
| <pre>
| |
| <templatestyles src="Template:SiteColor/styles.css" />
| |
| <div class="site-color-background-generic site-color-text-generic">Sample Generic Text</div>
| |
| <div class="site-color-background-shadow-niwa site-color-text-niwa">Sample NIWA Text</div>
| |
| <div class="site-color-background-shadow-s site-color-text-s">Sample S Text</div>
| |
| </pre>
| |
| | |
| <templatestyles src="Template:SiteColor/styles.css"/>
| |
| <div class="site-color-background-generic site-color-text-generic">Sample Generic Text</div>
| |
| <div class="site-color-background-shadow-niwa site-color-text-niwa">Sample NIWA Text</div>
| |
| <div class="site-color-background-shadow-s site-color-text-s">Sample S Text</div>
| |
| | |
| [[Category:Formatting templates]]
| |
| </noinclude> | | </noinclude> |
Template invocation of Module:SiteColor.
Produces an RGB triplet color value using Inkipedia site colors.
Parameters
{{SiteColor|<theme>}}
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
Class Example
You may also use Site Color's defined classes directly.
These are defined in MediaWiki:SiteColor.css. If this needs updating, please ask one of the interface administrators.
{| class="wikitable sitecolor-niwa"
! Column 1
! Column 2
|+
| Example || Value
|-
|}
Column 1
|
Column 2
|
Example |
Value
|
<div class="site-color-background-generic site-color-text-generic">Sample Generic Text</div>
<div class="site-color-background-shadow-niwa site-color-text-niwa">Sample NIWA Text</div>
<div class="site-color-background-shadow-s site-color-text-s">Sample S Text</div>
Sample Generic Text
Sample NIWA Text
Sample S Text