Difference between revisions of "Template:Weapon Stats Table/Ranged"
m (Ickputzdirwech moved page Template:Weapon Quality Table/Ranged to Template:Weapon Stats Table/Ranged: Name that better reflects the extended scope of application) |
(Is this what causes the push down?) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div><li style="display: inline-table;"><!-- | <includeonly><div><li style="display: inline-table;"><!-- | ||
− | -->{{#vardefine:name | + | -->{{#vardefine:name | {{{ 1 | {{PAGENAME}} }}} }}<!-- |
− | -->{{#vardefine:range | + | -->{{#vardefine:range | {{Q|{{#var:name}}|Range}} }}<!-- |
− | -->{{#vardefine:damage | + | -->{{#vardefine:damage | {{formatnum:{{Q|{{#var:name}}|Damage Base}}|R}} }}<!-- |
− | -->{{#vardefine:avgAP | + | -->{{#vardefine:avgAP | {{formatnum:{{Q|{{#var:name}}|Armor Penetration}}|R}}/100 }}<!-- |
− | -->{{#vardefine:accTouch | + | -->{{#vardefine:accTouch | {{formatnum:{{Q|{{#var:name}}|Accuracy (Touch) Base}}|R}}/100 }}<!-- |
− | -->{{#vardefine:accShort | + | -->{{#vardefine:accShort | {{formatnum:{{Q|{{#var:name}}|Accuracy (Short) Base}}|R}}/100 }}<!-- |
− | -->{{#vardefine:accMedium | {{formatnum:{{Q|{{#var:name}}|Accuracy (Medium) Base}}|R}}/100 }}<!-- | + | -->{{#vardefine:accMedium | {{formatnum:{{Q|{{#var:name}}|Accuracy (Medium) Base}}|R}}/100 }}<!-- |
− | -->{{#vardefine:accLong | + | -->{{#vardefine:accLong | {{formatnum:{{Q|{{#var:name}}|Accuracy (Long) Base}}|R}}/100 }}<!-- |
− | -->{{#vardefine:avgDPS | + | -->{{#vardefine:avgDPS | {{formatnum:{{Q|{{#var:name}}|Maximum DPS}}|R}} }}<!-- |
− | -->{{#vardefine:hasQuality| {{# | + | -->{{#vardefine:hasQuality | {{#ifeq: {{Q|{{#var:name}}|Has Quality}} | true | true}} }}<!-- |
− | |||
− | |||
− | }} }}<!-- | ||
-->{{#vardefine:headerStyle| {{#if: {{#var:hasQuality}} | rowspan="2" style="border-style: none;" {{!}} }} }} | -->{{#vardefine:headerStyle| {{#if: {{#var:hasQuality}} | rowspan="2" style="border-style: none;" {{!}} }} }} | ||
{| {{STDT|c_03 text-center}} | {| {{STDT|c_03 text-center}} | ||
Line 39: | Line 36: | ||
<th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none none;"> {{AP}}</th> | <th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none none;"> {{AP}}</th> | ||
</tr> | </tr> | ||
− | {{Weapon | + | {{Weapon Stats Table/Ranged/Row|Awful|1}} |
− | {{Weapon | + | {{Weapon Stats Table/Ranged/Row|Poor|2}} |
− | {{Weapon | + | {{Weapon Stats Table/Ranged/Row|Normal|3}} |
− | {{Weapon | + | {{Weapon Stats Table/Ranged/Row|Good|4}} |
− | {{Weapon | + | {{Weapon Stats Table/Ranged/Row|Excellent|5}} |
− | {{Weapon | + | {{Weapon Stats Table/Ranged/Row|Masterwork|6}} |
− | {{Weapon | + | {{Weapon Stats Table/Ranged/Row|Legendary|7}} |
− | | | + | | {{Weapon Stats Table/Ranged/Row}} |
}} | }} | ||
|} | |} | ||
− | <sup>{{#if: {{#var:hasQuality}} | For the full effects of qualities, see [[Quality]].}} {{#if: {{#var:missRadius}} || Values shown in <span style="color:firebrick; font-weight:bold>Red</span> indicate the weapon is out of range at the reference point for this range band. The value is provided due to the [[Weapons#Range|interpolated nature]] of accuracy between range points.}}</sup> | + | <sup>{{#if: {{#var:hasQuality}} | For the full effects of qualities, see [[Quality]].}} {{#if: {{#var:missRadius}} || Values shown in <span style="color:firebrick; font-weight:bold>Red</span> indicate the weapon is out of range at the reference point for this range band.<br>The value is provided due to the [[Weapons#Range|interpolated nature]] of accuracy between range points.}}</sup> |
</li></div></includeonly><noinclude> | </li></div></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 11:24, 1 July 2024
Summary[edit]
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[edit]
If you want to use this template specifically you can specify the weapon as the first parameter:
{{Weapon Stats Table/Ranged|Sniper rifle}}
Otherwise it will use the name of the page it's placed on:
{{Weapon Stats Table/Ranged}}
Examples[edit]
Sniper rifle[edit]
A weapon with quality, no AOE, and range greater than long
{{Weapon Stats Table/Ranged|Sniper rifle}}
For the full effects of qualities, see Quality. Values shown in Red indicate the weapon is out of range at the reference point for this range band.
The value is provided due to the interpolated nature of accuracy between range points.
Chain shotgun[edit]
A weapon with quality, no AOE, and range below long
{{Weapon Stats Table/Ranged|Chain shotgun}}
For the full effects of qualities, see Quality. Values shown in Red indicate the weapon is out of range at the reference point for this range band.
The value is provided due to the interpolated nature of accuracy between range points.
Incendiary launcher[edit]
A weapon with quality and AOE
{{Weapon Stats Table/Ranged|Incendiary launcher}}
For the full effects of qualities, see Quality.
Frag grenades[edit]
A weapon with no quality and AOE
{{Weapon Stats Table/Ranged|Frag grenades}}
Charge blaster turret[edit]
A weapon with no quality and no AOE
{{Weapon Stats Table/Ranged|Charge blaster turret}}
Values shown in Red indicate the weapon is out of range at the reference point for this range band.
The value is provided due to the interpolated nature of accuracy between range points.
The above documentation is transcluded from Template:Weapon Stats Table/Ranged/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. |