Template:Weapon Stats Table

From RimWorld Wiki
Revision as of 13:56, 30 June 2022 by Harakoni (talk | contribs) (Replaced content with "<includeonly>==Quality table== {{#ifeq: {{Q|{{#vardefineecho:name| {{{ 1 | {{PAGENAME}} }}} }}|Mode}} | Melee | {{Weapon Quality Table/Melee|{{#var:name}}}}|{{Weapon Quali...")
Jump to navigation Jump to search
Documentation icon Template documentation[view] [edit] [history] [purge]

Description

This template generates a table summarizing stats for an given weapon, including average damage per second, armor piercing and Market Value, for each quality tier (if applicable) and every stuff option (if applicable).

Note that at the time of writing, weapons with no quality are hardcoded into the template, rather than pulled from the page properties. New no-quality weapons must be manually excepted from the template.

Property:Mode must be set to properly display melee weapons, otherwise it will default to the ranged format.

This template is part of the following system generating tables for all weapons:

Parameters

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

The no header parameter will disable the top heading, but not the subheadings for ranged and melee attacks, when set to true.

The header level parameter takes numbers and sets the size of the headings - note that top heading is sized by the number directly, with subheading one size smaller. Default value is 2. It can be used with or without no header.

Example usage

{{Weapon Stats Table | Persona monosword}}

Produces:

Quality table

Template:Weapon Quality Table/Melee

{{Weapon Stats Table | Assault rifle|}}

Produces:

Quality table

Template:Weapon Quality Table/Ranged

{{Weapon Stats Table | Incendiary launcher|}}

Produces:

Quality table

Template:Weapon Quality Table/Ranged