Template:AutoArmourStats: Difference between revisions

Fixed strength bonus not pulling properly
(Created page with "Automatic version of Template:ArmourStats that pulls data via Lua. {{T|{{PAGENAME}}|Glacia God Gloves}} gives {{{{PAGENAME}}|Glacia God Gloves}} <includeonly><onlyinclude...")
 
(Fixed strength bonus not pulling properly)
Line 1: Line 1:
Automatic version of [[Template:ArmourStats]] that pulls data via Lua.
Automatic version of [[Template:ArmourStats]] that pulls data via Lua.


{{T|{{PAGENAME}}|Glacia God Gloves}} gives {{{{PAGENAME}}|Glacia God Gloves}}
{{T|{{PAGENAME}}|Ragnar God Gloves}} gives {{{{PAGENAME}}|Ragnar God Gloves}}
<includeonly><onlyinclude>{{#vardefine:item|{{{1|{{PAGENAME}}}}}}}{| class="wikitable"
<includeonly><onlyinclude>{{#vardefine:item|{{{1|{{PAGENAME}}}}}}}{| class="wikitable"
|-
|-
Line 10: Line 10:
|-
|-
! style ="text-align: right;"| {{Skill|Strength|notext=true}} Strength Bonus
! style ="text-align: right;"| {{Skill|Strength|notext=true}} Strength Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|strengthBonus|ForceZero=true}}
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|meleeStrengthBonus|ForceZero=true}}
! style ="text-align: right;"| {{Skill|Defence|notext=true}} Defence Bonus
! style ="text-align: right;"| {{Skill|Defence|notext=true}} Defence Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|defenceBonus|ForceZero=true}}
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|defenceBonus|ForceZero=true}}