Difference between revisions of "Template:Weapon Stats Table"
Line 3: | Line 3: | ||
{{Weapon Quality Table/Ranged|{{#var:name}}}} | {{Weapon Quality Table/Ranged|{{#var:name}}}} | ||
=== Melee === | === Melee === | ||
− | {{Weapon Quality Table/Melee|{{#var:name}}}}|{{Weapon Quality Table/Ranged|{{#var:name}}}}}}}}</includeonly> <noinclude> | + | {{Weapon Quality Table/Melee|{{#var:name}}}}|{{Weapon Quality Table/Ranged|{{#var:name}}}}}}}}</includeonly> <noinclude>{{Recode|reason = Option to suppress quality (not just via collapsing) to outmode [[Template:Other Weapon Attack Table]], and [[Template:Weapon No Quality Table]]}} |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 00:45, 13 April 2023
This page has been suggested for recoding. Reason: Option to suppress quality (not just via collapsing) to outmode Template:Other Weapon Attack Table, and Template:Weapon No Quality Table. You can help RimWorld Wiki by improving it. |
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:
- Template:Weapon Stats Table - Usually the template that should be called on normal pages. Creates the headers.
- Template:Weapon Stats Table/Ranged - Creates the table for ranged combat.
- Template:Weapon Stats Table/Ranged/Row - Creates the rows for the ranged combat table.
- Template:Weapon Stats Table/Melee - Creates the table for melee attacks.
- Template:Weapon Stats Table/Melee/Row - Creates the rows for the melee attacks table.
- Template:True Melee DPS Calculator - Does a lot of the calculations and defines essential variables for the /Melee/Row template.
- Template:Weapon Stats Table/Melee/Row - Creates the rows for the melee attacks table.
- Template:Weapon Stats Table/Ranged - Creates the table for ranged combat.
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
Ranged
Template:Weapon Quality Table/Ranged
Melee
Template:Weapon Quality Table/Melee
{{Weapon Stats Table | Incendiary launcher|}}
Produces:
Quality table
Ranged
Template:Weapon Quality Table/Ranged
Melee
The above documentation is transcluded from Template:Weapon Stats Table/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |