4,951
edits
(Change to single Lua invocation) Tag: Replaced |
Falterfire (talk | contribs) (Added the ability for autoarmourstats to collapse to a single line if it's all zeros) |
||
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>{{#invoke:Items|getArmourStatsBox|{{{1|{{PAGENAME}}}}}}}</onlyinclude></includeonly> | |||
When called for items without any combat stats, it returns a simple statement to that effect. For example, {{T|{{PAGENAME}}|Gold Topaz Ring}} gives<br/>{{{{PAGENAME}}|Gold Topaz Ring}} | |||
<includeonly><onlyinclude>{{#ifeq:true|{{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|hasCombatStats}}|{{#invoke:Items|getArmourStatsBox|{{{1|{{PAGENAME}}}}}}}|{{{1|{{PAGENAME}}}}} does not provide any stat bonuses in combat.}} | |||
</onlyinclude></includeonly> |