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 Marine armor 63.6% 27% 32.4% 340 -25.6°C +7.2°C Silver 1015
Poor Marine armor 84.8% 36% 43.2% 340 -28.8°C +8.1°C Silver 765
Normal Marine armor 106% 45% 54% 340 -32°C +9°C Silver 765
Good Marine armor 121.9% 51.75% 62.1% 340 -35.2°C +9.9°C Silver 955
Excellent Marine armor 137.8% 58.5% 70.2% 340 -38.4°C +10.8°C Silver 1430
Masterwork Marine armor 153.7% 65.25% 78.3% 340 -48°C +13.5°C Silver 3430
Legendary Marine armor 190.8% 81% 97.2% 340 -57.6°C +16.2°C Silver 6430