Template:ColorScheme: Difference between revisions

From Inkipedia, the Splatoon wiki
(create non-working color scheme template experiment)
 
(ditch css variables, this feature is sysop-only)
Line 1: Line 1:
<includeonly>--box-heading-color: rgb({{SiteColor|{{{1|}}}}}); --box-heading-text-color: {{#switch: "{{{1|}}}"
<includeonly>{{#switch: "{{lc:{{{2|}}}}}"
|"Generic"        = white
|#default = rgb({{SiteColor|{{{1|}}}}})
|"NIWA"          = white
|"textcolor" = {{#switch: "{{{1|}}}"
|"Splatoon"      = black
    |"Generic"        = white
|"Splatoon 2"    = white
    |"NIWA"          = white
|"Splatoon 3"    = black
    |"Splatoon"      = black
|"Octo Expansion" = white
    |"Splatoon 2"    = white
|#default        = black
    |"Splatoon 3"    = black
}}; --box-background-color: rgb({{#switch: "{{{1|}}}"
    |"Octo Expansion" = white
|"Generic"        = 0, 153, 255, 0.2
    |#default        = black
|"NIWA"          = 255, 128, 0, 0.2
}}
|"Splatoon"      = 170, 220, 0, 0.2
|"backgroundcolor" = rgb({{#switch: "{{{1|}}}"
|"Splatoon 2"    = 240, 60, 120, 0.2
    |"Generic"        = 0, 153, 255, 0.2
|"Splatoon 3"    = 235, 238, 61, 0.2
    |"NIWA"          = 255, 128, 0, 0.2
|"Octo Expansion" = 174, 21, 102, 0.2
    |"Splatoon"      = 170, 220, 0, 0.2
|#default        = 192, 192, 192, 0.2
    |"Splatoon 2"    = 240, 60, 120, 0.2
}});</includeonly><noinclude>__NOTOC__
    |"Splatoon 3"    = 235, 238, 61, 0.2
== Raw output (Generic) ==
    |"Octo Expansion" = 174, 21, 102, 0.2
{{User:Makendo/Sandbox/ColorScheme|Generic}}
    |#default        = 192, 192, 192, 0.2
== Usage (Generic) ==
    }})
<span style="{{User:Makendo/Sandbox/ColorScheme|Generic}} background-color:var(--box-heading-color); color:var(--box-heading-text-color); border-radius:5px; display:inline-block; padding: 0px 5px 0px 5px;">Good luck if it works!</span>
}}</includeonly><noinclude>__NOTOC__
== The "Generic" color scheme ==
* Base color: {{User:Makendo/Sandbox/ColorScheme|Generic}}
* Text color (`textColor`): {{User:Makendo/Sandbox/ColorScheme|Generic|TextColor}}
* Background color (`backgroundColor`): {{User:Makendo/Sandbox/ColorScheme|Generic|BackgroundColor}}
</noinclude>
</noinclude>

Revision as of 10:42, 16 November 2022

The "Generic" color scheme