Difference between revisions of "Template:ItemPropertiesInfoBox"
(testing for fixing bug where correctly entered "0" as enchant bonus for this level is interpreted as unknown) |
|||
Line 102: | Line 102: | ||
{{!}} style="text-align: center" {{!}} 1 | {{!}} style="text-align: center" {{!}} 1 | ||
{{#ifexpr: {{#var: showAtkEnchant}} != 0 | {{#ifexpr: {{#var: showAtkEnchant}} != 0 | ||
− | | {{!}} style="text-align: center" {{!}} +{{# | + | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk1}} | {{#var: enchantAtk1}} | ? }} <!-- atk bonus this enchant --> |
− | {{!}} style="text-align: center" {{!}} +{{# | + | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk1}} | {{#var: enchantAtk1}} | ? }} <!-- total atk bonus to this level --> |
}} | }} | ||
{{#ifexpr: {{#var: showDefEnchant}} != 0 | {{#ifexpr: {{#var: showDefEnchant}} != 0 | ||
− | | {{!}} style="text-align: center" {{!}} +{{# | + | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef1}} | {{#var: enchantDef1}} | ? }} <!-- def bonus this enchant --> |
− | {{!}} style="text-align: center" {{!}} +{{# | + | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef1}} | {{#var: enchantDef1}} | ? }} <!-- total def bonus to this level --> |
}} | }} | ||
{{!}}- | {{!}}- |
Revision as of 11:25, 14 August 2018
This template is designed for being used inside Template:InfoOverview. It adds information on equippable Items to the general info overview