Difference between revisions of "Template:WeaponTable/row"
Jump to navigation
Jump to search
(add Tier) |
(overwrite item rarity to Unique based on its Tag) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 6: | Line 6: | ||
-->{{#vardefine:Unobtainable|{{#explode: {{#var:Datastring}}|;|-2}}}}<!-- | -->{{#vardefine:Unobtainable|{{#explode: {{#var:Datastring}}|;|-2}}}}<!-- | ||
-->{{#vardefine:Rarity|{{#explode: {{#var:Datastring}}|;|3}}}}<!-- | -->{{#vardefine:Rarity|{{#explode: {{#var:Datastring}}|;|3}}}}<!-- | ||
-->{{#vardefine:Tags|{{#explode: {{#var:Datastring}}|;|66}}}}<!-- | |||
-->{{#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}}}}<!-- | ||
| Line 26: | Line 27: | ||
-->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}} | -->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}} | ||
|- | |- | ||
|{{#if:{{#var:Tier}}|Tier {{Tier}} | |{{#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. --- | ||
| Line 35: | Line 36: | ||
--- Check if there is a custom name. If yes, load custom name translation, otherwise load item name translation. --- | --- Check if there is a custom name. If yes, load custom name translation, otherwise load item name translation. --- | ||
-->alt={{#var:TranslateName}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]] | -->alt={{#var:TranslateName}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]] | ||
| {{#if:{{#var:Rarity}}||{{#vardefine:Rarity|Common}}}}{{c|{{#var:Rarity}}|{{Translate|{{#var:Rarity}}|Properties}}}} | |<!-- | ||
--- Check if Tag contains Unique, overwrite Rarity for Uniques --- | |||
-->{{#ifeq:{{#var:Tags}}|unique|{{#vardefine:Rarity|Unique}}|}}<!-- | |||
--> {{#if:{{#var:Rarity}}||{{#vardefine:Rarity|Common}}}}{{c|{{#var:Rarity}}|{{Translate|{{#var:Rarity}}|Properties}}}} | |||
| data-sort-value="{{#var:Total Damage}}" |<!-- | | data-sort-value="{{#var:Total Damage}}" |<!-- | ||
-->{{#if:{{#var:Slashing Damage}}|{{Translate|Slashing|Properties}}: {{#var:Slashing Damage}}<br>}}<!-- | -->{{#if:{{#var:Slashing Damage}}|{{Translate|Slashing|Properties}}: {{#var:Slashing Damage}}<br>}}<!-- | ||
Latest revision as of 15:49, 31 May 2025
This template has no documentation. If you know how to use this template, please add some.