Difference between revisions of "Template:Armor material table"

From RimWorld Wiki
Jump to navigation Jump to search
(Removed deletion request; template is in active use.)
(Adding wood option)
Line 8: Line 8:
 
! Market Value
 
! Market Value
 
|-
 
|-
 +
{{#if: {{{ 2|}}} |
 +
<th> '''[[Wood]] {{#var:armorname}}'''
 +
<td> {{ #expr: {{Q|Wood|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100 round 1}}%
 +
<td> {{ #expr: {{Q|Wood|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100 round 1}}%
 +
<td> {{ #expr: {{Q|Wood|Armor - Heat Factor}}*{{#var:armorheat|}}*100 round 1}}%
 +
<td> {{ #expr: {{Q|Wood|Max Hit Points Factor}}*{{#var:HP|}}}}
 +
<td> {{icon|silver|{{Market Value | {{ #expr: {{Q|Wood|Market Value Base}}*{{#var:value|}}}}}}}}
 +
<tr>
 +
|}}
  
 
! '''[[Silver]] {{#var:armorname}}'''
 
! '''[[Silver]] {{#var:armorname}}'''
| {{ #expr: {{Q|Silver|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
+
| {{ #expr: {{Q|Silver|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100 round 1}}%
| {{ #expr: {{Q|Silver|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
+
| {{ #expr: {{Q|Silver|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100 round 1}}%
| {{ #expr: {{Q|Silver|Armor - Heat Factor}}*{{#var:armorheat|}}*100}}%
+
| {{ #expr: {{Q|Silver|Armor - Heat Factor}}*{{#var:armorheat|}}*100 round 1}}%
 
| {{ #expr: {{Q|Silver|Max Hit Points Factor}}*{{#var:HP|}}}}
 
| {{ #expr: {{Q|Silver|Max Hit Points Factor}}*{{#var:HP|}}}}
 
| {{icon|silver|{{Market Value | {{ #expr: {{Q|Silver|Market Value Base}}*{{#var:value|}}}}}}}}
 
| {{icon|silver|{{Market Value | {{ #expr: {{Q|Silver|Market Value Base}}*{{#var:value|}}}}}}}}
Line 18: Line 27:
  
 
! '''[[Gold]] {{#var:armorname}}'''
 
! '''[[Gold]] {{#var:armorname}}'''
| {{ #expr: {{Q|Gold|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
+
| {{ #expr: {{Q|Gold|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100 round 1}}%
| {{ #expr: {{Q|Gold|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
+
| {{ #expr: {{Q|Gold|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100 round 1}}%
| {{ #expr: {{Q|Gold|Armor - Heat Factor}}*{{#var:armorheat|}}*100}}%
+
| {{ #expr: {{Q|Gold|Armor - Heat Factor}}*{{#var:armorheat|}}*100 round 1}}%
 
| {{ #expr: {{Q|Gold|Max Hit Points Factor}}*{{#var:HP|}}}}
 
| {{ #expr: {{Q|Gold|Max Hit Points Factor}}*{{#var:HP|}}}}
 
| {{icon|silver|{{Market Value | {{ #expr: {{Q|Gold|Market Value Base}}*{{#var:value|}}}}}}}}
 
| {{icon|silver|{{Market Value | {{ #expr: {{Q|Gold|Market Value Base}}*{{#var:value|}}}}}}}}
Line 26: Line 35:
  
 
! '''[[Steel]] {{#var:armorname}}'''
 
! '''[[Steel]] {{#var:armorname}}'''
| {{ #expr: {{Q|Steel|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
+
| {{ #expr: {{Q|Steel|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100 round 1}}%
| {{ #expr: {{Q|Steel|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
+
| {{ #expr: {{Q|Steel|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100 round 1}}%
| {{ #expr: {{Q|Steel|Armor - Heat Factor}}*{{#var:armorheat|}}*100}}%
+
| {{ #expr: {{Q|Steel|Armor - Heat Factor}}*{{#var:armorheat|}}*100 round 1}}%
 
| {{ #expr: {{Q|Steel|Max Hit Points Factor}}*{{#var:HP|}}}}
 
| {{ #expr: {{Q|Steel|Max Hit Points Factor}}*{{#var:HP|}}}}
 
| {{icon|silver|{{Market Value | {{ #expr: {{Q|Steel|Market Value Base}}*{{#var:value|}}}}}}}}
 
| {{icon|silver|{{Market Value | {{ #expr: {{Q|Steel|Market Value Base}}*{{#var:value|}}}}}}}}
Line 34: Line 43:
  
 
! '''[[Plasteel]] {{#var:armorname}}'''
 
! '''[[Plasteel]] {{#var:armorname}}'''
| {{ #expr: {{Q|Plasteel|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
+
| {{ #expr: {{Q|Plasteel|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100 round 1}}%
| {{ #expr: {{Q|Plasteel|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%
+
| {{ #expr: {{Q|Plasteel|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100 round 1}}%
| {{ #expr: {{Q|Plasteel|Armor - Heat Factor}}*{{#var:armorheat|}}*100}}%
+
| {{ #expr: {{Q|Plasteel|Armor - Heat Factor}}*{{#var:armorheat|}}*100 round 1}}%
 
| {{ #expr: {{Q|Plasteel|Max Hit Points Factor}}*{{#var:HP|}}}}
 
| {{ #expr: {{Q|Plasteel|Max Hit Points Factor}}*{{#var:HP|}}}}
 
| {{icon|silver|{{Market Value | {{ #expr: {{Q|Plasteel|Market Value Base}}*{{#var:value|}}}}}}}}
 
| {{icon|silver|{{Market Value | {{ #expr: {{Q|Plasteel|Market Value Base}}*{{#var:value|}}}}}}}}
Line 42: Line 51:
  
 
! '''[[Uranium]] {{#var:armorname}}'''
 
! '''[[Uranium]] {{#var:armorname}}'''
| {{ #expr: {{Q|Uranium|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100}}%
+
| {{ #expr: {{Q|Uranium|Armor - Sharp Factor}}*{{#var:armorsharp|}}*100 round 1}}%
| {{ #expr: {{Q|Uranium|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100}}%  
+
| {{ #expr: {{Q|Uranium|Armor - Blunt Factor}}*{{#var:armorblunt|}}*100 round 1}}%  
| {{ #expr: {{Q|Uranium|Armor - Heat Factor}}*{{#var:armorheat|}}*100}}%
+
| {{ #expr: {{Q|Uranium|Armor - Heat Factor}}*{{#var:armorheat|}}*100 round 1}}%
 
| {{ #expr: {{Q|Uranium|Max Hit Points Factor}}*{{#var:HP|}}}}
 
| {{ #expr: {{Q|Uranium|Max Hit Points Factor}}*{{#var:HP|}}}}
 
| {{icon|silver|{{Market Value | {{ #expr: {{Q|Uranium|Market Value Base}}*{{#var:value|}}}}}}}}
 
| {{icon|silver|{{Market Value | {{ #expr: {{Q|Uranium|Market Value Base}}*{{#var:value|}}}}}}}}

Revision as of 09:27, 20 August 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.6% 26.3% 26.3% 203 Silver Expression error: Unexpected < operator.
Gold Plate armor 52.6% 26.3% 26.3% 174 Silver Expression error: Unexpected < operator.
Steel Plate armor 65.7% 32.9% 43.8% 290 Silver Expression error: Unexpected < operator.
Plasteel Plate armor 83.2% 40.2% 47.5% 812 Silver Expression error: Unexpected < operator.
Uranium Plate armor 78.8% 39.4% 47.5% 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
Wood Plate armor 39.4% 39.4% 29.2% 188.5 Silver Expression error: Unexpected < operator.
Silver Plate armor 52.6% 26.3% 26.3% 203 Silver Expression error: Unexpected < operator.
Gold Plate armor 52.6% 26.3% 26.3% 174 Silver Expression error: Unexpected < operator.
Steel Plate armor 65.7% 32.9% 43.8% 290 Silver Expression error: Unexpected < operator.
Plasteel Plate armor 83.2% 40.2% 47.5% 812 Silver Expression error: Unexpected < operator.
Uranium Plate armor 78.8% 39.4% 47.5% 725 Silver Expression error: Unexpected < operator.

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