Difference between revisions of "Template:Weapon Stats Table/Ranged"

From RimWorld Wiki
Jump to navigation Jump to search
(moved repetitive stuff in extra template)
Line 1: Line 1:
 
<includeonly><div><li style="display: inline-table;"><!--
 
<includeonly><div><li style="display: inline-table;"><!--
-->{{#vardefine:range|{{Q|{{#vardefineecho:name| {{{ 1 | {{PAGENAME}} }}} }}|Range}}}}
+
-->{{#vardefine:name    | {{{ 1 | {{PAGENAME}} }}} }}<!--
 +
-->{{#vardefine:range   | {{Q|{{#var:name}}|Range}} }}<!--
 +
-->{{#vardefine:damage  | {{formatnum:{{Q|{{#var:name}}|Damage Base}}|R}} }}<!--
 +
-->{{#vardefine:avgAP    | {{formatnum:{{Q|{{#var:name}}|Armor Penetration}}|R}}/100 }}<!--
 +
-->{{#vardefine:accTouch | {{formatnum:{{Q|{{#var:name}}|Accuracy (Touch) Base}}|R}}/100 }}<!--
 +
-->{{#vardefine:accShort | {{formatnum:{{Q|{{#var:name}}|Accuracy (Short) Base}}|R}}/100 }}<!--
 +
-->{{#vardefine:accMedium| {{formatnum:{{Q|{{#var:name}}|Accuracy (Medium) Base}}|R}}/100 }}<!--
 +
-->{{#vardefine:accLong  | {{formatnum:{{Q|{{#var:name}}|Accuracy (Long) Base}}|R}}/100 }}<!--
 +
-->{{#vardefine:avgDPS  | {{formatnum:{{Q|{{#var:name}}|Maximum DPS}}|R}} }}<!--
 +
-->
 
{| {{STDT|sortable c_03 text-center}}
 
{| {{STDT|sortable c_03 text-center}}
|-
 
 
! Quality
 
! Quality
 
! <abbr title="Damage per shot">Dam.</abbr>
 
! <abbr title="Damage per shot">Dam.</abbr>
Line 19: Line 27:
 
   ! <abbr title="DPS x Accuracy at Long Range (40 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Long)</small></abbr>
 
   ! <abbr title="DPS x Accuracy at Long Range (40 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Long)</small></abbr>
 
}}
 
}}
! Market<br>Value
+
! Market<br/>value
|-
+
{{#switch: {{#var:name}}
! style="text-align:right;" | Awful {{#var:name}}
+
| Charge blaster turret = {{Weapon Quality Table/Ranged/Row}}
| {{#expr: 0.9*{{#vardefineecho:damage| {{formatnum:{{Q|{{#var:name}}|Damage Base}}|R}} }} round 2}}
+
| #default =
| {{#if: {{#vardefineecho:avgAP| {{formatnum:{{Q|{{#var:name}}|Armor Penetration}}|R}}/100 }} | {{%|0.9*{{#var:avgAP}} round 4}} | -}}
+
{{Weapon Quality Table/Ranged/Row|Awful}}
{{#if: {{#var:missRadius}} ||
+
{{Weapon Quality Table/Ranged/Row|Poor}}
  {{!}} {{#if: {{#vardefineecho:accTouch|  {{formatnum:{{Q|{{#var:name}}|Accuracy (Touch) Base}}|R}} /100|}} | {{#ifexpr: 0.8*{{#var:accTouch}}  > 1 | 100% | {{%| 0.8*{{#var:accTouch}}  round 2}} }} | -}}
+
{{Weapon Quality Table/Ranged/Row|Normal}}
  {{!}} {{#if: {{#vardefineecho:accShort|  {{formatnum:{{Q|{{#var:name}}|Accuracy (Short) Base}}|R}} /100|}} | {{#ifexpr: 0.8*{{#var:accShort}}  > 1 | 100% | {{%| 0.8*{{#var:accShort}}  round 2}} }} | -}}
+
{{Weapon Quality Table/Ranged/Row|Good}}
  {{!}} {{#if: {{#vardefineecho:accMedium| {{formatnum:{{Q|{{#var:name}}|Accuracy (Medium) Base}}|R}}/100|}} | {{#ifexpr: 0.8*{{#var:accMedium}} > 1 | 100% | {{%| 0.8*{{#var:accMedium}} round 2}} }} | -}}
+
{{Weapon Quality Table/Ranged/Row|Excellent}}
  {{!}} {{#if: {{#vardefineecho:accLong|  {{formatnum:{{Q|{{#var:name}}|Accuracy (Long) Base}}|R}}  /100|}} | {{#ifexpr: 0.8*{{#var:accLong}}  > 1 | 100% | {{%| 0.8*{{#var:accLong}}  round 2}} }} | -}}
+
{{Weapon Quality Table/Ranged/Row|Masterwork}}
}}
+
{{Weapon Quality Table/Ranged/Row|Legendary}}
| {{#expr: 0.9*{{#vardefineecho:avgDPS | {{formatnum:{{Q|{{#var:name}}|Maximum DPS}}|R}} }} round 2}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if:{{Q| {{#var:name}} | Accuracy (Touch) Base}} |
 
    {{!}} {{#ifexpr:{{#var:range}}>= 0|{{#ifexpr:{{#var:range}}<3|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 0.8*{{#var:accTouch}}  > 1 | 1 | {{#expr: 0.8*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}}*0.9 round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>= 3|{{#ifexpr:{{#var:range}}<12|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 0.8*{{#var:accShort}}  > 1 | 1 | {{#expr: 0.8*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}}*0.9 round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=12|{{#ifexpr:{{#var:range}}<25|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 0.8*{{#var:accMedium}} > 1 | 1 | {{#expr: 0.8*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}}*0.9 round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=25|{{#ifexpr:{{#var:range}}<40|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 0.8*{{#var:accLong}}  > 1 | 1 | {{#expr: 0.8*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}}*0.9 round 2}}</span>| - }}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Awful}} {{Icon Small|silver}}
 
|-
 
 
 
! style="text-align:right;" | Poor {{#var:name}}
 
| {{#var:damage}}
 
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: 0.9*{{#var:accTouch}}  > 1 | 100% | {{%| 0.9*{{#var:accTouch}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: 0.9*{{#var:accShort}}  > 1 | 100% | {{%| 0.9*{{#var:accShort}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: 0.9*{{#var:accMedium}} > 1 | 100% | {{%| 0.9*{{#var:accMedium}} round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: 0.9*{{#var:accLong}}  > 1 | 100% | {{%| 0.9*{{#var:accLong}}  round 2}} }} | -}}
 
}}
 
| {{#var:avgDPS}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#ifexpr:{{#var:range}}>= 0|{{#ifexpr:{{#var:range}}<3|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 0.9*{{#var:accTouch}}  > 1 | 1 | {{#expr: 0.9*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>= 3|{{#ifexpr:{{#var:range}}<12|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 0.9*{{#var:accShort}}  > 1 | 1 | {{#expr: 0.9*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=12|{{#ifexpr:{{#var:range}}<25|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 0.9*{{#var:accMedium}} > 1 | 1 | {{#expr: 0.9*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=25|{{#ifexpr:{{#var:range}}<40|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 0.9*{{#var:accLong}}  > 1 | 1 | {{#expr: 0.9*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Poor}} {{Icon Small|silver}}
 
|-
 
 
 
! style="text-align:right;" | Normal {{#var:name}}
 
| {{#var:damage}}
 
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: {{#var:accTouch}}  > 1 | 100% | {{%| {{#var:accTouch}}  }} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: {{#var:accShort}}  > 1 | 100% | {{%| {{#var:accShort}}  }} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: {{#var:accMedium}} > 1 | 100% | {{%| {{#var:accMedium}} }} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: {{#var:accLong}}  > 1 | 100% | {{%| {{#var:accLong}}  }} }} | -}}
 
}}
 
| {{#var:avgDPS}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#ifexpr:{{#var:range}}>= 0|{{#ifexpr:{{#var:range}}< 3|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: {{#var:accTouch}}  > 1 | 1 | {{#var:accTouch}}  }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>= 3|{{#ifexpr:{{#var:range}}<12|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: {{#var:accShort}}  > 1 | 1 | {{#var:accShort}}  }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=12|{{#ifexpr:{{#var:range}}<25|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: {{#var:accMedium}} > 1 | 1 | {{#var:accMedium}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=25|{{#ifexpr:{{#var:range}}<40|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: {{#var:accLong}}  > 1 | 1 | {{#var:accLong}}  }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Normal}} {{Icon Small|silver}}
 
|-
 
 
 
!  style="text-align:right;" | Good {{#var:name}}
 
| {{#var:damage}}
 
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: 1.1*{{#var:accTouch}}  > 1 | 100% | {{%| 1.1*{{#var:accTouch}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: 1.1*{{#var:accShort}}  > 1 | 100% | {{%| 1.1*{{#var:accShort}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: 1.1*{{#var:accMedium}} > 1 | 100% | {{%| 1.1*{{#var:accMedium}} round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: 1.1*{{#var:accLong}}  > 1 | 100% | {{%| 1.1*{{#var:accLong}}  round 2}} }} | -}}
 
}}
 
| {{#var:avgDPS}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#ifexpr:{{#var:range}}>= 0|{{#ifexpr:{{#var:range}}<3|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.1*{{#var:accTouch}}  > 1 | 1 | {{#expr: 1.1*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>= 3|{{#ifexpr:{{#var:range}}<12|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.1*{{#var:accShort}}  > 1 | 1 | {{#expr: 1.1*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=12|{{#ifexpr:{{#var:range}}<25|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.1*{{#var:accMedium}} > 1 | 1 | {{#expr: 1.1*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=25|{{#ifexpr:{{#var:range}}<40|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.1*{{#var:accLong}}  > 1 | 1 | {{#expr: 1.1*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Good}} {{Icon Small|silver}}
 
|-
 
 
 
! style="text-align:right;" | Excellent {{#var:name}}
 
| {{#var:damage}}
 
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: 1.2*{{#var:accTouch}}  > 1 | 100% | {{%| 1.2*{{#var:accTouch}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: 1.2*{{#var:accShort}}  > 1 | 100% | {{%| 1.2*{{#var:accShort}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: 1.2*{{#var:accMedium}} > 1 | 100% | {{%| 1.2*{{#var:accMedium}} round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: 1.2*{{#var:accLong}}  > 1 | 100% | {{%| 1.2*{{#var:accLong}}  round 2}} }} | -}}
 
}}
 
| {{#var:avgDPS}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#ifexpr:{{#var:range}}>= 0|{{#ifexpr:{{#var:range}}<3|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.2*{{#var:accTouch}}  > 1 | 1 | {{#expr: 1.2*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>= 3|{{#ifexpr:{{#var:range}}<12|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.2*{{#var:accShort}}  > 1 | 1 | {{#expr: 1.2*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=12|{{#ifexpr:{{#var:range}}<25|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.2*{{#var:accMedium}} > 1 | 1 | {{#expr: 1.2*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=25|{{#ifexpr:{{#var:range}}<40|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.2*{{#var:accLong}}  > 1 | 1 | {{#expr: 1.2*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}} round 2}}</span>| - }}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Excellent}} {{Icon Small|silver}}
 
|-
 
 
 
! style="text-align:right;" | Masterwork {{#var:name}}
 
| {{#expr: 1.25*{{#var:damage}} round 2}}
 
| {{#if: {{#var:avgAP}} | {{%|1.25*{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: 1.35*{{#var:accTouch}}  > 1 | 100% | {{%| 1.35*{{#var:accTouch}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: 1.35*{{#var:accShort}}  > 1 | 100% | {{%| 1.35*{{#var:accShort}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: 1.35*{{#var:accMedium}} > 1 | 100% | {{%| 1.35*{{#var:accMedium}} round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: 1.35*{{#var:accLong}}  > 1 | 100% | {{%| 1.35*{{#var:accLong}}  round 2}} }} | -}}
 
 
}}
 
}}
| {{#expr: 1.25*{{#var:avgDPS}} round 2}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#ifexpr:{{#var:range}}>= 0|{{#ifexpr:{{#var:range}}<3|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.35*{{#var:accTouch}}  > 1 | 1 | {{#expr: 1.35*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}}*1.25 round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>= 3|{{#ifexpr:{{#var:range}}<12|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.35*{{#var:accShort}}  > 1 | 1 | {{#expr: 1.35*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}}*1.25 round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=12|{{#ifexpr:{{#var:range}}<25|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.35*{{#var:accMedium}} > 1 | 1 | {{#expr: 1.35*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}}*1.25 round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=25|{{#ifexpr:{{#var:range}}<40|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.35*{{#var:accLong}}  > 1 | 1 | {{#expr: 1.35*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}}*1.25 round 2}}</span>| - }}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Masterwork}} {{Icon Small|silver}}
 
|-
 
 
! style="text-align:right;" | Legendary {{#var:name}}
 
| {{#expr: 1.5*{{#var:damage}} round 2}}
 
| {{#if: {{#var:avgAP}} | {{%|1.5*{{#var:avgAP}} round 4}} | -}}
 
{{#if: {{#var:missRadius}} ||
 
  {{!}} {{#if: {{#var:accTouch}}  | {{#ifexpr: 1.5*{{#var:accTouch}}  > 1 | 100% | {{%| 1.5*{{#var:accTouch}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accShort}}  | {{#ifexpr: 1.5*{{#var:accShort}}  > 1 | 100% | {{%| 1.5*{{#var:accShort}}  round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accMedium}} | {{#ifexpr: 1.5*{{#var:accMedium}} > 1 | 100% | {{%| 1.5*{{#var:accMedium}} round 2}} }} | -}}
 
  {{!}} {{#if: {{#var:accLong}}  | {{#ifexpr: 1.5*{{#var:accLong}}  > 1 | 100% | {{%| 1.5*{{#var:accLong}}  round 2}} }} | -}}
 
}}
 
| {{#expr: 1.5*{{#var:avgDPS}} round 2}}
 
{{#if: {{#var:missRadius}} ||
 
  {{#if: {{#var:accTouch}} |
 
    {{!}} {{#ifexpr:{{#var:range}}>= 0|{{#ifexpr:{{#var:range}}<3|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.5*{{#var:accTouch}}  > 1 | 1 | {{#expr: 1.5*{{#var:accTouch}}  round 2}} }} * {{#var:avgDPS}}*1.5 round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>= 3|{{#ifexpr:{{#var:range}}<12|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.5*{{#var:accShort}}  > 1 | 1 | {{#expr: 1.5*{{#var:accShort}}  round 2}} }} * {{#var:avgDPS}}*1.5 round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=12|{{#ifexpr:{{#var:range}}<25|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.5*{{#var:accMedium}} > 1 | 1 | {{#expr: 1.5*{{#var:accMedium}} round 2}} }} * {{#var:avgDPS}}*1.5 round 2}}</span>| - }}
 
    {{!}} {{#ifexpr:{{#var:range}}>=25|{{#ifexpr:{{#var:range}}<40|<span style="color:firebrick; font-weight:bold>|<span>}}{{#expr: {{#ifexpr: 1.5*{{#var:accLong}}  > 1 | 1 | {{#expr: 1.5*{{#var:accLong}}  round 2}} }} * {{#var:avgDPS}}*1.5 round 2}}</span>| - }}
 
  | {{!!}} - {{!!}} - {{!!}} - {{!!}} -
 
}} }}
 
| {{Market Value Calculator|{{#var:name}}||Legendary}} {{Icon Small|silver}}
 
 
|}
 
|}
 
<sup>For the full effects of qualities, see [[Quality]]. 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>For the full effects of qualities, see [[Quality]]. 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>

Revision as of 21:48, 17 April 2023


Documentation icon Template documentation[view] [edit] [history] [purge]

Summary

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

Parameters

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

Sniper rifle


A weapon with quality, no AOE, and range greater than long

{{Weapon Stats Table/Ranged|Sniper rifle}}
  • Quality Dam. AP Accuracy
    (Touch)
    Accuracy
    (Short)
    Accuracy
    (Medium)
    Accuracy
    (Long)
    DPS
    (Optimal)
    DPS
    (Touch)
    DPS
    (Short)
    DPS
    (Medium)
    DPS
    (Long)
    Market
    value

    Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row

    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


    A weapon with quality, no AOE, and range below long

    {{Weapon Stats Table/Ranged|Chain shotgun}}
  • Quality Dam. AP Accuracy
    (Touch)
    Accuracy
    (Short)
    Accuracy
    (Medium)
    Accuracy
    (Long)
    DPS
    (Optimal)
    DPS
    (Touch)
    DPS
    (Short)
    DPS
    (Medium)
    DPS
    (Long)
    Market
    value

    Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row

    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


    A weapon with quality and AOE

    {{Weapon Stats Table/Ranged|Incendiary launcher}}
  • Quality Dam. AP DPS
    (Optimal)
    Market
    value

    Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row

    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.

  • Frag grenades


    A weapon with no quality and AOE

    {{Weapon Stats Table/Ranged|Frag grenades}}
  • Quality Dam. AP DPS
    (Optimal)
    Market
    value

    Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row Template:Weapon Quality Table/Ranged/Row

    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.

  • Charge blaster turret


    A weapon with no quality and no AOE

    {{Weapon Stats Table/Ranged|Charge blaster turret}}
  • Quality Dam. AP Accuracy
    (Touch)
    Accuracy
    (Short)
    Accuracy
    (Medium)
    Accuracy
    (Long)
    DPS
    (Optimal)
    DPS
    (Touch)
    DPS
    (Short)
    DPS
    (Medium)
    DPS
    (Long)
    Market
    value

    Template:Weapon Quality Table/Ranged/Row

    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.

  • Template:Weapon Quality Table/Ranged Template:Weapon Quality Table/Ranged Template:Weapon Quality Table/Ranged Template:Weapon Quality Table/Ranged Template:Weapon Quality Table/Ranged