Difference between revisions of "Template:Melee Weapons Table Row"
Jump to navigation
Jump to search
(Fixed cooldown calculation) |
(Expand to separate each quality if applicable) |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{#vardefine: no_quality | }} |
! {{Icon Small|{{{?Name}}}}} | ! {{Icon Small|{{{?Name}}}}} | ||
− | ! style="text-align: left" | [[{{{?Name}}}]]{{#switch: {{Q|{{{?Name}}}|From DLC}} | Royalty (DLC) = {{RoyaltyIcon}} | Ideology (DLC) = {{IdeologyIcon}} }}{{#ifeq: {{Q|{{{?Name}}}|Type}} | Medical Items | {{ref label|Body|B|B}} }}{{#ifeq: {{Q|{{{?Name}}}|Class}} | Ultra Weapons | {{ref label|Ultra|E|E}} }}{{#switch: {{{?Name}}} | + | ! style="text-align: left" | [[{{{?Name}}}]]{{#switch: {{Q|{{{?Name}}}|From DLC}} | Royalty (DLC) = {{RoyaltyIcon}} | Ideology (DLC) = {{IdeologyIcon}} }}{{#ifeq: {{Q|{{{?Name}}}|Type}} | Medical Items | {{ref label|Body|B|B}}{{#vardefine: no_quality | 1}} }}{{#ifeq: {{Q|{{{?Name}}}|Class}} | Ultra Weapons | {{ref label|Ultra|E|E}} }}{{#switch: {{{?Name}}} |
− | | Beer | Thrumbo horn | Elephant tusk | Wood = {{ref label|Body|B|B}} | + | | Beer | Thrumbo horn | Elephant tusk | Wood = {{ref label|Body|B|B}}{{#vardefine: no_quality | 1}} |
− | | Club = {{ref label|Quality|C|C}} | + | | Club = {{ref label|Quality|C|C}}{{#vardefine: no_quality | 1}} |
| Jade knife = {{ref label|Jade|D|D}} | | Jade knife = {{ref label|Jade|D|D}} | ||
| Plasmasword | Persona Plasmasword = {{ref label|Plasma|F|F}} | | Plasmasword | Persona Plasmasword = {{ref label|Plasma|F|F}} | ||
}} | }} | ||
− | | {{True Melee DPS Calculator|{{{?Name}}}}} | + | | {{#if: {{#var: no_quality}} | - | {{True Melee DPS Calculator|{{{?Name}}}||Awful}}}} |
+ | | {{#if: {{#var: no_quality}} | - | {{True Melee DPS Calculator|{{{?Name}}}||Poor}}}} | ||
+ | | {{True Melee DPS Calculator|{{{?Name}}}||Normal}} | ||
+ | | {{#if: {{#var: no_quality}} | - | {{True Melee DPS Calculator|{{{?Name}}}||Good}}}} | ||
+ | | {{#if: {{#var: no_quality}} | - | {{True Melee DPS Calculator|{{{?Name}}}||Excellent}}}} | ||
+ | | {{#if: {{#var: no_quality}} | - | {{True Melee DPS Calculator|{{{?Name}}}||Masterwork}}}} | ||
+ | | {{#if: {{#var: no_quality}} | - | {{True Melee DPS Calculator|{{{?Name}}}||Legendary}}}} | ||
| {{#expr: ({{Q|{{{?Name}}}|Attack 1 Cooldown}}*{{#var: attack1InitialSelectionWeight}} + {{#if: {{Q|{{{?Name}}}|Attack 2 Cooldown}} | {{Q|{{{?Name}}}|Attack 2 Cooldown}}*{{#var: attack2InitialSelectionWeight}} | 0 }} + {{#if: {{Q|{{{?Name}}}|Attack 3 Cooldown}} | {{Q|{{{?Name}}}|Attack 3 Cooldown}}*{{#var: attack3InitialSelectionWeight}} | 0 }} + {{#if: {{Q|{{{?Name}}}|Attack 4 Cooldown}} | {{Q|{{{?Name}}}|Attack 4 Cooldown}}*{{#var: attack4InitialSelectionWeight}} | 0 }}) / ({{#var: attack1InitialSelectionWeight}} + {{#if: {{#var: attack2InitialSelectionWeight}} | {{#var: attack2InitialSelectionWeight}} | 0 }} + {{#if: {{#var: attack3InitialSelectionWeight}} | {{#var: attack3InitialSelectionWeight}} | 0 }} + {{#if: {{#var: attack4InitialSelectionWeight}} | {{#var: attack4InitialSelectionWeight}} | 0 }})round2}} s | | {{#expr: ({{Q|{{{?Name}}}|Attack 1 Cooldown}}*{{#var: attack1InitialSelectionWeight}} + {{#if: {{Q|{{{?Name}}}|Attack 2 Cooldown}} | {{Q|{{{?Name}}}|Attack 2 Cooldown}}*{{#var: attack2InitialSelectionWeight}} | 0 }} + {{#if: {{Q|{{{?Name}}}|Attack 3 Cooldown}} | {{Q|{{{?Name}}}|Attack 3 Cooldown}}*{{#var: attack3InitialSelectionWeight}} | 0 }} + {{#if: {{Q|{{{?Name}}}|Attack 4 Cooldown}} | {{Q|{{{?Name}}}|Attack 4 Cooldown}}*{{#var: attack4InitialSelectionWeight}} | 0 }}) / ({{#var: attack1InitialSelectionWeight}} + {{#if: {{#var: attack2InitialSelectionWeight}} | {{#var: attack2InitialSelectionWeight}} | 0 }} + {{#if: {{#var: attack3InitialSelectionWeight}} | {{#var: attack3InitialSelectionWeight}} | 0 }} + {{#if: {{#var: attack4InitialSelectionWeight}} | {{#var: attack4InitialSelectionWeight}} | 0 }})round2}} s | ||
| {{#if: {{#switch: Cut | {{Q|{{{?Name}}}|Attack 1 Type}} | {{Q|{{{?Name}}}|Attack 2 Type}} | {{Q|{{{?Name}}}|Attack 3 Type}} | {{Q|{{{?Name}}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Stab | {{Q|{{{?Name}}}|Attack 1 Type}} | {{Q|{{{?Name}}}|Attack 2 Type}} | {{Q|{{{?Name}}}|Attack 3 Type}} | {{Q|{{{?Name}}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Scratch | {{Q|Club|Attack 1 Type}} | {{Q|{{{?Name}}}|Attack 2 Type}} | {{Q|{{{?Name}}}|Attack 3 Type}} | {{Q|{{{?Name}}}|Attack 4 Type}} = Sharp}} | Sharp | Blunt}} }} | | {{#if: {{#switch: Cut | {{Q|{{{?Name}}}|Attack 1 Type}} | {{Q|{{{?Name}}}|Attack 2 Type}} | {{Q|{{{?Name}}}|Attack 3 Type}} | {{Q|{{{?Name}}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Stab | {{Q|{{{?Name}}}|Attack 1 Type}} | {{Q|{{{?Name}}}|Attack 2 Type}} | {{Q|{{{?Name}}}|Attack 3 Type}} | {{Q|{{{?Name}}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Scratch | {{Q|Club|Attack 1 Type}} | {{Q|{{{?Name}}}|Attack 2 Type}} | {{Q|{{{?Name}}}|Attack 3 Type}} | {{Q|{{{?Name}}}|Attack 4 Type}} = Sharp}} | Sharp | Blunt}} }} |
Revision as of 23:58, 23 July 2022
Overview
This template is used by Template:Melee Weapons Table to generate rows for an automated comparison table of all melee weapons. It was made for the weapons page.
Example
{{Melee Weapons Table}}
Preview
Name | Material | Awful | Poor | Normal | Good | Excellent | Masterwork | Legendary | Average cooldown |
Damage type [A] |
Value in | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DPS | AP | DPS | AP | DPS | AP | DPS | AP | DPS | AP | DPS | AP | DPS | AP | ||||||
Unarmed human | – | – | – | – | – | 4.1 | 12% | – | – | – | – | – | – | – | – | 2 s | Blunt | – | |
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. | |||||||
[[{{{?Name}}}]] (Error: Page does not exist) | [[{{{?Name}}}]] | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Division by zero. | Expression error: Unexpected * operator. s | Blunt | 0% | Expression error: Unexpected < operator. |
- A All sharp melee weapons come also with (weak) blunt attacks.
- B A jade knife can only be obtained via the Lost tribe scenario; they cannot be crafted nor purchased.
- C These weapons cannot be created by the player, they are able to be obtained through quests and purchasing them from Merchants. All but the eltex staff come in "persona" variants that cannot be wielded by anyone other than the bonded pawn unless it has the "freewielder" trait, so make sure you choose a good pawn to use them.
- D These weapons also have a 75% chance to set a pawn on fire. This damage is included in the DPS.
The above documentation is transcluded from Template:Melee Weapons Table Row/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. |