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

From RimWorld Wiki
Jump to navigation Jump to search
(Gah I'verun out of time. Gonna save this, revert it, and come back and fix the whitespace later.)
(Gah I'verun out of time. Gonna save this, revert it, and come back and fix the whitespace later.)
Tag: Undo
Line 15: Line 15:
 
-->{{#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}}
<tr><th {{#if: {{#var:hasQuality}} |colspan="3" style="border-style: none;" | rowspan="2" style="border-style: none;" }}> {{Icon Small|{{#var:name}}|32}} {{#if: {{#var:hasQuality}} || <br/>}}{{#var:name}} </th><!--
+
! {{#if: {{#var:hasQuality}} || rowspan="2" style="border-style: none;" }} | {{Icon Small|{{#var:name}}|32}} {{#if: {{#var:hasQuality}} || <br/>}}{{#var:name}}
-->{{#if: {{#var:hasQuality}}  
+
! {{#var:headerStyle}} <abbr title="Damage per shot">Dam.</abbr>
|| <th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none none;"> <abbr title="Damage per shot">Dam.</abbr> </th><!--
+
! {{#var:headerStyle}} {{AP}}
-->  <th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none none;"> {{AP}}}} </th><!--
+
{{#if: {{#vardefineecho:missRadius| {{Q|{{#var:name}}|Miss Radius}} }} ||
-->{{#if: {{#vardefineecho:missRadius| {{Q|{{#var:name}}|Miss Radius}} }}  
+
  ! {{#var:headerStyle}} <abbr title="Base weapon accuracy at Touch Range (3 tiles)">Accuracy<br/><small>(Touch)</small></abbr>
|| <th {{#var:headerStyle}}> <abbr title="Base weapon accuracy at Touch Range (3 tiles)">Accuracy<br/><small>(Touch)</small></abbr> </th><!--
+
   ! {{#var:headerStyle}} <abbr title="Base weapon accuracy at Short Range (12 tiles)">Accuracy<br/><small>(Short)</small></abbr>
-->   <th {{#var:headerStyle}}> <abbr title="Base weapon accuracy at Short Range (12 tiles)">Accuracy<br/><small>(Short)</small></abbr> </th><!--
+
   ! {{#var:headerStyle}} <abbr title="Base weapon accuracy at Medium Range (25 tiles)">Accuracy<br/><small>(Medium)</small></abbr>
-->   <th {{#var:headerStyle}}> <abbr title="Base weapon accuracy at Medium Range (25 tiles)">Accuracy<br/><small>(Medium)</small></abbr> </th><!--
+
   ! {{#var:headerStyle}} <abbr title="Base weapon accuracy at Long Range (40 tiles)">Accuracy<br/><small>(Long)</small></abbr>
-->   <th {{#var:headerStyle}}> <abbr title="Base weapon accuracy at Long Range (40 tiles)">Accuracy<br/><small>(Long)</small></abbr> </th>}}<!--
+
}}
--><th {{#var:headerStyle}}> <abbr title="Damage Per Second assuming all shots hit">DPS<br/><small>(Optimal)</small></abbr> </th><!--
+
! {{#var:headerStyle}} <abbr title="Damage Per Second assuming all shots hit">DPS<br/><small>(Optimal)</small></abbr>
-->{{#if: {{#var:missRadius}}  
+
{{#if: {{#var:missRadius}} ||
|| <th {{#var:headerStyle}}> <abbr title="DPS x Accuracy at Touch Range (3 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Touch)</small></abbr> </th><!--
+
  ! {{#var:headerStyle}} <abbr title="DPS x Accuracy at Touch Range (3 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Touch)</small></abbr>
-->   <th {{#var:headerStyle}}> <abbr title="DPS x Accuracy at Short Range (12 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Short)</small></abbr> </th><!--
+
   ! {{#var:headerStyle}} <abbr title="DPS x Accuracy at Short Range (12 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Short)</small></abbr>
-->   <th {{#var:headerStyle}}> <abbr title="DPS x Accuracy at Medium Range (25 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Medium)</small></abbr> </th><!--
+
   ! {{#var:headerStyle}} <abbr title="DPS x Accuracy at Medium Range (25 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Medium)</small></abbr>  
-->   <th {{#var:headerStyle}}> <abbr title="DPS x Accuracy at Long Range (40 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Long)</small></abbr> </th>}}<!--
+
   ! {{#var:headerStyle}} <abbr title="DPS x Accuracy at Long Range (40 tiles) assuming perfect shooter accuracy">DPS<br/><small>(Long)</small></abbr>
--><th {{#var:headerStyle}}> Market<br/>value </th></tr>
+
}}
 +
! {{#var:headerStyle}} Market<br/>value
 
{{#if: {{#var:hasQuality}}
 
{{#if: {{#var:hasQuality}}
| <tr> <th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none solid;">Quality</th>
+
| <tr> <th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none solid;">Quality</th> </tr>
<th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none none;"> <abbr title="Damage per shot">Dam.</abbr></th>
 
<th style="background-color:#d09c59; border:#a67d47 1px; border-style: solid none none none;"> {{AP}}</th>  
 
 
   {{Weapon Quality Table/Ranged/Row|Awful|1}}
 
   {{Weapon Quality Table/Ranged/Row|Awful|1}}
 
   {{Weapon Quality Table/Ranged/Row|Poor|2}}
 
   {{Weapon Quality Table/Ranged/Row|Poor|2}}
Line 42: Line 41:
 
   {{Weapon Quality Table/Ranged/Row|Masterwork|6}}
 
   {{Weapon Quality Table/Ranged/Row|Masterwork|6}}
 
   {{Weapon Quality Table/Ranged/Row|Legendary|7}}
 
   {{Weapon Quality Table/Ranged/Row|Legendary|7}}
  |   {{Weapon Quality Table/Ranged/Row}}
+
  | {{Weapon Quality Table/Ranged/Row}}
 
}}
 
}}
 
|}
 
|}

Revision as of 11:53, 19 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}}
  •   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
    
    Sniper rifle Sniper rifle Dam. AP Accuracy
    (Touch)
    Accuracy
    (Short)
    Accuracy
    (Medium)
    Accuracy
    (Long)
    DPS
    (Optimal)
    DPS
    (Touch)
    DPS
    (Short)
    DPS
    (Medium)
    DPS
    (Long)
    Market
    value
    Quality

    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}}
  •   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
    
    Chain shotgun Chain shotgun Dam. AP Accuracy
    (Touch)
    Accuracy
    (Short)
    Accuracy
    (Medium)
    Accuracy
    (Long)
    DPS
    (Optimal)
    DPS
    (Touch)
    DPS
    (Short)
    DPS
    (Medium)
    DPS
    (Long)
    Market
    value
    Quality

    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}}

    Frag grenades


    A weapon with no quality and AOE

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

    Template:Weapon Quality Table/Ranged/Row

  • Charge blaster turret


    A weapon with no quality and no AOE

    {{Weapon Stats Table/Ranged|Charge blaster turret}}
  • Charge blaster turret
    Charge blaster turret
    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

    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.