Difference between revisions of "Template:ItemPropertiesInfoBox"
(fixed error with unknown enchant levels) |
|||
Line 126: | Line 126: | ||
}} | }} | ||
{{#ifexpr: {{#var: showDefEnchant}} != 0 | {{#ifexpr: {{#var: showDefEnchant}} != 0 | ||
− | | {{!}} style="text-align: center" {{!}} +{{# | + | | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#var: enchantDef3|0}} | {{#var: enchantDef3}} | ? }} <!-- def bonus this enchant --> |
{{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#var: enchantDef1|0}} and {{#var: enchantDef2|0}} and {{#var: enchantDef3|0}} | {{#expr: {{#var: enchantDef1}} + {{#var: enchantDef2}} + {{#var: enchantDef3}} }} | ? }} <!-- total def bonus to this level --> | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#var: enchantDef1|0}} and {{#var: enchantDef2|0}} and {{#var: enchantDef3|0}} | {{#expr: {{#var: enchantDef1}} + {{#var: enchantDef2}} + {{#var: enchantDef3}} }} | ? }} <!-- total def bonus to this level --> | ||
}} | }} |
Revision as of 04:20, 12 August 2018
This template is designed for being used inside Template:InfoOverview. It adds information on equippable Items to the general info overview