Difference between revisions of "Template:WeaponTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
old>OOPankyOo
m (Replaced Range -> Values1 as Values1 = Range for all bows)
old>Realpsojed
(fix sort value for Range. Check if bow exists on page Data and load Range parameter. If not, check all properties on item page and return value of Property named "Range".)
Line 1: Line 1:
<includeonly>
<includeonly>{{#vardefine:range|{{#if: {{:Data|{{{1}}}|Range}} | {{:Data|{{{1}}}|Range}} | {{#switch: Range
|{{:{{{1}}}|Properties1}} = {{:{{{1}}}|Values1}}
|{{:{{{1}}}|Properties2}} = {{:{{{1}}}|Values2}}
|{{:{{{1}}}|Properties3}} = {{:{{{1}}}|Values3}}
|{{:{{{1}}}|Properties4}} = {{:{{{1}}}|Values4}}
|{{:{{{1}}}|Properties5}} = {{:{{{1}}}|Values5}}
|{{:{{{1}}}|Properties6}} = {{:{{{1}}}|Values6}}
|{{:{{{1}}}|Properties7}} = {{:{{{1}}}|Values7}}
|{{:{{{1}}}|Properties8}} = {{:{{{1}}}|Values8}}
|{{:{{{1}}}|Properties9}} = {{:{{{1}}}|Values9}}
|{{:{{{1}}}|Properties10}} = {{:{{{1}}}|Values10}}
|{{:{{{1}}}|Properties11}} = {{:{{{1}}}|Values11}}
|{{:{{{1}}}|Properties12}} = {{:{{{1}}}|Values12}}
|{{:{{{1}}}|Properties13}} = {{:{{{1}}}|Values13}}
|#default = }}
}}
|-
|-
|{{#if:{{:{{{1}}}|Unobtainable}}|{{Unobtainable}}<br />}}'''[[{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#if:{{:{{{1}}}|Name}}|{{Translate|{{:{{{1}}}|Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}]]'''[[File:{{#if:{{:{{{1}}}|Image}}|{{:{{{1}}}|Image}}|{{{1}}}.png}}|center|alt={{#if:{{:{{{1}}}|Name}}|{{Translate|{{:{{{1}}}|Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]]
|{{#if:{{:{{{1}}}|Unobtainable}}|{{Unobtainable}}<br />}}'''[[{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#if:{{:{{{1}}}|Name}}|{{Translate|{{:{{{1}}}|Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}]]'''[[File:{{#if:{{:{{{1}}}|Image}}|{{:{{{1}}}|Image}}|{{{1}}}.png}}|center|alt={{#if:{{:{{{1}}}|Name}}|{{Translate|{{:{{{1}}}|Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]]
Line 6: Line 21:
| {{:{{{1}}}|Durability}}
| {{:{{{1}}}|Durability}}
{{#if:{{#var:weapon table ranged}}|
{{#if:{{#var:weapon table ranged}}|
{{!}} {{:{{{1}}}|Values1}}
{{!}} {{#var:range}}
}}
}}
| {{:{{{1}}}|Price}}
| {{:{{{1}}}|Price}}
| {{Properties|{{{1}}}}}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>
| {{Properties|{{{1}}}}}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>

Revision as of 13:25, 25 June 2021

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