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

From RimWorld Wiki
Jump to navigation Jump to search
(Simplification -> shifting all row operations to row subtemplate)
Line 2: Line 2:
 
--><!-- VARIABLES --><!--
 
--><!-- VARIABLES --><!--
 
-->{{#vardefine:name      | {{{1|{{PAGENAME}} }}} }}<!-- Name of the weapon
 
-->{{#vardefine:name      | {{{1|{{PAGENAME}} }}} }}<!-- Name of the weapon
-->{{#vardefine:defaultM  | {{{2|Steel}}} }}<!-- Default material. Default = 100, since it's weapon modifiers are all 1.
 
 
-->{{#vardefine:stufftags  | {{lc: {{Q|{{#var:name}}|Stuff Tags}} }} }}<!-- The weapons stuff tags. Empty if weapon isn't stuffable
 
-->{{#vardefine:stufftags  | {{lc: {{Q|{{#var:name}}|Stuff Tags}} }} }}<!-- The weapons stuff tags. Empty if weapon isn't stuffable
 
-->{{#vardefine:HP        | {{formatnum: {{Q|{{#var:name}}|Max Hit Points Base|100}} | R}} }}<!-- The weapons hit points. Default = 100
 
-->{{#vardefine:HP        | {{formatnum: {{Q|{{#var:name}}|Max Hit Points Base|100}} | R}} }}<!-- The weapons hit points. Default = 100
Line 14: Line 13:
 
|-
 
|-
 
{{Control Panel|Attacks}}
 
{{Control Panel|Attacks}}
{{#if:{{#var:hasQuality}}|{{#if:{{#var:stufftags}}|{{Control Panel|Quality}}|{{Control Panel|Quality|invert=yes}} }} }}
+
{{#if:{{#var:hasQuality}}|{{#if:{{#var:stufftags}}|{{Control Panel|Quality}}|}} }}
 
<!--{{#if:{{#var:stufftags}} |
 
<!--{{#if:{{#var:stufftags}} |
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
Line 70: Line 69:
 
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Chance<ref name="Chance"/> </th>
 
<th {{#var:collapseA}} data-sort-type="number" style="background-color:#d09c59; border:#a67d47 2px; border-style: none none solid none;"> Chance<ref name="Chance"/> </th>
 
}}<!--
 
}}<!--
-->{{#if:{{#var:hasQuality}} |
+
-->{{#if:{{#var:hasQuality}} |{{#if: {{#var:stufftags}} | {{#vardefine:collapseQ|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseQuality"}} | {{#vardefine:collapseQ|class="mw-collapsible" id="mw-customcollapsible-collapseQuality"}} }}{{#vardefine:qualitySort|0}}{{#vardefine:quality|Awful}}
<tr {{#if: {{#var:stufftags}} | {{#vardefineecho:collapseQ|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseQuality"}} | {{#vardefineecho:collapseQ|class="mw-collapsible" id="mw-customcollapsible-collapseQuality"}} }}>
 
{{#if:{{#var:hasQuality}}|<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|0}}"> {{#vardefineecho:quality|Awful}} </th>}}<!--
 
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
 
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack1SelectionChance}} round 2}} </td><!--
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack2SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack3SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}} }}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
+
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]] [[Name::!{{#var:defaultM}}]]}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
 
     | format = template
 
     | format = template
 
     | template = Weapon Quality Table/Melee/Row
 
     | template = Weapon Quality Table/Melee/Row
 
     | link = none
 
     | link = none
   }}
+
   }}|{{Weapon Quality Table/Melee/Row}}
 
}}
 
}}
</tr>
+
{{#vardefine:qualitySort|1}}{{#vardefine:quality|Poor}}
<tr {{#var:collapseQ}}>
 
{{#if:{{#var:hasQuality}}|<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|1}}"> {{#vardefineecho:quality|Poor}} </th>}}<!--
 
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
 
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack1SelectionChance}} round 2}} </td><!--
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack2SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack3SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
+
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]] [[Name::!{{#var:defaultM}}]]}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
 
     | format = template
 
     | format = template
 
     | template = Weapon Quality Table/Melee/Row
 
     | template = Weapon Quality Table/Melee/Row
 
     | link = none
 
     | link = none
   }}
+
   }}|{{Weapon Quality Table/Melee/Row}}
 +
}}
 
}}
 
}}
</tr>}}
+
{{#vardefine:qualitySort|2}}{{#vardefine:quality|Normal}}{{#if:{{#var:stufftags}} |
<tr>
+
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
{{#if:{{#var:hasQuality}}|<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|2}}"> {{#vardefineecho:quality|Normal}} </th>}}<!--
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
<td> {{#var:trueAP}}% </td>
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack1SelectionChance}} round 2}} </td><!--
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack2SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack3SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
{{#if:{{#var:stufftags}} |
 
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
 
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  [[Name::!{{#var:defaultM}}]] OR}}
 
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    [[Name::!{{#var:defaultM}}]] OR}}
 
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    [[Name::!{{#var:defaultM}}]] OR}}
 
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]] [[Name::!{{#var:defaultM}}]]}}
 
 
     | format = template
 
     | format = template
 
     | template = Weapon Quality Table/Melee/Row
 
     | template = Weapon Quality Table/Melee/Row
 
     | link = none
 
     | link = none
   }}
+
   }}|{{Weapon Quality Table/Melee/Row}}
 
}}
 
}}
</tr><!--
+
{{#if:{{#var:hasQuality}} |{{#vardefine:qualitySort|3}}{{#vardefine:quality|Good}}
-->{{#if:{{#var:hasQuality}} |
 
<tr {{#var:collapseQ}}>
 
{{#if:{{#var:hasQuality}}|<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|3}}"> {{#vardefineecho:quality|Good}} </th>}}<!--
 
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
 
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack1SelectionChance}} round 2}} </td><!--
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack2SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack3SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
+
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]] [[Name::!{{#var:defaultM}}]]}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
 
     | format = template
 
     | format = template
 
     | template = Weapon Quality Table/Melee/Row
 
     | template = Weapon Quality Table/Melee/Row
 
     | link = none
 
     | link = none
   }}
+
   }}|{{Weapon Quality Table/Melee/Row}}
 
}}
 
}}
</tr>
+
{{#vardefine:qualitySort|4}}{{#vardefine:quality|Excellent}}
<tr {{#var:collapseQ}}>
 
{{#if:{{#var:hasQuality}}|<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|4}}"> {{#vardefineecho:quality|Excellent}} </th>}}<!--
 
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
 
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack1SelectionChance}} round 2}} </td><!--
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack2SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack3SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
+
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]] [[Name::!{{#var:defaultM}}]]}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
 
     | format = template
 
     | format = template
 
     | template = Weapon Quality Table/Melee/Row
 
     | template = Weapon Quality Table/Melee/Row
 
     | link = none
 
     | link = none
   }}
+
   }}|{{Weapon Quality Table/Melee/Row}}
}}
+
}}{{#vardefine:qualitySort|5}}{{#vardefine:quality|Masterwork}}
</tr>
 
<tr {{#var:collapseQ}}>
 
{{#if:{{#var:hasQuality}}|<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|5}}"> {{#vardefineecho:quality|Masterwork}} </th>}}<!--
 
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
 
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack1SelectionChance}} round 2}} </td><!--
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack2SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack3SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
+
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]] [[Name::!{{#var:defaultM}}]]}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
 
     | format = template
 
     | format = template
 
     | template = Weapon Quality Table/Melee/Row
 
     | template = Weapon Quality Table/Melee/Row
 
     | link = none
 
     | link = none
   }}
+
   }}|{{Weapon Quality Table/Melee/Row}}
}}
+
}}{{#vardefine:qualitySort|6}}{{#vardefine:quality|Legendary}}
</tr>
 
<tr {{#var:collapseQ}}>
 
{{#if:{{#var:hasQuality}}|<th style="text-align:left;" data-sort-value="{{#vardefineecho:qualitySort|6}}"> {{#vardefineecho:quality|Legendary}} </th>}}<!--
 
-->{{#if: {{#var:stufftags}} | <th style="text-align:left;" data-sort-value="{{#var:defaultM}}"> {{Icon Small|{{#var:defaultM}}}} [[{{#var:defaultM}}]] </th> }}
 
<td> {{True Melee DPS Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} </td>
 
<td> {{#var:trueAP}}% </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none none none solid;"> {{#var:attack1Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack1Damage}}/{{#var:attack1Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack1SelectionChance}} round 2}} </td><!--
 
-->{{#if: {{Q|{{#var:name}}|Attack 2 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack2Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack2Damage}}/{{#var:attack2Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack2SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack3Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack3Damage}}/{{#var:attack3Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack3SelectionChance}} round 2}} </td>
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}} |
 
<td {{#var:collapseA}}> {{#var:attack4Damage}} </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Cooldown}} round 2}}s </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4AP}} }}% </td>
 
<td {{#var:collapseA}}> {{#expr: {{#var:attack4Damage}}/{{#var:attack4Cooldown}} round 2}} </td>
 
<td {{#var:collapseA}} style="border:#d09c59 2px; border-style: none solid none none;"> {{%|{{#var:attack4SelectionChance}} round 2}} </td>}}
 
<td> {{#expr:{{Q|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|Max Hit Points Factor|1}}*{{#var:HP}} }} </td>
 
<td> {{Market Value Calculator|{{#var:name}}|{{#if:{{#var:stufftags}}|{{#var:defaultM}}}}|{{#var:quality}} }} {{Icon Small|silver}} </td>
 
 
{{#if:{{#var:stufftags}} |
 
{{#if:{{#var:stufftags}} |
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] [[Name::!{{#var:defaultM}}]] OR}}
+
   {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}}  || [[Stuff Category::Fabric]]  OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}}    || [[Stuff Category::Woody]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    [[Name::!{{#var:defaultM}}]] OR}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}}    || [[Stuff Category::Stony]]    OR}}
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]] [[Name::!{{#var:defaultM}}]]}}
+
           {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}}
 
     | format = template
 
     | format = template
 
     | template = Weapon Quality Table/Melee/Row
 
     | template = Weapon Quality Table/Melee/Row
 
     | link = none
 
     | link = none
   }}
+
   }}|{{Weapon Quality Table/Melee/Row}}
 
}}
 
}}
</tr>
 
 
}}
 
}}
 
|}
 
|}

Revision as of 16:05, 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:

Usage

If you want to use this template specifically you can specify the weapon as the first parameter:

{{Weapon Stats Table/Melee|Longsword}}

Otherwise it will use the name of the page it's placed on:

{{Weapon Stats Table/Melee}}

Examples

Longsword


A weapon with quality and with materials:

{{Weapon Stats Table/Melee|Longsword}}

Deactivated since the page would be to big.

Persona monosword


A weapon with quality but without materials:

{{Weapon Stats Table/Melee|Persona monosword}}
  • Feature Toggle
    Attacks Ritual Quality Check Off.pngRitual Quality Check On.png
    Template:Weapon Quality Table/Melee/Row

    Template:Weapon Quality Table/Melee/Row Template:Weapon Quality Table/Melee/Row Template:Weapon Quality Table/Melee/Row

    Template:Weapon Quality Table/Melee/Row Template:Weapon Quality Table/Melee/Row Template:Weapon Quality Table/Melee/Row

    Persona monosword Persona monosword Handle (Blunt)Point (Stab)Edge (Cut) HP Value
    Quality
    DPS[1] AP[1] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2]

    For the full effects of qualities, see Quality.

    1. 1.0 1.1 Note: This is the actual base average derived from the melee verb system updated in 1.1.2610, it may sometimes disagree with the listed value in the in-game infobox.
      It may also change depending on the stats and the melee verbs available to the wielder
    2. 2.0 2.1 2.2 Chance for attack to be selected, assuming only the weapon's attack verbs are considered. It may change depending on the melee verbs available to the wielder

    Club


    A weapon without quality but with materials:

    {{Weapon Stats Table/Melee|Club}}
    1. 1.0 1.1 Note: This is the actual base average derived from the melee verb system updated in 1.1.2610, it may sometimes disagree with the listed value in the in-game infobox.
      It may also change depending on the stats and the melee verbs available to the wielder
    2. 2.0 2.1 Chance for attack to be selected, assuming only the weapon's attack verbs are considered. It may change depending on the melee verbs available to the wielder

    Thrumbo horn


    A weapon without quality and without materials:

    {{Weapon Stats Table/Melee|Thrumbo horn}}
  • Feature Toggle
    Attacks Ritual Quality Check Off.pngRitual Quality Check On.png

    Template:Weapon Quality Table/Melee/Row

    Thrumbo horn Thrumbo horn Point (Stab)Point (Scratch)Base (Blunt) HP Value
    DPS[1] AP[1] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2]

    For the full effects of qualities, see Quality.

    1. 1.0 1.1 Note: This is the actual base average derived from the melee verb system updated in 1.1.2610, it may sometimes disagree with the listed value in the in-game infobox.
      It may also change depending on the stats and the melee verbs available to the wielder
    2. 2.0 2.1 2.2 Chance for attack to be selected, assuming only the weapon's attack verbs are considered. It may change depending on the melee verbs available to the wielder