Difference between revisions of "Template:WeaponTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
(using new DamageText property to load damage into the table)
(test after splitting data page into parts)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--- Define variables for properties used more than once in the template - goal is to only load each property from the Data page once. ---
--- Define variables for properties used more than once in the template - goal is to only load each property from the Data page once. ---
-->{{#vardefine:Range|{{:Data|{{{1}}}|Range}}}}<!--
-->{{#vardefine:Range|{{:Weapon_data|{{{1}}}|Range}}}}<!--
-->{{#vardefine:Name|{{:Data|{{{1}}}|Name}}}}<!--
-->{{#vardefine:Name|{{:Weapon_data|{{{1}}}|Name}}}}<!--
-->{{#vardefine:Image|{{:Data|{{{1}}}|Image}}}}<!--
-->{{#vardefine:Image|{{:Weapon_data|{{{1}}}|Image}}}}<!--
-->{{#vardefine:Rarity|{{:Data|{{{1}}}|Rarity}}}}<!--
-->{{#vardefine:Rarity|{{:Weapon_data|{{{1}}}|Rarity}}}}<!--
-->{{#vardefine:Total Damage|{{:Data|{{{1}}}|Total Damage}}}}<!--
-->{{#vardefine:Total Damage|{{:Weapon_data|{{{1}}}|Total Damage}}}}<!--
-->{{#vardefine:Damage Text|{{:Data|{{{1}}}|DamageText}}}}
-->{{#vardefine:Damage Text|{{:Weapon_data|{{{1}}}|DamageText}}}}
|-
|-
|{{#if:{{:Data|{{{1}}}|Unobtainable}}|{{Unobtainable}}<br />}}<!--
|{{#if:{{:Weapon_data|{{{1}}}|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. ---
-->'''[[{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|<!--
-->'''[[{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|<!--
Line 21: Line 21:
| {{#if:{{#var:Rarity}}||{{#vardefine:Rarity|Common}}}}{{c|{{#var:Rarity}}|{{Translate|{{#var:Rarity}}|Properties}}}}
| {{#if:{{#var:Rarity}}||{{#vardefine:Rarity|Common}}}}{{c|{{#var:Rarity}}|{{Translate|{{#var:Rarity}}|Properties}}}}
| data-sort-value="{{#var:Total Damage}}" | {{#var:Damage Text}}
| data-sort-value="{{#var:Total Damage}}" | {{#var:Damage Text}}
| {{:Data|{{{1}}}|Durability}}
| {{:Weapon_data|{{{1}}}|Durability}}
{{#if:{{#var:weapon table ranged}}|
{{#if:{{#var:weapon table ranged}}|
{{!}} {{#var:Range}}
{{!}} {{#var:Range}}
}}
}}
| {{:Data|{{{1}}}|Price}}
| {{:Weapon_data|{{{1}}}|Price}}
| {{Test|{{{1}}}}}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>
| {{Test|{{{1}}}}}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>

Revision as of 10:56, 29 May 2022

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