Difference between revisions of "Template:Apparel Stats Table"

From RimWorld Wiki
Jump to navigation Jump to search
(Removed deletion request; template is in active use.)
Line 21: Line 21:
  
  
! '''Awful'''
+
! '''Awful {{#var:armorname}}'''  
 
| {{ #expr: 0.6*{{#var:armorsharp|}}}}%
 
| {{ #expr: 0.6*{{#var:armorsharp|}}}}%
 
| {{ #expr: 0.6*{{#var:armorblunt|}}}}%
 
| {{ #expr: 0.6*{{#var:armorblunt|}}}}%
Line 32: Line 32:
  
  
! '''Poor'''
+
! '''Poor {{#var:armorname}}'''
 
| {{ #expr: 0.8*{{#var:armorsharp|}}}}%
 
| {{ #expr: 0.8*{{#var:armorsharp|}}}}%
 
| {{ #expr: 0.8*{{#var:armorblunt|}}}}%
 
| {{ #expr: 0.8*{{#var:armorblunt|}}}}%
Line 42: Line 42:
 
|-
 
|-
  
! '''Normal'''
+
! '''Normal {{#var:armorname}}'''
 
| {{ #expr: 1.0*{{#var:armorsharp|}}}}%
 
| {{ #expr: 1.0*{{#var:armorsharp|}}}}%
 
| {{ #expr: 1.0*{{#var:armorblunt|}}}}%
 
| {{ #expr: 1.0*{{#var:armorblunt|}}}}%
Line 52: Line 52:
 
|-
 
|-
  
! '''Good'''
+
! '''Good {{#var:armorname}}'''
 
| {{#ifexpr: {{ #expr: 1.15*{{#var:armorsharp|}}}} < 200 |{{#expr: 1.15*{{#var:armorsharp|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.15*{{#var:armorsharp|}}}} < 200 |{{#expr: 1.15*{{#var:armorsharp|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.15*{{#var:armorblunt|}}}} < 200 |{{#expr: 1.15*{{#var:armorblunt|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.15*{{#var:armorblunt|}}}} < 200 |{{#expr: 1.15*{{#var:armorblunt|}}}}|200}}%
Line 62: Line 62:
 
|-
 
|-
  
! '''Excellent'''
+
! '''Excellent {{#var:armorname}}'''
 
| {{#ifexpr: {{ #expr: 1.3*{{#var:armorsharp|}}}} < 200 |{{#expr: 1.3*{{#var:armorsharp|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.3*{{#var:armorsharp|}}}} < 200 |{{#expr: 1.3*{{#var:armorsharp|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.3*{{#var:armorblunt|}}}} < 200 |{{#expr: 1.3*{{#var:armorblunt|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.3*{{#var:armorblunt|}}}} < 200 |{{#expr: 1.3*{{#var:armorblunt|}}}}|200}}%
Line 72: Line 72:
 
|-
 
|-
  
! '''Masterwork'''
+
! '''Masterwork {{#var:armorname}}'''
 
| {{#ifexpr: {{ #expr: 1.45*{{#var:armorsharp|}}}} < 200 |{{#expr: 1.45*{{#var:armorsharp|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.45*{{#var:armorsharp|}}}} < 200 |{{#expr: 1.45*{{#var:armorsharp|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.45*{{#var:armorblunt|}}}} < 200 |{{#expr: 1.45*{{#var:armorblunt|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.45*{{#var:armorblunt|}}}} < 200 |{{#expr: 1.45*{{#var:armorblunt|}}}}|200}}%
Line 82: Line 82:
 
|-
 
|-
  
! '''Legendary'''
+
! '''Legendary {{#var:armorname}}'''
 
| {{#ifexpr: {{ #expr: 1.8*{{#var:armorsharp|}}}} < 200 |{{#expr: 1.8*{{#var:armorsharp|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.8*{{#var:armorsharp|}}}} < 200 |{{#expr: 1.8*{{#var:armorsharp|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.8*{{#var:armorblunt|}}}} < 200 |{{#expr: 1.8*{{#var:armorblunt|}}}}|200}}%
 
| {{#ifexpr: {{ #expr: 1.8*{{#var:armorblunt|}}}} < 200 |{{#expr: 1.8*{{#var:armorblunt|}}}}|200}}%

Revision as of 14:00, 28 August 2020


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: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Poor Duster Expression error: Missing operand for *.% Expression error: Missing operand for *.% Expression error: Missing operand for *.% 200 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Normal Duster Expression error: Missing operand for *.% Expression error: Missing operand for *.% Expression error: Missing operand for *.% 200 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Good Duster Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 200 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Excellent Duster Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 200 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Masterwork Duster Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 200 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Legendary Duster Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 200 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.


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: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Poor Plate armor Expression error: Missing operand for *.% Expression error: Missing operand for *.% Expression error: Missing operand for *.% 290 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Normal Plate armor Expression error: Missing operand for *.% Expression error: Missing operand for *.% Expression error: Missing operand for *.% 290 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Good Plate armor Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 290 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Excellent Plate armor Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 290 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Masterwork Plate armor Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 290 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.
Legendary Plate armor Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% 290 -Expression error: Missing operand for *.°C +Expression error: Missing operand for *.°C Silver Expression error: Unexpected < operator.


Quality Table

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