Difference between revisions of "Template:Apparel Material Table"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> {{documentation}} Category: Templates </noinclude>==Material Table== {{#vardefine:name | {{{ 1 | {{PAGENAME}} }}} }} {{#vardefine:armorsharp|{{formatnum:{{Q|{{...")
 
Line 1: Line 1:
<noinclude>
+
<noinclude>{{PAGENAME}}
 
{{documentation}}
 
{{documentation}}
 
[[Category: Templates]]
 
[[Category: Templates]]
 
</noinclude>==Material Table==
 
</noinclude>==Material Table==
{{#vardefine:name | {{{ 1 | {{PAGENAME}} }}} }}
+
{{#vardefine:name | {{{ 1 | Duster}}} }}
{{#vardefine:armorsharp|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Sharp}}|R}}}}{{#vardefine:armorblunt|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Blunt}}|R}}}}{{#vardefine:armorheat|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Sharp}}|R}}}}{{#vardefine:HP|{{formatnum:{{Q|{{#var:name}}|Max Hit Points Base}}|R}}}}{{#vardefine:insulationheat|{{formatnum:{{Q|{{#var:name}}|Insulation Factor - Heat}}|R}}}}{{#vardefine:insulationcold|{{formatnum:{{Q|{{#var:name}}|Insulation Factor - Cold}}|R}}}}{{#vardefine:value|{{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}}}}{{#vardefine:stufftags|{{Q|{{#var:name}}|Stuff Tags}}}}<noinclude>{{#vardefine:name |Duster}}  </noinclude>
+
{{#vardefine:armorsharp|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Sharp}}|R}}}}{{#vardefine:armorblunt|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Blunt}}|R}}}}{{#vardefine:armorheat|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Sharp}}|R}}}}{{#vardefine:HP|{{formatnum:{{Q|{{#var:name}}|Max Hit Points Base}}|R}}}}{{#vardefine:insulationheat|{{formatnum:{{Q|{{#var:name}}|Insulation Factor - Heat}}|R}}}}{{#vardefine:insulationcold|{{formatnum:{{Q|{{#var:name}}|Insulation Factor - Cold}}|R}}}}{{#vardefine:value|{{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}}}}{{#vardefine:stufftags|{{Q|{{#var:name}}|Stuff Tags}}}}
 
<div><li style="display: inline-table;">
 
<div><li style="display: inline-table;">
 
{| {{STDT|sortable c_03 text-center}}
 
{| {{STDT|sortable c_03 text-center}}
Line 16: Line 16:
 
! data-sort-type="number" | Insulation - Heat
 
! data-sort-type="number" | Insulation - Heat
 
! data-sort-type="number" | Market Value
 
! data-sort-type="number" | Market Value
 +
|-
 +
<!---#pos returns 0 if its at the first place in the string, thus an {{#if:{{#pos:{{#var:stufftags}}|Leathery|}} fails to detect leathery if its the first vs a null response. This just tests that it doesn't return nothing essentially. --->
 +
 +
{{#ifeq: | {{#pos:{{#var:stufftags}}|Leathery|}}||
 
{{Apparel Material Table Row |Bearskin}}
 
{{Apparel Material Table Row |Bearskin}}
 +
{{Apparel Material Table Row |Birdskin}}
 +
{{Apparel Material Table Row |Bluefur}}
 +
{{Apparel Material Table Row |Camelhide}}
 +
{{Apparel Material Table Row |Chinchilla fur}}
 +
{{Apparel Material Table Row |Dog leather}}
 +
{{Apparel Material Table Row |Elephant leather}}
 +
{{Apparel Material Table Row |Foxfur}}
 +
{{Apparel Material Table Row |Guinea pig fur}}
 +
{{Apparel Material Table Row |Heavy fur}}
 +
{{Apparel Material Table Row |Human leather}}
 +
{{Apparel Material Table Row |Lightleather}}
 +
{{Apparel Material Table Row |Lizardskin}}
 +
{{Apparel Material Table Row |Panthera fur}}
 +
{{Apparel Material Table Row |Patchleather}}
 +
{{Apparel Material Table Row |Pigskin}}
 +
{{Apparel Material Table Row |Plainleather}}
 +
{{Apparel Material Table Row |Rhinoceros leather}}
 +
{{Apparel Material Table Row |Thrumbofur}}
 +
{{Apparel Material Table Row |Wolfskin}}
 +
}}
  
 +
{{#ifeq: | {{#pos:{{#var:stufftags}}|Fabric|}}||
 +
{{Apparel Material Table Row |Alpaca wool}}
 +
{{Apparel Material Table Row |Bison wool}}
 +
{{Apparel Material Table Row |Cloth}}
 +
{{Apparel Material Table Row |Devilstrand}}
 +
{{Apparel Material Table Row |Hyperweave}}
 +
{{Apparel Material Table Row |Megasloth wool}}
 +
{{Apparel Material Table Row |Muffalo wool}}
 +
{{Apparel Material Table Row |Sheep wool}}
 +
{{Apparel Material Table Row |Synthread}}
 +
}}
  
 +
{{#ifeq: | {{#pos:{{#var:stufftags}}|Woody|}}||
 +
{{Apparel Material Table Row |Wood}}
 +
}}
 +
 +
{{#ifeq: | {{#pos:{{#var:stufftags}}|Stony|}}||
 +
{{Apparel Material Table Row |Granite Blocks}}
 +
{{Apparel Material Table Row |Limestone Blocks}}
 +
{{Apparel Material Table Row |Marble Blocks}}
 +
{{Apparel Material Table Row |Sandstone Blocks}}
 +
{{Apparel Material Table Row |Slate Blocks}}
 +
{{Apparel Material Table Row |Jade}}
 +
}}
 +
 +
{{#ifeq: | {{#pos:{{#var:stufftags}}|Metallic|}}||
 +
{{Apparel Material Table Row |Gold}}
 +
{{Apparel Material Table Row |Plasteel}}
 +
{{Apparel Material Table Row |Silver}}
 +
{{Apparel Material Table Row |Steel}}
 +
{{Apparel Material Table Row |Uranium}}
 +
}}
 
|}
 
|}
 
<sup>Assuming Normal quality, for the effect of other qualities, see [[Quality]].</sup>
 
<sup>Assuming Normal quality, for the effect of other qualities, see [[Quality]].</sup>
 
</li></div>
 
</li></div>
 +
 +
{{#ifeq: | {{#pos:{{#var:stufftags}}|Metallic|}}| 1 | 2}}

Revision as of 08:45, 6 January 2021

Apparel Material Table

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

Description

This template generates a table summarizing stats for a piece of apparel, including Sharp, Blunt and Heat armor, heat and cold insulation, HP, and Market Value, for the variety of different materials available for it.

The template will automatically detect the material types applicable to the item using the Stuff Tags variable in the infobox and display them. The item must be stuffable and must have the correct Resource X/Resource X Amount parameters in addition to the Stuff Tags, and Resource 1 must be set to "Stuff".

Note that it will automatically add the appropriate heading.

This template is dependent on Template:Apparel Material Table Row.

This template supersedes and merges Template:Clothing material table and Template:Armor material table, but they will be maintained at least until replacement is complete. Lifespan may be extended to ensure Page History integrity.

Parameters

The first parameter (if present) will specify which piece of apparel to generate the template for. If absent, {{PAGENAME}} will be used.

Example usage

{{Apparel Material Table}}

on the Plate armor page would produce:

Material Table

  • Material Sharp Blunt Heat Item HP Insulation - Cold Insulation - Heat Market Value
    Wooden Plate armor 39.42% 39.42% 29.2% 188.5 -8 °C (-14.4 °F) +0 °C (0 °F) 300 Silver


    Golden Plate armor 52.56% 26.28% 26.28% 174 -3 °C (-5.4 °F) +0 °C (0 °F) 17125 Silver
    Plasteel Plate armor 83.22% 40.15% 47.45% 812 -3 °C (-5.4 °F) +0 °C (0 °F) 1830 Silver
    Silver Plate armor 52.56% 26.28% 26.28% 203 -3 °C (-5.4 °F) +0 °C (0 °F) 1835 Silver
    Steel Plate armor 65.7% 32.85% 43.8% 290 -3 °C (-5.4 °F) +0 °C (0 °F) 460 Silver
    Uranium Plate armor 78.84% 39.42% 47.45% 725 -3 °C (-5.4 °F) +0 °C (0 °F) 1280 Silver

    Assuming Normal quality, for the effect of other qualities, see Quality.

  • 2

    {{Apparel Material Table | Duster}}
    

    on any page would produce:

    Material Table

  • Material Sharp Blunt Heat Item HP Insulation - Cold Insulation - Heat Market Value
    Bearskin Duster 33.6% 7.2% 45% 260 -12 °C (-21.6 °F) +17 °C (30.6 °F) 310 Silver
    Birdskin Duster 20.1% 4.2% 45% 200 -6 °C (-10.8 °F) +8.5 °C (15.3 °F) 180 Silver
    Bluefur Duster 24.3% 7.2% 45% 260 -12 °C (-21.6 °F) +13.6 °C (24.5 °F) 220 Silver
    Camelhide Duster 24.3% 7.2% 45% 260 -9.6 °C (-17.3 °F) +20.4 °C (36.7 °F) 220 Silver
    Chinchilla fur Duster 20.1% 4.2% 45% 200 -18 °C (-32.4 °F) +13.6 °C (24.5 °F) 555 Silver
    Dog leather Duster 24.3% 7.2% 45% 260 -8.4 °C (-15.1 °F) +13.6 °C (24.5 °F) 196 Silver
    Elephant leather Duster 33.6% 7.2% 45% 300 -8.4 °C (-15.1 °F) +10.2 °C (18.4 °F) 230 Silver
    Foxfur Duster 24.3% 6.3% 45% 200 -12 °C (-21.6 °F) +13.6 °C (24.5 °F) 315 Silver
    Guinea pig fur Duster 20.1% 4.2% 45% 120 -22.8 °C (-41 °F) +15.3 °C (27.5 °F) 435 Silver
    Heavy fur Duster 37.2% 7.2% 45% 300 -18 °C (-32.4 °F) +11.9 °C (21.4 °F) 300 Silver
    Human leather Duster 19.2% 7.2% 45% 260 -7.2 °C (-13 °F) +10.2 °C (18.4 °F) 370 Silver
    Lightleather Duster 16.2% 4.2% 45% 200 -7.2 °C (-13 °F) +10.2 °C (18.4 °F) 188 Silver
    Lizardskin Duster 24.3% 8.1% 45% 200 -7.2 °C (-13 °F) +10.2 °C (18.4 °F) 205 Silver
    Panthera fur Duster 27.9% 7.2% 45% 260 -9.6 °C (-17.3 °F) +20.4 °C (36.7 °F) 275 Silver
    Patchleather Duster 13.5% 5.7% 27% 200 -5.4 °C (-9.7 °F) +7.65 °C (13.8 °F) 156 Silver
    Pigskin Duster 19.2% 7.2% 45% 260 -7.2 °C (-13 °F) +10.2 °C (18.4 °F) 188 Silver
    Plainleather Duster 24.3% 7.2% 45% 260 -9.6 °C (-17.3 °F) +13.6 °C (24.5 °F) 205 Silver
    Rhinoceros leather Duster 38.7% 7.2% 45% 300 -8.4 °C (-15.1 °F) +11.9 °C (21.4 °F) 370 Silver
    Thrumbofur Duster 62.4% 10.8% 45% 400 -20.4 °C (-36.7 °F) +18.7 °C (33.7 °F) 1155 Silver
    Wolfskin Duster 30.6% 7.2% 45% 260 -14.4 °C (-25.9 °F) +13.6 °C (24.5 °F) 275 Silver
    Alpaca wool Duster 10.8% 0% 33% 200 -18 °C (-32.4 °F) +13.6 °C (24.5 °F) 340 Silver
    Bison wool Duster 10.8% 0% 33% 200 -15.6 °C (-28.1 °F) +10.2 °C (18.4 °F) 250 Silver
    Cloth Duster 10.8% 0% 5.4% 200 -10.8 °C (-19.4 °F) +15.3 °C (27.5 °F) 156 Silver
    Devilstrand Duster 42% 10.8% 90% 260 -12 °C (-21.6 °F) +20.4 °C (36.7 °F) 475 Silver
    Hyperweave Duster 60% 16.2% 86.4% 480 -15.6 °C (-28.1 °F) +22.1 °C (39.8 °F) 755 Silver
    Megasloth wool Duster 24% 0% 33% 200 -20.4 °C (-36.7 °F) +10.2 °C (18.4 °F) 250 Silver
    Muffalo wool Duster 10.8% 0% 33% 200 -16.8 °C (-30.2 °F) +10.2 °C (18.4 °F) 250 Silver
    Sheep wool Duster 10.8% 0% 33% 200 -15.6 °C (-28.1 °F) +8.5 °C (15.3 °F) 250 Silver
    Synthread Duster 28.2% 7.8% 27% 260 -13.2 °C (-23.8 °F) +18.7 °C (33.7 °F) 355 Silver




    Assuming Normal quality, for the effect of other qualities, see Quality.

  • 1

    Material Table

  • Material Sharp Blunt Heat Item HP Insulation - Cold Insulation - Heat Market Value
    Bearskin Duster 33.6% 7.2% 45% 260 -12 °C (-21.6 °F) +17 °C (30.6 °F) 310 Silver
    Birdskin Duster 20.1% 4.2% 45% 200 -6 °C (-10.8 °F) +8.5 °C (15.3 °F) 180 Silver
    Bluefur Duster 24.3% 7.2% 45% 260 -12 °C (-21.6 °F) +13.6 °C (24.5 °F) 220 Silver
    Camelhide Duster 24.3% 7.2% 45% 260 -9.6 °C (-17.3 °F) +20.4 °C (36.7 °F) 220 Silver
    Chinchilla fur Duster 20.1% 4.2% 45% 200 -18 °C (-32.4 °F) +13.6 °C (24.5 °F) 555 Silver
    Dog leather Duster 24.3% 7.2% 45% 260 -8.4 °C (-15.1 °F) +13.6 °C (24.5 °F) 196 Silver
    Elephant leather Duster 33.6% 7.2% 45% 300 -8.4 °C (-15.1 °F) +10.2 °C (18.4 °F) 230 Silver
    Foxfur Duster 24.3% 6.3% 45% 200 -12 °C (-21.6 °F) +13.6 °C (24.5 °F) 315 Silver
    Guinea pig fur Duster 20.1% 4.2% 45% 120 -22.8 °C (-41 °F) +15.3 °C (27.5 °F) 435 Silver
    Heavy fur Duster 37.2% 7.2% 45% 300 -18 °C (-32.4 °F) +11.9 °C (21.4 °F) 300 Silver
    Human leather Duster 19.2% 7.2% 45% 260 -7.2 °C (-13 °F) +10.2 °C (18.4 °F) 370 Silver
    Lightleather Duster 16.2% 4.2% 45% 200 -7.2 °C (-13 °F) +10.2 °C (18.4 °F) 188 Silver
    Lizardskin Duster 24.3% 8.1% 45% 200 -7.2 °C (-13 °F) +10.2 °C (18.4 °F) 205 Silver
    Panthera fur Duster 27.9% 7.2% 45% 260 -9.6 °C (-17.3 °F) +20.4 °C (36.7 °F) 275 Silver
    Patchleather Duster 13.5% 5.7% 27% 200 -5.4 °C (-9.7 °F) +7.65 °C (13.8 °F) 156 Silver
    Pigskin Duster 19.2% 7.2% 45% 260 -7.2 °C (-13 °F) +10.2 °C (18.4 °F) 188 Silver
    Plainleather Duster 24.3% 7.2% 45% 260 -9.6 °C (-17.3 °F) +13.6 °C (24.5 °F) 205 Silver
    Rhinoceros leather Duster 38.7% 7.2% 45% 300 -8.4 °C (-15.1 °F) +11.9 °C (21.4 °F) 370 Silver
    Thrumbofur Duster 62.4% 10.8% 45% 400 -20.4 °C (-36.7 °F) +18.7 °C (33.7 °F) 1155 Silver
    Wolfskin Duster 30.6% 7.2% 45% 260 -14.4 °C (-25.9 °F) +13.6 °C (24.5 °F) 275 Silver
    Alpaca wool Duster 10.8% 0% 33% 200 -18 °C (-32.4 °F) +13.6 °C (24.5 °F) 340 Silver
    Bison wool Duster 10.8% 0% 33% 200 -15.6 °C (-28.1 °F) +10.2 °C (18.4 °F) 250 Silver
    Cloth Duster 10.8% 0% 5.4% 200 -10.8 °C (-19.4 °F) +15.3 °C (27.5 °F) 156 Silver
    Devilstrand Duster 42% 10.8% 90% 260 -12 °C (-21.6 °F) +20.4 °C (36.7 °F) 475 Silver
    Hyperweave Duster 60% 16.2% 86.4% 480 -15.6 °C (-28.1 °F) +22.1 °C (39.8 °F) 755 Silver
    Megasloth wool Duster 24% 0% 33% 200 -20.4 °C (-36.7 °F) +10.2 °C (18.4 °F) 250 Silver
    Muffalo wool Duster 10.8% 0% 33% 200 -16.8 °C (-30.2 °F) +10.2 °C (18.4 °F) 250 Silver
    Sheep wool Duster 10.8% 0% 33% 200 -15.6 °C (-28.1 °F) +8.5 °C (15.3 °F) 250 Silver
    Synthread Duster 28.2% 7.8% 27% 260 -13.2 °C (-23.8 °F) +18.7 °C (33.7 °F) 355 Silver




    Assuming Normal quality, for the effect of other qualities, see Quality.

  • 1