Template:ColorScheme: Difference between revisions

From Inkipedia, the Splatoon wiki
(ditch css variables, this feature is sysop-only)
(add named aliases for 1 and 2)
Line 1: Line 1:
<includeonly>{{#switch: "{{lc:{{{2|}}}}}"
<includeonly>{{#switch: "{{lc: {{{color|{{{2|}}}}}}}}"
|#default = rgb({{SiteColor|{{{1|}}}}})
|#default = rgb({{SiteColor|{{{scheme|{{{1|}}}}}}}})
|"textcolor" = {{#switch: "{{{1|}}}"
|"textcolor" = {{#switch: "{{{scheme|{{{1|}}}}}}"
     |"Generic"        = white
     |"Generic"        = white
     |"NIWA"          = white
     |"NIWA"          = white
Line 10: Line 10:
     |#default        = black
     |#default        = black
}}
}}
|"backgroundcolor" = rgb({{#switch: "{{{1|}}}"
|"backgroundcolor" = rgba({{SiteColor|{{{scheme|{{{1|}}}}}}}}, 0.2)
    |"Generic"        = 0, 153, 255, 0.2
    |"NIWA"          = 255, 128, 0, 0.2
    |"Splatoon"      = 170, 220, 0, 0.2
    |"Splatoon 2"    = 240, 60, 120, 0.2
    |"Splatoon 3"    = 235, 238, 61, 0.2
    |"Octo Expansion" = 174, 21, 102, 0.2
    |#default        = 192, 192, 192, 0.2
    }})
}}</includeonly><noinclude>__NOTOC__
}}</includeonly><noinclude>__NOTOC__
== The "Generic" color scheme ==
== The "Generic" color scheme ==
* Base color: {{User:Makendo/Sandbox/ColorScheme|Generic}}
* Base color: {{User:Makendo/Sandbox/ColorScheme|Generic}}
* Text color (`textColor`): {{User:Makendo/Sandbox/ColorScheme|Generic|TextColor}}
* Text color (<code>textColor</code>): {{User:Makendo/Sandbox/ColorScheme|Generic|TextColor}}
* Background color (`backgroundColor`): {{User:Makendo/Sandbox/ColorScheme|Generic|BackgroundColor}}
* Background color (<code>backgroundColor</code>): {{User:Makendo/Sandbox/ColorScheme|Generic|BackgroundColor}}
</noinclude>
</noinclude>

Revision as of 10:48, 16 November 2022

The "Generic" color scheme