Difference between revisions of "Template:WeaponTable/row"
Jump to navigation
Jump to search
(fix mismatched elemental damage types) |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
-->{{#vardefine:Datastring|{{:Weapon_data|{{{1}}}}}}}<!-- | -->{{#vardefine:Datastring|{{:Weapon_data|{{{1}}}}}}}<!-- | ||
--- Separate values from datastring into individual variables. --- | --- Separate values from datastring into individual variables. --- | ||
-->{{#vardefine:Tier|{{#explode: {{#var:Datastring}}|;|0}}}}<!-- | |||
-->{{#vardefine:Unobtainable|{{#explode: {{#var:Datastring}}|;|-2}}}}<!-- | -->{{#vardefine:Unobtainable|{{#explode: {{#var:Datastring}}|;|-2}}}}<!-- | ||
-->{{#vardefine:Rarity|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Rarity|{{#explode: {{#var:Datastring}}|;|3}}}}<!-- | ||
-->{{#vardefine:Total Damage|{{#explode: {{#var:Datastring}}|;|-3}}}}<!-- | -->{{#vardefine:Total Damage|{{#explode: {{#var:Datastring}}|;|-3}}}}<!-- | ||
-->{{#vardefine:Range|{{#explode: {{#var:Datastring}}|;|8}}}}<!-- | -->{{#vardefine:Range|{{#explode: {{#var:Datastring}}|;|8}}}}<!-- | ||
-->{{#vardefine:Slashing Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Slashing Damage|{{#explode: {{#var:Datastring}}|;|12}}}}<!-- | ||
-->{{#vardefine:Piercing Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Piercing Damage|{{#explode: {{#var:Datastring}}|;|13}}}}<!-- | ||
-->{{#vardefine:Crushing Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Crushing Damage|{{#explode: {{#var:Datastring}}|;|14}}}}<!-- | ||
-->{{#vardefine:Rending Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Rending Damage|{{#explode: {{#var:Datastring}}|;|15}}}}<!-- | ||
-->{{#vardefine:Fire Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Fire Damage|{{#explode: {{#var:Datastring}}|;|16}}}}<!-- | ||
-->{{#vardefine:Shock Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Shock Damage|{{#explode: {{#var:Datastring}}|;|17}}}}<!-- | ||
-->{{#vardefine:Poison Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Poison Damage|{{#explode: {{#var:Datastring}}|;|18}}}}<!-- | ||
-->{{#vardefine:Caustic Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Caustic Damage|{{#explode: {{#var:Datastring}}|;|19}}}}<!-- | ||
-->{{#vardefine:Frost Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Frost Damage|{{#explode: {{#var:Datastring}}|;|20}}}}<!-- | ||
-->{{#vardefine:Arcane Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Arcane Damage|{{#explode: {{#var:Datastring}}|;|21}}}}<!-- | ||
-->{{#vardefine:Unholy Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Unholy Damage|{{#explode: {{#var:Datastring}}|;|22}}}}<!-- | ||
-->{{#vardefine:Sacred Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Sacred Damage|{{#explode: {{#var:Datastring}}|;|23}}}}<!-- | ||
-->{{#vardefine:Psionic Damage|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Psionic Damage|{{#explode: {{#var:Datastring}}|;|24}}}}<!-- | ||
-->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;|5}}}}<!-- | ||
-->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|7}}}}<!-- | -->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|7}}}}<!-- | ||
--- Load translations that are used multiple times into variables. --- | --- Load translations that are used multiple times into variables. --- | ||
-->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}} | -->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}} | ||
|- | |- | ||
|{{#if:{{#var:Tier}}|Tier {{#var:Tier}} | |||
|{{#if:{{#var:Unobtainable}}|{{Unobtainable}}<br />}}<!-- | |{{#if:{{#var:Unobtainable}}|{{Unobtainable}}<br />}}<!-- | ||
--- Check if we are on a subpage. If subpagename = pagename, we are not on a subpage, therefore URL becomes "item name". If we are on a subpage, URL becomes "item name/subgpagename". Used for other languages. --- | --- Check if we are on a subpage. If subpagename = pagename, we are not on a subpage, therefore URL becomes "item name". If we are on a subpage, URL becomes "item name/subgpagename". Used for other languages. --- |
Latest revision as of 22:10, 25 December 2024
This template has no documentation. If you know how to use this template, please add some.