Difference between revisions of "Template:WeaponTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
(updated for RtR)
(add Tier)
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}}|;|3}}}}<!--
-->{{#vardefine:Rarity|{{#explode: {{#var:Datastring}}|;|3}}}}<!--
Line 25: Line 26:
-->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}}
-->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}}
|-
|-
|{{#if:{{#var:Tier}}|Tier {{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. ---

Revision as of 22:09, 25 December 2024

This template has no documentation. If you know how to use this template, please add some.