Template:AutoArmourStats: Difference between revisions

Change to single Lua invocation
(Fixing melee defence bonus)
(Change to single Lua invocation)
Tag: Replaced
Line 2: Line 2:


{{T|{{PAGENAME}}|Ragnar God Gloves}} gives {{{{PAGENAME}}|Ragnar God Gloves}}
{{T|{{PAGENAME}}|Ragnar God Gloves}} gives {{{{PAGENAME}}|Ragnar God Gloves}}
<includeonly><onlyinclude>{{#vardefine:item|{{{1|{{PAGENAME}}}}}}}{| class="wikitable"
<includeonly><onlyinclude>{{#invoke:Items|getArmourStatsBox|{{{1|{{PAGENAME}}}}}}}</onlyinclude></includeonly>
|-
! colspan="4" style = "border-bottom: solid medium black;"| Armour Stats
|-
! colspan="2" style = "border-bottom: solid thin black;"| Offensive Stats
! colspan="2" style = "border-bottom: solid thin black;"| Defensive Stats
|-
! style ="text-align: right;"| {{Skill|Strength|notext=true}} Strength Bonus
| 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;"| {{#invoke:Items|getItemStat|{{#var:item}}|meleeDefenceBonus|ForceZero=true}}
|-
! style ="text-align: right;"| [[File:Combat.svg|25px|middle|link=Attack]] Stab Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|stabAttackBonus|ForceZero=true}}
! style ="text-align: right;"| [[File:Defence (skill).svg|25px|middle|link=Defence]] Damage Reduction
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|damageReduction|ForceZero=true}}%
|-
! style ="text-align: right;"| [[File:Combat.svg|25px|middle|link=Strength]] Slash Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|slashAttackBonus|ForceZero=true}}
! style ="text-align: right;"| [[File:Ranged (skill).svg|25px|middle|link=Ranged]] Defence Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|rangedDefenceBonus|ForceZero=true}}
|-
! style ="text-align: right;"| [[File:Combat.svg|25px|middle|link=Defence]] Block Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|blockAttackBonus|ForceZero=true}}
! style ="text-align: right;border-bottom: solid thin black;"| [[File:Magic (skill).svg|25px|middle|link=Magic]] Defence Bonus
| style ="text-align: right;border-bottom: solid thin black;"| {{#invoke:Items|getItemStat|{{#var:item}}|magicDefenceBonus|ForceZero=true}}
|-
! style ="text-align: right;"| [[File:Ranged (skill).svg|25px|middle|link=Ranged]] Attack Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|rangedAttackBonus|ForceZero=true}}
! colspan="2" style = "border-bottom: solid thin black;"| Other
|-
! style ="text-align: right;"| [[File:Ranged (skill).svg|25px|middle|link=Ranged]] Strength Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|rangedStrengthBonus|ForceZero=true}}
! style ="text-align: right;"| [[File:Slayer (skill).svg|25px|middle|link=Slayer]] Bonus Slayer XP
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|slayerBonusXP|ForceZero=true}}%
|-
! style ="text-align: right;"| [[File:Magic (skill).svg|25px|middle|link=Magic]] Attack Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|magicAttackBonus|ForceZero=true}}
! style ="text-align: right;"| [[File:Defence (skill).svg|25px|middle|link=Defence]] Level Required
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|defenceLevelRequired|ForceZero=true}}
|-
! style ="text-align: right;"| [[File:Magic (skill).svg|25px|middle|link=Magic]] % Damage Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|magicDamageBonus|ForceZero=true}}%
! style ="text-align: right;"| [[File:Ranged (skill).svg|25px|middle|link=Ranged]] Level Required
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|rangedLevelRequired|ForceZero=true}}
|-
| colspan="2"|
! style ="text-align: right;"| [[File:Magic (skill).svg|25px|middle|link=Magic]] Level Required
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|magicLevelRequired|ForceZero=true}}
|}</onlyinclude></includeonly>