Difference between revisions of "Template:Weapon Stats Table"
(Creating page - not currently valid for ranged but will be.) |
|||
Line 1: | Line 1: | ||
<includeonly>==Quality Table== | <includeonly>==Quality Table== | ||
− | {{#vardefine:name | {{{ 1 | {{PAGENAME}} }}} }} | + | {{#vardefine:name| {{{ 1 | {{PAGENAME}} }}} }} |
{{#ifeq: {{{ 2|}}} | Melee | | {{#ifeq: {{{ 2|}}} | Melee | | ||
− | {{#vardefine:avgDPS | {{formatnum:{{Q|{{#var:name }}|MeleeDPS}}|R}}}} | + | {{#vardefine:avgDPS | {{formatnum:{{Q|{{#var:name}}|MeleeDPS}}|R}}}} |
− | {{#vardefine:avgAP| {{formatnum:{{Q|{{#var:name }}|MeleeAP}}|R}}}} | + | {{#vardefine:avgAP| {{formatnum:{{Q|{{#var:name}}|MeleeAP}}|R}}}} |
| | | | ||
− | {{#vardefine:avgDPS | {{formatnum:{{Q|{{#var:name }}|Maximum DPS}}|R}}}} | + | {{#vardefine:avgDPS | {{formatnum:{{Q|{{#var:name}}|Maximum DPS}}|R}}}} |
− | {{#vardefine:avgAP| {{formatnum:{{Q|{{#var:name }}|Damage Base}}|R}}}} | + | {{#vardefine:avgAP| {{formatnum:{{Q|{{#var:name}}|Damage Base}}|R}}}} |
}} | }} | ||
− | {{#vardefine:value| {{formatnum:{{Q|{{#var:name }}|Market Value Base}}|R}}}} | + | {{#vardefine:value| {{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}}}} |
{| {{STDT|sortable c_03 text-center}} | {| {{STDT|sortable c_03 text-center}} | ||
|- | |- | ||
Line 22: | Line 22: | ||
! '''Awful''' | ! '''Awful''' | ||
− | | {{ #expr: 0.8*{{#var:avgDPS|}}}} | + | | {{ #expr: 0.8*{{#var:avgDPS|}}}} |
| {{ #expr: 0.8*{{#var:avgAP|}}}}% | | {{ #expr: 0.8*{{#var:avgAP|}}}}% | ||
| {{icon|silver|{{Market Value | {{ #expr: 0.5*{{#var:value|}}}}}}}} | | {{icon|silver|{{Market Value | {{ #expr: 0.5*{{#var:value|}}}}}}}} | ||
Line 29: | Line 29: | ||
! '''Poor''' | ! '''Poor''' | ||
− | | {{ #expr: 0.9*{{#var:avgDPS|}}}} | + | | {{ #expr: 0.9*{{#var:avgDPS|}}}} |
| {{ #expr: 0.9*{{#var:avgAP|}}}}% | | {{ #expr: 0.9*{{#var:avgAP|}}}}% | ||
| {{icon|silver|{{Market Value | {{ #expr: 0.75*{{#var:value|}}}}}}}} | | {{icon|silver|{{Market Value | {{ #expr: 0.75*{{#var:value|}}}}}}}} | ||
Line 35: | Line 35: | ||
! '''Normal''' | ! '''Normal''' | ||
− | | {{ #expr: 1.0*{{#var:avgDPS|}}}} | + | | {{ #expr: 1.0*{{#var:avgDPS|}}}} |
| {{ #expr: 1.0*{{#var:avgAP|}}}}% | | {{ #expr: 1.0*{{#var:avgAP|}}}}% | ||
| {{icon|silver|{{Market Value | {{ #expr: 1.0*{{#var:value|}}}}}}}} | | {{icon|silver|{{Market Value | {{ #expr: 1.0*{{#var:value|}}}}}}}} | ||
Line 41: | Line 41: | ||
! '''Good''' | ! '''Good''' | ||
− | | {{ #expr: 1.1*{{#var:avgDPS|}}}} | + | | {{ #expr: 1.1*{{#var:avgDPS|}}}} |
| {{ #expr: 1.1*{{#var:avgAP|}}}}% | | {{ #expr: 1.1*{{#var:avgAP|}}}}% | ||
| {{icon|silver| {{Market Value | {{#ifexpr: {{ #expr: 1.25*{{#var:value|}}}} < {{ #expr: 500+{{#var:value|}}}} | {{ #expr: 1.25*{{#var:value|}}}} | {{ #expr: 500+{{#var:value|}}}}}} }}}} | | {{icon|silver| {{Market Value | {{#ifexpr: {{ #expr: 1.25*{{#var:value|}}}} < {{ #expr: 500+{{#var:value|}}}} | {{ #expr: 1.25*{{#var:value|}}}} | {{ #expr: 500+{{#var:value|}}}}}} }}}} | ||
Line 47: | Line 47: | ||
! '''Excellent''' | ! '''Excellent''' | ||
− | | {{ #expr: 1.2*{{#var:avgDPS|}}}} | + | | {{ #expr: 1.2*{{#var:avgDPS|}}}} |
| {{ #expr: 1.2*{{#var:avgAP|}}}}% | | {{ #expr: 1.2*{{#var:avgAP|}}}}% | ||
| {{icon|silver| {{Market Value | {{#ifexpr: {{ #expr: 1.5*{{#var:value|}}}} < {{ #expr: 1000+{{#var:value|}}}} | {{ #expr: 1.5*{{#var:value|}}}} | {{ #expr: 1000+{{#var:value|}}}}}} }}}} | | {{icon|silver| {{Market Value | {{#ifexpr: {{ #expr: 1.5*{{#var:value|}}}} < {{ #expr: 1000+{{#var:value|}}}} | {{ #expr: 1.5*{{#var:value|}}}} | {{ #expr: 1000+{{#var:value|}}}}}} }}}} | ||
Line 53: | Line 53: | ||
! '''Masterwork''' | ! '''Masterwork''' | ||
− | | {{ #expr: 1.45*{{#var:avgDPS|}}}} | + | | {{ #expr: 1.45*{{#var:avgDPS|}}}} |
| {{ #expr: 1.45*{{#var:avgAP|}}}}% | | {{ #expr: 1.45*{{#var:avgAP|}}}}% | ||
| {{icon|silver| {{Market Value | {{#ifexpr: {{ #expr: 2.5*{{#var:value|}}}} < {{ #expr: 2000+{{#var:value|}}}} | {{ #expr: 2.5*{{#var:value|}}}} | {{ #expr: 2000+{{#var:value|}}}}}} }}}} | | {{icon|silver| {{Market Value | {{#ifexpr: {{ #expr: 2.5*{{#var:value|}}}} < {{ #expr: 2000+{{#var:value|}}}} | {{ #expr: 2.5*{{#var:value|}}}} | {{ #expr: 2000+{{#var:value|}}}}}} }}}} | ||
Line 59: | Line 59: | ||
! '''Legendary''' | ! '''Legendary''' | ||
− | | {{ #expr: 1.65*{{#var:avgDPS|}}}} | + | | {{ #expr: 1.65*{{#var:avgDPS|}}}} |
| {{ #expr: 1.65*{{#var:avgAP|}}}}% | | {{ #expr: 1.65*{{#var:avgAP|}}}}% | ||
| {{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|}}}}}} }}}} |
Revision as of 13:53, 28 August 2020
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. |