Difference between revisions of "Template:Apparel Stats Table"

From RimWorld Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
{{#vardefine:insulationcold|  {{formatnum:{{Q|{{#var:armorname}}|Insulation - Cold Base}}|R}}}}
 
{{#vardefine:insulationcold|  {{formatnum:{{Q|{{#var:armorname}}|Insulation - Cold Base}}|R}}}}
 
{{#vardefine:value|            {{formatnum:{{Q|{{#var:armorname}}|Market Value Base}}|R}}}}
 
{{#vardefine:value|            {{formatnum:{{Q|{{#var:armorname}}|Market Value Base}}|R}}}}
{| {{STDT|sortable c_03 text-center}}
+
<div style="float: left;">{| {{STDT|sortable c_03 text-center}}
 
|-
 
|-
 
! Quality
 
! Quality
Line 91: Line 91:
 
| {{icon|silver| {{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|}}}}}}  }}}}
 
|-
 
|-
|}</includeonly>
+
|}</div></includeonly>
 
<noinclude>
 
<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 03:09, 5 September 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

{| class="sortable c_03 text-center 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

{| class="sortable c_03 text-center 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

{| class="sortable c_03 text-center 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 |-

|}