Difference between revisions of "Template:Armor material table"

From RimWorld Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
|-
 
|-
  
! '''[[Silver]] {{PAGENAME}}'''
+
! '''[[Silver]] {{#var:armorname}}'''
 
| {{ #expr: {{Q|Silver|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
 
| {{ #expr: {{Q|Silver|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
 
| {{ #expr: {{Q|Silver|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
 
| {{ #expr: {{Q|Silver|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
Line 17: Line 17:
 
|-
 
|-
  
! '''[[Gold]] {{PAGENAME}}'''
+
! '''[[Gold]] {{#var:armorname}}'''
 
| {{ #expr: {{Q|Gold|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
 
| {{ #expr: {{Q|Gold|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
 
| {{ #expr: {{Q|Gold|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
 
| {{ #expr: {{Q|Gold|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
Line 25: Line 25:
 
|-
 
|-
  
! '''[[Steel]] {{PAGENAME}}'''
+
! '''[[Steel]] {{#var:armorname}}'''
 
| {{ #expr: {{Q|Steel|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
 
| {{ #expr: {{Q|Steel|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
 
| {{ #expr: {{Q|Steel|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
 
| {{ #expr: {{Q|Steel|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
Line 33: Line 33:
 
|-
 
|-
  
! '''[[Plasteel]] {{PAGENAME}}'''
+
! '''[[Plasteel]] {{#var:armorname}}'''
 
| {{ #expr: {{Q|Plasteel|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
 
| {{ #expr: {{Q|Plasteel|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
 
| {{ #expr: {{Q|Plasteel|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
 
| {{ #expr: {{Q|Plasteel|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
Line 41: Line 41:
 
|-
 
|-
  
! '''[[Uranium]] {{PAGENAME}}'''
+
! '''[[Uranium]] {{#var:armorname}}'''
 
| {{ #expr: {{Q|Uranium|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
 
| {{ #expr: {{Q|Uranium|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
 
| {{ #expr: {{Q|Uranium|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%  
 
| {{ #expr: {{Q|Uranium|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%  

Revision as of 13:59, 27 April 2020


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

Description

This template generates a table summarizing stats for an article of armor, including Sharp, Blunt and Heat armor, HP, and Market Value, for the variety of different materials available for it.

Parameters

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

The second parameter indicates if Wood should be included in the materials list. If absent, it will assume not.

Example usage

{{Armor material table | Plate armor}}

Produces:

Material Sharp Blunt Heat Item HP Market Value
Silver Plate armor 52.56% 26.28% 26.28% 203 Silver Expression error: Unexpected < operator.
Gold Plate armor 52.56% 26.28% 26.28% 174 Silver Expression error: Unexpected < operator.
Steel Plate armor 65.7% 32.85% 43.8% 290 Silver Expression error: Unexpected < operator.
Plasteel Plate armor 83.22% 40.15% 47.45% 812 Silver Expression error: Unexpected < operator.
Uranium Plate armor 78.84% 39.42% 47.45% 725 Silver Expression error: Unexpected < operator.

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

{{Armor material table | Plate armor | 1}}

Produces:

Material Sharp Blunt Heat Item HP Market Value
Silver Plate armor 52.56% 26.28% 26.28% 203 Silver Expression error: Unexpected < operator.
Gold Plate armor 52.56% 26.28% 26.28% 174 Silver Expression error: Unexpected < operator.
Steel Plate armor 65.7% 32.85% 43.8% 290 Silver Expression error: Unexpected < operator.
Plasteel Plate armor 83.22% 40.15% 47.45% 812 Silver Expression error: Unexpected < operator.
Uranium Plate armor 78.84% 39.42% 47.45% 725 Silver Expression error: Unexpected < operator.

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