Difference between revisions of "Template:Floor Table Row"

From RimWorld Wiki
Jump to navigation Jump to search
(integration of burned floors)
(automated fine flooring check and DLC Icons)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
|-
 
|-
! style="text-align:left" | [[{{{?Name}}}]]{{#switch: {{Q|{{{?Name}}}|From DLC}}
+
! style="text-align:left" | {{DLC Icons|{{{?Name}}} }}
| Royalty (DLC) = {{RoyaltyIcon}}
 
| Ideology (DLC) = {{IdeologyIcon}}
 
}}
 
 
| {{#switch: {{{?Name}}}
 
| {{#switch: {{{?Name}}}
 
  | Fine carpet | Hex carpet | Morbid carpet = Burgundy, Indigo, White
 
  | Fine carpet | Hex carpet | Morbid carpet = Burgundy, Indigo, White
Line 12: Line 9:
 
  | #default = –
 
  | #default = –
 
}}
 
}}
| {{#switch: {{{?Name}}}  
+
| {{#if: {{#pos: {{Q|{{{?Name}}}|Category}} | Fine floor}} | {{Check}} | {{Cross}} }}
| Fine carpet | Fine stone tile | Gold tile | Hex carpet | Hex tile | Mindbend carpet | Morbid carpet | Morbid stone tile | Silver tile | Spikecore plates | Spikecore stone tile | Totemic boards | Totemic stone tile = {{Check}}
 
| #default = {{Cross}}
 
}}
 
 
| {{#switch: {{{?Name}}}
 
| {{#switch: {{{?Name}}}
 
  | Fungal gravel = Overhead mountain
 
  | Fungal gravel = Overhead mountain
Line 24: Line 18:
 
| {{#switch: {{{?Name}}}
 
| {{#switch: {{{?Name}}}
 
  | Burned floors = –
 
  | Burned floors = –
  | #default = {{Ticks|{{Q|{{{?Name}}}|Work To Make}}}}
+
  | #default = {{Ticks|{{Q|{{{?Name}}}|Work To Make}} }}
 
}}
 
}}
 
| {{Q|{{{?Name}}}|Beauty}}
 
| {{Q|{{{?Name}}}|Beauty}}
| {{%|{{Q|{{{?Name}}}|Move Speed Factor}}}}
+
| {{%|{{Q|{{{?Name}}}|Move Speed Factor}} }}
| {{%|{{Q|{{{?Name}}}|Flammability Base}}}}
+
| {{%|{{Q|{{{?Name}}}|Flammability Base}} }}
 
| {{Q|{{{?Name}}}|Cleanliness|0}}
 
| {{Q|{{{?Name}}}|Cleanliness|0}}
 
| {{Q|{{{?Name}}}|Market Value Base|0}}
 
| {{Q|{{{?Name}}}|Market Value Base|0}}

Revision as of 14:06, 8 April 2023

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

This template is meant to be used to compare different types of flooring like on floors and fine floor.

Example 1

{| {{STDT| sortable c_25 text-center}}
! Name !! Variants !! [[Fine floor|Fine]] !! Resources per tile !! data-sort-type="number" |  Work to Build || data-sort-type="number" | Beauty !! data-sort-type="number" | Move Speed Modifier !! data-sort-type="number" | Flammability !! data-sort-type="number" | Cleanliness !! data-sort-type="number" | Cleaning Time Multiplier  !! data-sort-type="number" | Filth Multiplier !! data-sort-type="number" | Wealth
|-
{{#ask: [[Name::Fine carpet||Sterile tile||Smooth stone||Fungal gravel||Burned floors]]
 | named args = yes
 | ?Name = ?Name
 | format = template
 | template = Floor Table Row
}}
|}

Would produce:

Name Variants Fine Resources per tile Work to Build Beauty Move Speed Modifier Flammability Cleanliness Cleaning Time Multiplier Filth Multiplier Wealth
Fine carpet Content added by the Royalty DLC Burgundy, Indigo, White Check.png Cloth 35 4,000 ticks (1.11 mins) 4 100% 32% 0 67
Fungal gravel Content added by the Ideology DLC Ex.png Overhead mountain 1,000 ticks (16.67 secs) -1 87% 0% -1 0
Smooth stone Limestone, Marble, Granite, Sandstone, Slate Ex.png Rough stone/
Rough-hewn stone
2,800 ticks (46.67 secs) 2 100% 0% 0 5
Sterile tile Ex.png Steel 3 +  Silver 12 1,600 ticks (26.67 secs) -1 100% 0% 0.6 24

Example 2

{| {{STDT| sortable c_25 text-center}}
! Name !! Variants !! [[Fine floor|Fine]] !! Resources per tile !! data-sort-type="number" |  Work to Build || data-sort-type="number" | Beauty !! data-sort-type="number" | Move Speed Modifier !! data-sort-type="number" | Flammability !! data-sort-type="number" | Cleanliness !! data-sort-type="number" | Cleaning Time Multiplier  !! data-sort-type="number" | Filth Multiplier !! data-sort-type="number" | Wealth
|-
{{#ask: [[Type::Floor]] [[Name::!Rough stone]] [[Name::!Rough-hewn stone]]
 | named args = yes
 | ?Name = ?Name
 | format = template
 | template = Floor Table Row
 | sort = From DLC, Name
}}
|}

Would produce:

Name Variants Fine Resources per tile Work to Build Beauty Move Speed Modifier Flammability Cleanliness Cleaning Time Multiplier Filth Multiplier Wealth
Burned floor Ex.png Expression error: Unexpected < operator. -6 93% 0% 0 0
Carpet Ex.png Cloth 7 800 ticks (13.33 secs) 2 100% 32% 0 13
Concrete Ex.png Steel 1 100 ticks (1.67 secs) -1 100% 0% 0 2.3
Flagstone Limestone, Marble, Granite, Sandstone, Slate Ex.png Stuff 4 (Stony) 500 ticks (8.33 secs) 0 100% 0% 0 5.5
Gold tile Check.png Gold 70 800 ticks (13.33 secs) 11 100% 0% 0.2 705
Paved tile Ex.png Steel 2 300 ticks (5 secs) 0 100% 0% 0 4.9
Silver tile Check.png Silver 70 800 ticks (13.33 secs) 4 100% 0% 0.2 73
Steel tile Ex.png Steel 7 800 ticks (13.33 secs) 0 100% 0% 0.2 16
Sterile tile Ex.png Steel 3 +  Silver 12 1,600 ticks (26.67 secs) -1 100% 0% 0.6 24
Stone tile Limestone, Marble, Granite, Sandstone, Slate Ex.png Stuff 4 (Stony) 1,100 ticks (18.33 secs) 1 100% 0% 0 8
Straw matting Ex.png Hay 2 120 ticks (2 secs) -1 93% 150% -0.1 1.6
Wood floor Ex.png Wood 3 85 ticks (1.42 secs) 0 100% 22% 0 3.9
Bioferrite plate Content added by the Anomaly DLC Ex.png Bioferrite 4 840 ticks (14 secs) -2 100% 15% 0 5.5
Flesh Content added by the Anomaly DLC Ex.png Expression error: Unexpected < operator. -10 87% 32% -3 0
Void metal Content added by the Anomaly DLC Ex.png Expression error: Unexpected < operator. 0 100% 0% 1 0
Fungal gravel Content added by the Ideology DLC Ex.png Overhead mountain 1,000 ticks (16.67 secs) -1 87% 0% -1 0
Hex carpet Content added by the Ideology DLC Burgundy, Indigo, White Check.png Cloth 35 4,000 ticks (1.11 mins) 4 100% 32% 0 67
Hex tile Content added by the Ideology DLC Check.png Steel 12 5,000 ticks (1.39 mins) 3 100% 0% 0 41
Mindbend carpet Content added by the Ideology DLC Diamond, Purple, Green, Blue, Yellow Check.png Cloth 35 4,000 ticks (1.11 mins) 4 100% 32% 0 67
Morbid carpet Content added by the Ideology DLC Burgundy, Indigo, White Check.png Cloth 35 4,000 ticks (1.11 mins) 4 100% 32% 0 67
Morbid stone tile Content added by the Ideology DLC Limestone, Marble, Granite, Sandstone, Slate Check.png Stuff 20 (Stony) 5,000 ticks (1.39 mins) 3 100% 0% 0 36
Spikecore plates Content added by the Ideology DLC Check.png Steel 12 5,000 ticks (1.39 mins) 3 100% 0% 0 41
Spikecore stone tile Content added by the Ideology DLC Limestone, Marble, Granite, Sandstone, Slate Check.png Stuff 20 (Stony) 5,000 ticks (1.39 mins) 3 100% 0% 0 36
Totemic boards Content added by the Ideology DLC Check.png Wood 20 5,000 ticks (1.39 mins) 3 100% 22% 0 42
Totemic stone tile Content added by the Ideology DLC Limestone, Marble, Granite, Sandstone, Slate Check.png Stuff 20 (Stony) 5,000 ticks (1.39 mins) 3 100% 0% 0 36
Fine carpet Content added by the Royalty DLC Burgundy, Indigo, White Check.png Cloth 35 4,000 ticks (1.11 mins) 4 100% 32% 0 67
Fine stone tile Content added by the Royalty DLC Limestone, Marble, Granite, Sandstone, Slate Check.png Stuff 20 (Stony) 5,000 ticks (1.39 mins) 3 100% 0% 0 36