Difference between revisions of "Template:Dye Color Table"
Jump to navigation
Jump to search
Arcangelus (talk | contribs) (Converted to HSL, as requested. I don't see the "sort into a rainbow" option I was promised (◡︵◡) . Also changed the "Color Code" section, increasing node count slightly. Do note that the transition is "close enough"; perfection would require non-integer (invalid) values. Alpha defaults to 1 (fully opaque).) |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{| class="wikitable sortable" style="text-align:center" | + | <includeonly><!-- |
+ | |||
+ | VARIABLES | ||
+ | -->{{#if:{{{paint|}}}{{{hair|}}}{{{apparel|}}} | ||
+ | | {{#vardefine:paint | {{#ifeq: {{{paint |}}} | true | true }} }} | ||
+ | {{#vardefine:hair | {{#ifeq: {{{hair |}}} | true | true }} }} | ||
+ | {{#vardefine:apparel | {{#ifeq: {{{apparel|}}} | true | true }} }} | ||
+ | | {{#vardefine:paint | true }} | ||
+ | {{#vardefine:hair | true }} | ||
+ | {{#vardefine:apparel | true }} | ||
+ | }}<!-- | ||
+ | |||
+ | TABLE | ||
+ | --><div><li style="display: inline-table;"> | ||
+ | {| class="wikitable sortable" style="text-align:center" | ||
! rowspan="2" | Color | ! rowspan="2" | Color | ||
! rowspan="2" | Color name | ! rowspan="2" | Color name | ||
− | + | ! colspan="{{#expr:0{{#if:{{#var:paint}}|+1}}{{#if:{{#var:hair}}|+1}}{{#if:{{#var:apparel}}|+1}} }}" | Available for | |
− | + | ! rowspan="1" colspan="3" | Color code [<span style="color:#0645ad;" class="mw-collapsible mw-customtoggle-color" id="mw-customcollapsible-color">Expand</span><span style="color:#0645ad;" class="mw-collapsible mw-collapsed mw-customtoggle-color" id="mw-customcollapsible-color">Collapse</span>] | |
− | + | <tr> | |
− | + | {{#if:{{#var:paint }}|<th>Paint</th>}} | |
− | + | {{#if:{{#var:hair }}|<th>Hair {{IdeologyIcon}}</th>}} | |
− | + | {{#if:{{#var:apparel}}|<th>Apparel {{IdeologyIcon}}</th>}} | |
− | + | {{#if: {{#var:paint}}{{#var:hair}} | | |
− | + | ! RGB !! HEX !! HSL | |
− | + | </tr> | |
+ | <tr class="mw-collapsible mw-collapsed" id="mw-customcollapsible-color"> | ||
+ | {{!}} style="background-color:hsl(353, 41%, 33%);" {{!}} {{!!}} Red | ||
+ | {{!}} {{#if:{{#var:paint}}|[[File:check.png|24px]] {{!!}} }} {{#if:{{#var:hair}}|[[File:check.png|24px]] {{!!}} }} {{#if:{{#var:apparel}}|[[File:ex.png|24px]] {{!! |
Latest revision as of 16:09, 3 September 2024
Overview[edit]
Displays a collapsible table of all the dye colors, with their names (if one exists in-game), use and color code.
By default all colors are shown. It is however possible to only show a specific selection with any combination of the following three optional parameters:
paint = true
for all colors that can be used as paint,hair = true
for all colors that can be used as hair color; andapparel = true
for all colors that are available for apparel.
Examples[edit]
{{Dye Color Table}}
results in:
{{Dye Color Table| hair = true | apparel = true}}
results in:
The above documentation is transcluded from Template:Dye Color Table/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |