Template:SiteColor: Difference between revisions

From Inkipedia, the Splatoon wiki
mNo edit summary
(changed colors to be accurate to in-game ink colors)
Tag: Reverted
Line 2: Line 2:
|"Generic"        = 0, 153, 255    <!-- #0099FF -->
|"Generic"        = 0, 153, 255    <!-- #0099FF -->
|"NIWA"          = 255, 128, 0    <!-- #FF8000 -->
|"NIWA"          = 255, 128, 0    <!-- #FF8000 -->
|"Splatoon"      = 170, 220, 0     <!-- #AADC00 -->
|"Splatoon"      = 207, 88, 27     <!-- #CF581B -->
|"Splatoon 2"    = 240, 60, 120   <!-- #F03C78 -->
|"Splatoon 2"    = 207, 4, 102   <!-- #CF0466 -->
|"Splatoon 3"    = 235, 238, 61    <!-- #EBEE3D -->
|"Splatoon 3"    = 208, 190, 8    <!-- #D0BE08 -->
|"Octo Expansion" = 174, 21, 102    <!-- #AE1566 -->
|"Octo Expansion" = 174, 21, 102    <!-- #AE1566 -->
|#default        = 192, 192, 192  <!-- #C0C0C0 -->
|#default        = 192, 192, 192  <!-- #C0C0C0 -->

Revision as of 06:29, 29 July 2023

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


Class Example

You may also use Site Color's defined classes directly from Template:SiteColor/styles.css.

<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>

Page Template:SiteColor/styles.css has no content.

Sample Generic Text
Sample NIWA Text
Sample S Text