Difference between revisions of "Template:Weapon Material Table"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>{{Weapon Material Table|Ikwa}}</noinclude><includeonly>==Material Table== {{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }} {| {{STDT|sortable c_03 text-center}} |- !...")
 
Line 1: Line 1:
<noinclude>{{Weapon Material Table|Ikwa}}</noinclude><includeonly>==Material Table==
+
<includeonly>==Material Table==
 
{{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }}
 
{{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }}
  
Line 78: Line 78:
 
}}
 
}}
 
|-
 
|-
{{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}}||  
+
{{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}}||
 
{{Weapon Material Table Row |Gold}}
 
{{Weapon Material Table Row |Gold}}
 
{{Weapon Material Table Row |Plasteel}}
 
{{Weapon Material Table Row |Plasteel}}

Revision as of 07:43, 14 September 2021

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


Description

This template generates a table summarizing stats for a weapon for the variety of different materials available for it.

The template will automatically detect the material types applicable to the item using the Stuff Tags variable in the infobox and display them. The item must be stuffable and must have the correct Resource X/Resource X Amount parameters in addition to the Stuff Tags, and Resource 1 must be set to "Stuff".

Note that it will automatically add the appropriate heading.

This template is dependent on Template:Weapon Material Table Row and Template:True Melee DPS Calculator

Parameters

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

Example usage

{{Weapon Material Table}}

on the Ikwa page would produce:

Material Table

Material Attack 1 Damage (Type) Attack 1 Cooldown Attack 1 AP Attack 1 DPS Attack 2 Damage (Type) Attack 2 Cooldown Attack 2 AP Attack 2 DPS Attack 3 Damage (Type) Attack 3 Cooldown Attack 3 AP Attack 3 DPS Attack 4 Damage (Type) Attack 4 Cooldown Attack 4 AP Attack 4 DPS Item HP Market Value
Assuming Normal quality, for the effect of other qualities, see Quality.
{{Weapon Material Table | Axe}}

on any page would produce:

Material Table

Material Attack 1 Damage (Type) Attack 1 Cooldown Attack 1 AP Attack 1 DPS Attack 2 Damage (Type) Attack 2 Cooldown Attack 2 AP Attack 2 DPS


Item HP Market Value

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