Difference between revisions of "Template:Dye Color Table"
Jump to navigation
Jump to search
(added option to only display part of the table) |
|||
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 | ||
Line 6: | Line 24: | ||
|- | |- | ||
! Paint | ! Paint | ||
− | + | ! Hair {{IdeologyIcon}} | |
− | + | ! Apparel {{IdeologyIcon}} | |
− | + | {{#if: {{#var:paint}}{{#var:hair}} | | |
− | + | <tr class="mw-collapsible mw-collapsed" id="mw-customcollapsible-color"> | |
− | + | {{!}} style="background-color:#763139" {{!}} {{!!}} Red | |
− | + | {{!}} [[File:check.png|24px]] {{!!}} [[File:check.png|24px]] {{!!}} [[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 | ||
+ | {{!}} [[File:check.png|24px]] {{!!}} [[File:check.png|24px]] {{!!}} [[File:ex.png|24px]] {{!!}} (132,84,72) #845448 | ||
+ | </tr><tr class="mw-collapsible mw-collapsed" id="mw-customcollapsible-color"> | ||
+ | {{!}} style="background-color:#8a3324" {{!}} {{!!}} Auburn | ||
+ | {{!}} [[File: |
Revision as of 12:31, 5 December 2023
This page has been suggested for recoding. Reason: Suppress check/ex columns, update documentation and rollout.. You can help RimWorld Wiki by improving it. |
Overview
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
{{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. |