Template:AutoArmourStats: Difference between revisions

From Melvor Idle
(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}}

Revision as of 14:00, 7 September 2021

Automatic version of Template:ArmourStats that pulls data via Lua.

{{AutoArmourStats|Ragnar God Gloves}} gives

Armour Stats
Offensive Stats Defensive Stats
Error creating thumbnail: File missing
Strength Bonus
16
Error creating thumbnail: File missing
Defence Bonus
0
Combat.svg Stab Bonus 12 Defence (skill).svg Damage Reduction 7%
Combat.svg Slash Bonus 12 Ranged (skill).svg Defence Bonus 0
Combat.svg Block Bonus 12 Magic (skill).svg Defence Bonus 0
Ranged (skill).svg Attack Bonus -5 Other
Ranged (skill).svg Strength Bonus 0 Slayer (skill).svg Bonus Slayer XP 0%
Magic (skill).svg Attack Bonus -8 Defence (skill).svg Level Required 85
Magic (skill).svg % Damage Bonus 0% Ranged (skill).svg Level Required 0
Magic (skill).svg Level Required 0