Difference between revisions of "Template:Dye Color Table"
Jump to navigation
Jump to search
(This excellent table is entirely thanks to User:Harmonea - I'm just moving it to a template so it can be used a little more flexibly and updated from a single place.) |
|||
(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=" | + | ! colspan="{{#expr:0{{#if:{{#var:paint}}|+1}}{{#if:{{#var:hair}}|+1}}{{#if:{{#var:apparel}}|+1}} }}" | Available for |
! rowspan="2" | 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>] | ! rowspan="2" | 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}} | | |
− | + | </tr> | |
− | + | <tr class="mw-collapsible mw-collapsed" id="mw-customcollapsible-color"> | |
− | + | {{!}} style="background-color:#763139" {{!}} {{!!}} Red | |
− | + | {{!}} {{#if:{{#var:paint}}|[[File:check.png|24px]] {{!!}} }} {{#if:{{#var:hair}}|[[File:check.png|24px]] {{!!}} }} {{#if:{{#var:apparel}}|[[File:ex.png|24px]] {{!!}} }} (118,49,57) #763139 | |
+ | </tr><tr class="mw-collapsible mw-collapsed" id="mw-customcollapsible-color"> | ||
+ | {{!}} style="background-color:#845448" {{!}} {{!!}} Subtle red | ||
+ | {{!}} {{#if:{{#var:paint}}|[[File:check.png|24px]] {{!!}} }} {{#if:{{#var:hair}}|[[File:check.png|24px]] {{!!}} }} {{#if:{{#var:apparel}}|[[File:ex.png|24px]] {{!!}} }} (132,84, |
Latest revision as of 03:02, 18 February 2024
This page has been suggested for recoding. Reason: If we can convert the colors to HSL, we could have the color code sort sort it into a rainbow.. You can help RimWorld Wiki by improving it. |
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. |