Difference between revisions of "Template:Apparel Stats Table"

From RimWorld Wiki
Jump to navigation Jump to search
(Removing excess whtiespace)
Line 20: Line 20:
 
| {{ #expr: 0.6*{{#var:armorheat|}}}}%
 
| {{ #expr: 0.6*{{#var:armorheat|}}}}%
 
| {{ #expr: 1*{{#var:HP|}}}}
 
| {{ #expr: 1*{{#var:HP|}}}}
| -{{ #expr: 0.8*{{#var:insulationcold|}}}}°C
+
| {{temperature|-{{ #expr: 0.8*{{#var:insulationcold|}}}}||delta}}
| +{{ #expr: 0.8*{{#var:insulationheat|}}}}°C
+
| +{{temperature|{{ #expr: 0.8*{{#var:insulationheat|}}}}||delta}}
 
| {{Market Value | {{ #expr: 0.5*{{#var:value|}}}}}}{{icon|silver|}}
 
| {{Market Value | {{ #expr: 0.5*{{#var:value|}}}}}}{{icon|silver|}}
 
|-
 
|-
Line 31: Line 31:
 
| {{ #expr: 0.8*{{#var:armorheat|}}}}%
 
| {{ #expr: 0.8*{{#var:armorheat|}}}}%
 
| {{ #expr: 1*{{#var:HP|}}}}
 
| {{ #expr: 1*{{#var:HP|}}}}
| -{{ #expr: 0.9*{{#var:insulationcold|}}}}°C
+
| {{temperature|-{{ #expr: 0.9*{{#var:insulationcold|}}}}||delta}}
| +{{ #expr: 0.9*{{#var:insulationheat|}}}}°C
+
| +{{temperature|{{ #expr: 0.9*{{#var:insulationheat|}}}}||delta}}
 
| {{Market Value | {{ #expr: 0.75*{{#var:value|}}}}}}{{icon|silver|}}
 
| {{Market Value | {{ #expr: 0.75*{{#var:value|}}}}}}{{icon|silver|}}
 
|-
 
|-
Line 41: Line 41:
 
| {{ #expr: 1.0*{{#var:armorheat|}}}}%
 
| {{ #expr: 1.0*{{#var:armorheat|}}}}%
 
| {{ #expr: 1*{{#var:HP|}}}}
 
| {{ #expr: 1*{{#var:HP|}}}}
| -{{ #expr: 1.0*{{#var:insulationcold|}}}}°C
+
| {{temperature|-{{ #expr: 1.0*{{#var:insulationcold|}}}}||delta}}
| +{{ #expr: 1.0*{{#var:insulationheat|}}}}°C
+
| +{{temperature|{{ #expr: 1.0*{{#var:insulationheat|}}}}||delta}}
 
| {{Market Value | {{ #expr: 1.0*{{#var:value|}}}}}}{{icon|silver|}}
 
| {{Market Value | {{ #expr: 1.0*{{#var:value|}}}}}}{{icon|silver|}}
 
|-
 
|-
Line 51: Line 51:
 
| {{#ifexpr: {{ #expr: 1.15*{{#var:armorheat|}}}} < 200 |{{#expr: 1.15*{{#var:armorheat|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.15*{{#var:armorheat|}}}} < 200 |{{#expr: 1.15*{{#var:armorheat|}}}}|200}}%
 
| {{ #expr: 1*{{#var:HP|}}}}
 
| {{ #expr: 1*{{#var:HP|}}}}
| -{{ #expr: 1.1*{{#var:insulationcold|}}}}&deg;C
+
| {{temperature|-{{ #expr: 1.1*{{#var:insulationcold|}}}}||delta}}
| +{{ #expr: 1.1*{{#var:insulationheat|}}}}&deg;C
+
| +{{temperature|{{ #expr: 1.1*{{#var:insulationheat|}}}}||delta}}
 
| {{Market Value | {{#ifexpr: {{ #expr: 1.25*{{#var:value|}}}} < {{ #expr: 500+{{#var:value|}}}} | {{ #expr: 1.25*{{#var:value|}}}} | {{ #expr: 500+{{#var:value|}}}}}}  }}{{icon|silver|}}
 
| {{Market Value | {{#ifexpr: {{ #expr: 1.25*{{#var:value|}}}} < {{ #expr: 500+{{#var:value|}}}} | {{ #expr: 1.25*{{#var:value|}}}} | {{ #expr: 500+{{#var:value|}}}}}}  }}{{icon|silver|}}
 
|-
 
|-
Line 61: Line 61:
 
| {{#ifexpr: {{ #expr: 1.3*{{#var:armorheat|}}}} < 200 |{{#expr: 1.3*{{#var:armorheat|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.3*{{#var:armorheat|}}}} < 200 |{{#expr: 1.3*{{#var:armorheat|}}}}|200}}%
 
| {{ #expr: 1*{{#var:HP|}}}}
 
| {{ #expr: 1*{{#var:HP|}}}}
| -{{ #expr: 1.2*{{#var:insulationcold|}}}}&deg;C
+
| {{temperature|-{{ #expr: 1.2*{{#var:insulationcold|}}}}||delta}}
| +{{ #expr: 1.2*{{#var:insulationheat|}}}}&deg;C
+
| +{{temperature|{{ #expr: 1.2*{{#var:insulationheat|}}}}||delta}}
 
| {{Market Value | {{#ifexpr: {{ #expr: 1.5*{{#var:value|}}}} < {{ #expr: 1000+{{#var:value|}}}} | {{ #expr: 1.5*{{#var:value|}}}} | {{ #expr: 1000+{{#var:value|}}}}}}  }}{{icon|silver|}}
 
| {{Market Value | {{#ifexpr: {{ #expr: 1.5*{{#var:value|}}}} < {{ #expr: 1000+{{#var:value|}}}} | {{ #expr: 1.5*{{#var:value|}}}} | {{ #expr: 1000+{{#var:value|}}}}}}  }}{{icon|silver|}}
 
|-
 
|-
Line 71: Line 71:
 
| {{#ifexpr: {{ #expr: 1.45*{{#var:armorheat|}}}} < 200 |{{#expr: 1.45*{{#var:armorheat|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.45*{{#var:armorheat|}}}} < 200 |{{#expr: 1.45*{{#var:armorheat|}}}}|200}}%
 
| {{ #expr: 1*{{#var:HP|}}}}
 
| {{ #expr: 1*{{#var:HP|}}}}
| -{{ #expr: 1.5*{{#var:insulationcold|}}}}&deg;C
+
| {{temperature|-{{ #expr: 1.5*{{#var:insulationcold|}}}}||delta}}
| +{{ #expr: 1.5*{{#var:insulationheat|}}}}&deg;C
+
| +{{temperature|{{ #expr: 1.5*{{#var:insulationheat|}}}}||delta}}
 
| {{Market Value | {{#ifexpr: {{ #expr: 2.5*{{#var:value|}}}} < {{ #expr: 2000+{{#var:value|}}}} | {{ #expr: 2.5*{{#var:value|}}}} | {{ #expr: 2000+{{#var:value|}}}}}}  }}{{icon|silver|}}
 
| {{Market Value | {{#ifexpr: {{ #expr: 2.5*{{#var:value|}}}} < {{ #expr: 2000+{{#var:value|}}}} | {{ #expr: 2.5*{{#var:value|}}}} | {{ #expr: 2000+{{#var:value|}}}}}}  }}{{icon|silver|}}
 
|-
 
|-
Line 81: Line 81:
 
| {{#ifexpr: {{ #expr: 1.8*{{#var:armorheat|}}}} < 200 |{{#expr: 1.8*{{#var:armorheat|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.8*{{#var:armorheat|}}}} < 200 |{{#expr: 1.8*{{#var:armorheat|}}}}|200}}%
 
| {{ #expr: 1*{{#var:HP|}}}}
 
| {{ #expr: 1*{{#var:HP|}}}}
| -{{ #expr: 1.8*{{#var:insulationcold|}}}}&deg;C
+
| {{temperature|-{{ #expr: 1.8*{{#var:insulationcold|}}}}||delta}}
| +{{ #expr: 1.8*{{#var:insulationheat|}}}}&deg;C
+
| +{{temperature|{{ #expr: 1.8*{{#var:insulationheat|}}}}||delta}}
 
| {{Market Value | {{#ifexpr: {{ #expr: 5*{{#var:value|}}}} < {{ #expr: 3000+{{#var:value|}}}} | {{ #expr: 5*{{#var:value|}}}} | {{ #expr: 3000+{{#var:value|}}}}}}  }}{{icon|silver|}}
 
| {{Market Value | {{#ifexpr: {{ #expr: 5*{{#var:value|}}}} < {{ #expr: 3000+{{#var:value|}}}} | {{ #expr: 5*{{#var:value|}}}} | {{ #expr: 3000+{{#var:value|}}}}}}  }}{{icon|silver|}}
 
|-
 
|-

Revision as of 23:24, 21 March 2022

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 each quality and for the variety of different materials available for it .

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

Note that it will automatically add the appropriate heading.

This template is dependent on Template:Apparel Stats Table/Row.

This template supersedes and merges with Template: Apparel Material Table, and the Template:Clothing material table and Template:Armor material table that came before it, 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 Stats Table | War mask}}

Produces:

Quality Table

  • Quality Sharp Blunt Heat Item HP Insulation - Cold Insulation - Heat Market Value
    Awful Duster Expression error: Missing operand for *.% Expression error: Missing operand for *.% Expression error: Missing operand for *.% 200 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Poor Duster Expression error: Missing operand for *.% Expression error: Missing operand for *.% Expression error: Missing operand for *.% 200 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Normal Duster Expression error: Missing operand for *.% Expression error: Missing operand for *.% Expression error: Missing operand for *.% 200 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Good Duster Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 200 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Excellent Duster Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 200 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Masterwork Duster Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 200 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Legendary Duster Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 200 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver

    For the full effects of qualities, see Quality.

  • Quality Table

  • Quality Sharp Blunt Heat Item HP Insulation - Cold Insulation - Heat Market Value
    Awful Plate armor Expression error: Missing operand for *.% Expression error: Missing operand for *.% Expression error: Missing operand for *.% 290 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Poor Plate armor Expression error: Missing operand for *.% Expression error: Missing operand for *.% Expression error: Missing operand for *.% 290 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Normal Plate armor Expression error: Missing operand for *.% Expression error: Missing operand for *.% Expression error: Missing operand for *.% 290 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Good Plate armor Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 290 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Excellent Plate armor Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 290 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Masterwork Plate armor Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 290 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver
    Legendary Plate armor Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 290 Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) +Expression error: Unexpected < operator. °C (Expression error: Unexpected < operator. °F) Expression error: Unexpected < operator. Silver

    For the full effects of qualities, see Quality.

  • Quality Table

  • Quality Sharp Blunt Heat Item HP Insulation - Cold Insulation - Heat Market Value
    Awful Cataphract armor 72% 30% 36% 400 -28.8 °C (-51.8 °F) +9.6 °C (17.3 °F) 1560 Silver
    Poor Cataphract armor 96% 40% 48% 400 -32.4 °C (-58.3 °F) +10.8 °C (19.4 °F) 1170 Silver
    Normal Cataphract armor 120% 50% 60% 400 -36 °C (-64.8 °F) +12 °C (21.6 °F) 1170 Silver
    Good Cataphract armor 138% 57.5% 69% 400 -39.6 °C (-71.3 °F) +13.2 °C (23.8 °F) 1460 Silver
    Excellent Cataphract armor 156% 65% 78% 400 -43.2 °C (-77.8 °F) +14.4 °C (25.9 °F) 2195 Silver
    Masterwork Cataphract armor 174% 72.5% 87% 400 -54 °C (-97.2 °F) +18 °C (32.4 °F) 4195 Silver
    Legendary Cataphract armor 200% 90% 108% 400 -64.8 °C (-116.6 °F) +21.6 °C (38.9 °F) 7195 Silver

    For the full effects of qualities, see Quality.