Editing Template:Melee Weapons Table Row
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
VARIABLES | VARIABLES | ||
+ | -->{{#vardefine:no_quality |}}<!-- Is set to "1" below, if weapon has no quality | ||
+ | -->{{#vardefine:material | {{{material|}}} }}<!-- | ||
-->{{#if: {{#var:ignoreMaterial}} | {{#vardefine:weaponMWT|{{{weaponMWT|}}} }} }}<!-- define the name of the weapon if {{Melee Weapons Table/Material}} wasn't used | -->{{#if: {{#var:ignoreMaterial}} | {{#vardefine:weaponMWT|{{{weaponMWT|}}} }} }}<!-- define the name of the weapon if {{Melee Weapons Table/Material}} wasn't used | ||
− | + | -->{{#vardefine:bodyPart | {{Q|{{#var:weaponMWT}}|Body Part}} }}<!-- the body part that gets replaced if the weapon is an artificial body part | |
− | |||
− | |||
− | -->{{#vardefine:bodyPart | ||
-->{{#vardefine:normalDPS | {{True Melee DPS Calculator <!-- Decide whether a body part is replaced --> | -->{{#vardefine:normalDPS | {{True Melee DPS Calculator <!-- Decide whether a body part is replaced --> | ||
− | | {{#if: | + | | {{#if: {{#var:bodyPart}}||{{#var:weaponMWT}} }} <!-- Weapon --> |
| {{#var:material}} <!-- Material --> | | {{#var:material}} <!-- Material --> | ||
| Normal <!-- Quality --> | | Normal <!-- Quality --> | ||
| Human <!-- Pawn --> | | Human <!-- Pawn --> | ||
− | | {{#switch: {{#var:bodyPart}} | Hand | + | ||{{#switch: {{#var:bodyPart}} | Hand | Shoulder = {{#var:weaponMWT}} }} | <!-- Body parts that replace the fist attack --> |
− | | | + | | {{#ifeq: {{#var:bodyPart}} | Teeth | {{#var:weaponMWT}} }} <!-- Body parts that replace the teeth attack --> |
− | + | ||{{#switch: {{#var:bodyPart}} | Arm | Leg = {{#var:weaponMWT}} }} | <!-- Body parts that add an extra attack --> | |
− | | | ||
− | |||
}} }}<!-- | }} }}<!-- | ||
-->{{#vardefine:normalAP | {{#var:trueAP}} }}<!-- used as default sort value | -->{{#vardefine:normalAP | {{#var:trueAP}} }}<!-- used as default sort value | ||
Line 23: | Line 20: | ||
<tr {{#if: {{#var:material}} | {{#ifeq: {{lc:{{#var:material}} }} | steel ||class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeWeaponsTable"}} }}> | <tr {{#if: {{#var:material}} | {{#ifeq: {{lc:{{#var:material}} }} | steel ||class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeWeaponsTable"}} }}> | ||
! {{Icon Small|{{#var:weaponMWT}} }} | ! {{Icon Small|{{#var:weaponMWT}} }} | ||
− | ! style="text-align: left" | {{DLC Icons|{{#var:weaponMWT}} }}{{#ifeq: {{Q|{{#var:weaponMWT}}|Class}} | Ultra Weapons | {{Ref label|Ultra| | + | ! style="text-align: left" | {{DLC Icons|{{#var:weaponMWT}} }}{{#ifeq: {{Q|{{#var:weaponMWT}}|Type}} | Medical Items | {{Ref label|Body|B|B}}{{#vardefine:no_quality|1}} }}{{#ifeq: {{Q|{{#var:weaponMWT}}|Class}} | Ultra Weapons | {{Ref label|Ultra|E|E}} }}{{#switch: {{#var:weaponMWT}} |
− | | Jade knife = {{Ref label|Jade| | + | | Beer | Thrumbo horn | Elephant tusk | Wood = {{Ref label|Body|B|B}}{{#vardefine:no_quality|1}} |
− | | Plasmasword | Persona | + | | Club = {{Ref label|Quality|C|C}}{{#vardefine:no_quality|1}} |
+ | | Jade knife = {{Ref label|Jade|D|D}} | ||
+ | | Plasmasword | Persona Plasmasword = {{Ref label|Plasma|F|F}} | ||
}} | }} | ||
! {{#if: {{Q|{{#var:weaponMWT}}|Stuff Tags}} | {{Icon Small|{{#var:material|steel}} }} [[{{#var:material|Steel}}]] | – }} | ! {{#if: {{Q|{{#var:weaponMWT}}|Stuff Tags}} | {{Icon Small|{{#var:material|steel}} }} [[{{#var:material|Steel}}]] | – }} | ||
− | {{# | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Awful|Human}} }} |
− | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}} | |
− | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Poor|Human}} }} | |
− | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}} | |
− | + | | {{#var:normalDPS}} | |
− | + | | {{#var:normalAP}}% | |
− | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Good|Human}} }} | |
− | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}} | |
− | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Excellent|Human}} }} | |
− | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}} | |
− | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Masterwork|Human}} }} | |
− | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}} | |
− | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Legendary|Human}} }} | |
− | + | | {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
| {{#expr: {{#var:weightedTimeTotal}} round 2}} s | | {{#expr: {{#var:weightedTimeTotal}} round 2}} s | ||
| {{#if: {{#switch: Cut | {{Q|{{#var:weaponMWT}}|Attack 1 Type}} | {{Q|{{#var:weaponMWT}}|Attack 2 Type}} | {{Q|{{#var:weaponMWT}}|Attack 3 Type}} | {{Q|{{#var:weaponMWT}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Stab | {{Q|{{#var:weaponMWT}}|Attack 1 Type}} | {{Q|{{#var:weaponMWT}}|Attack 2 Type}} | {{Q|{{#var:weaponMWT}}|Attack 3 Type}} | {{Q|{{#var:weaponMWT}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Scratch | {{Q|Club|Attack 1 Type}} | {{Q|{{#var:weaponMWT}}|Attack 2 Type}} | {{Q|{{#var:weaponMWT}}|Attack 3 Type}} | {{Q|{{#var:weaponMWT}}|Attack 4 Type}} = Sharp}} | Sharp | Blunt}} }} | | {{#if: {{#switch: Cut | {{Q|{{#var:weaponMWT}}|Attack 1 Type}} | {{Q|{{#var:weaponMWT}}|Attack 2 Type}} | {{Q|{{#var:weaponMWT}}|Attack 3 Type}} | {{Q|{{#var:weaponMWT}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Stab | {{Q|{{#var:weaponMWT}}|Attack 1 Type}} | {{Q|{{#var:weaponMWT}}|Attack 2 Type}} | {{Q|{{#var:weaponMWT}}|Attack 3 Type}} | {{Q|{{#var:weaponMWT}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Scratch | {{Q|Club|Attack 1 Type}} | {{Q|{{#var:weaponMWT}}|Attack 2 Type}} | {{Q|{{#var:weaponMWT}}|Attack 3 Type}} | {{Q|{{#var:weaponMWT}}|Attack 4 Type}} = Sharp}} | Sharp | Blunt}} }} | ||
Line 65: | Line 48: | ||
}} | }} | ||
| {{#if: {{Q|{{#var:weaponMWT}}|Market Value Base}} | {{Q|{{#var:weaponMWT}}|Market Value Base}} | {{Market Value Calculator|{{#var:weaponMWT}}| {{#if: {{Q|{{#var:weaponMWT}}|Stuff Tags}} | {{#var:material|steel}} }} }} }} | | {{#if: {{Q|{{#var:weaponMWT}}|Market Value Base}} | {{Q|{{#var:weaponMWT}}|Market Value Base}} | {{Market Value Calculator|{{#var:weaponMWT}}| {{#if: {{Q|{{#var:weaponMWT}}|Stuff Tags}} | {{#var:material|steel}} }} }} }} | ||
− | </tr></includeonly><noinclude> | + | </tr></includeonly><noinclude>{{Documentation}}</noinclude> |
− | {{Documentation}}</noinclude> |