Difference between revisions of "Template:Weapon Stats Table/Melee"
(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: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}}| | + | {{#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}} |
− | |||
− | {{# | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#if:{{#var:stufftags}} | | {{#if:{{#var:stufftags}} | | ||
− | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery | + | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic | + | {{#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|1}}{{#vardefine:quality|Poor}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#if:{{#var:stufftags}} | | {{#if:{{#var:stufftags}} | | ||
− | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery | + | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic | + | {{#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|2}}{{#vardefine:quality|Normal}}{{#if:{{#var:stufftags}} | | |
− | + | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}} | |
− | {{# | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] OR}} |
− | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] OR}} | |
− | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] OR}} | |
− | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic]]}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#if:{{#var:stufftags}} | | ||
− | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery | ||
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] | ||
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] | ||
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] | ||
− | {{#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}} |
}} | }} | ||
− | + | {{#if:{{#var:hasQuality}} |{{#vardefine:qualitySort|3}}{{#vardefine:quality|Good}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#if:{{#var:stufftags}} | | {{#if:{{#var:stufftags}} | | ||
− | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery | + | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic | + | {{#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|4}}{{#vardefine:quality|Excellent}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#if:{{#var:stufftags}} | | {{#if:{{#var:stufftags}} | | ||
− | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery | + | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic | + | {{#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}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#if:{{#var:stufftags}} | | {{#if:{{#var:stufftags}} | | ||
− | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery | + | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic | + | {{#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}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#if:{{#var:stufftags}} | | {{#if:{{#var:stufftags}} | | ||
− | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery | + | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || [[Stuff Category::Metallic | + | {{#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}} |
}} | }} | ||
− | |||
}} | }} | ||
|} | |} |
Revision as of 16:05, 17 April 2023
Summary
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.
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 |
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 | 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.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.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}}
Feature | Toggle |
---|---|
Attacks |
Template:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/RowTemplate:Weapon Quality Table/Melee/Row
Club | Handle (Poke) | Head (Blunt) | HP | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Material | DPS[1] | AP[1] | Dam. | Cool. | AP | DPS | Chance[2] | Dam. | Cool. | AP | DPS | Chance[2] |
For the full effects of qualities, see Quality.
- ↑ 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.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 |
Template:Weapon Quality Table/Melee/Row
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.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.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
The above documentation is transcluded from Template:Weapon Stats Table/Melee/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. |