Template:Weapon Stats Table
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
Quality | Average DPS | Average AP | Market Value |
---|---|---|---|
Awful | Expression error: Missing operand for *. | Expression error: Missing operand for *.% | 1500 |
Poor | Expression error: Missing operand for *. | Expression error: Missing operand for *.% | 1125 |
Normal | Expression error: Missing operand for *. | Expression error: Missing operand for *.% | 1125 |
Good | Expression error: Missing operand for *. | Expression error: Missing operand for *.% | 1405 |
Excellent | Expression error: Missing operand for *. | Expression error: Missing operand for *.% | 2110 |
Masterwork | Expression error: Missing operand for *. | Expression error: Missing operand for *.% | 4110 |
Legendary | Expression error: Missing operand for *. | Expression error: Missing operand for *.% | 7110 |
{{Weapon Stats Table | Assault rifle|}}
Produces:
Quality Table
Quality | Average DPS | Average AP | Market Value |
---|---|---|---|
Awful | 8.704 | 8.8% | 240 |
Poor | 9.792 | 9.9% | 180 |
Normal | 10.88 | 11% | 180 |
Good | 11.968 | 12.1% | 225 |
Excellent | 13.056 | 13.2% | 335 |
Masterwork | 15.776 | 15.95% | 845 |
Legendary | 17.952 | 18.15% | 3845 |
{{Weapon Stats Table | Incendiary launcher|}}
Produces:
Quality Table
Quality | Average DPS | Average AP | Market Value |
---|---|---|---|
Awful | 1.144 | 8% | 170 |
Poor | 1.287 | 9% | 128 |
Normal | 1.43 | 10% | 128 |
Good | 1.573 | 11% | 159 |
Excellent | 1.716 | 12% | 240 |
Masterwork | 2.0735 | 14.5% | 600 |
Legendary | 2.3595 | 16.5% | 2990 |
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. |