Difference between revisions of "Template:ItemPropertiesInfoBox"
Line 136: | Line 136: | ||
!{{Emoticon|emoticon=Attack}} (total)<!-- | !{{Emoticon|emoticon=Attack}} (total)<!-- | ||
-->{{#vardefine: showAtkEnchant | 1 }} | -->{{#vardefine: showAtkEnchant | 1 }} | ||
− | }} | + | }}<!-- |
− | + | -->{{#ifexpr: {{#expr: {{#var: enchantDef1|0}} + <!-- checks if there is any defense enchantment bonus, only displays def column if true --> | |
{{#var: enchantDef2|0}} + | {{#var: enchantDef2|0}} + | ||
{{#var: enchantDef3|0}} + | {{#var: enchantDef3|0}} + | ||
{{#var: enchantDef4|0}} | {{#var: enchantDef4|0}} | ||
}} > 0 | }} > 0 | ||
− | | !{{Emoticon|emoticon=Defend}} | + | | <!-- empty line is important! --> |
+ | !{{Emoticon|emoticon=Defend}} | ||
!{{Emoticon|emoticon=Defend}} (total)<!-- | !{{Emoticon|emoticon=Defend}} (total)<!-- | ||
-->{{#vardefine: showDefEnchant | 1 }} | -->{{#vardefine: showDefEnchant | 1 }} | ||
Line 151: | Line 152: | ||
{{#var: enchantMana4|0}} | {{#var: enchantMana4|0}} | ||
}} > 0 | }} > 0 | ||
− | | !{{Emoticon|emoticon=Mana}} | + | | <!-- empty line is important! --> |
+ | !{{Emoticon|emoticon=Mana}} | ||
!{{Emoticon|emoticon=Mana}} (total)<!-- | !{{Emoticon|emoticon=Mana}} (total)<!-- | ||
-->{{#vardefine: showManaEnchant | 1 }} | -->{{#vardefine: showManaEnchant | 1 }} | ||
Line 160: | Line 162: | ||
| {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk1}} | {{#var: enchantAtk1}} | [[??]] }} <!-- atk bonus this enchant --> | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk1}} | {{#var: enchantAtk1}} | [[??]] }} <!-- atk bonus this enchant --> | ||
{{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk1}} | {{#var: enchantAtk1}} | [[??]] }} <!-- total atk bonus to this level --> | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk1}} | {{#var: enchantAtk1}} | [[??]] }} <!-- total atk bonus to this level --> | ||
− | }} | + | }}<!-- |
− | + | -->{{#ifexpr: {{#var: showDefEnchant}} != 0 | |
− | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef1}} | {{#var: enchantDef1}} | [[??]] }} <!-- def bonus this enchant --> | + | | <!-- empty line is important! --> |
+ | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef1}} | {{#var: enchantDef1}} | [[??]] }} <!-- def bonus this enchant --> | ||
{{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef1}} | {{#var: enchantDef1}} | [[??]] }} <!-- total def bonus to this level --> | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef1}} | {{#var: enchantDef1}} | [[??]] }} <!-- total def bonus to this level --> | ||
}}<!-- | }}<!-- | ||
Line 176: | Line 179: | ||
| {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} }} | [[??]] | | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} }} | [[??]] | ||
}} | }} | ||
− | }} | + | }}<!-- |
− | + | -->{{#ifexpr: {{#var: showDefEnchant}} != 0 | |
− | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef2}} | {{#var: enchantDef2}} | [[??]] }} <!-- def bonus this enchant --> | + | | <!-- empty line is important! --> |
+ | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef2}} | {{#var: enchantDef2}} | [[??]] }} <!-- def bonus this enchant --> | ||
{{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantDef1}} |1 |0 }} and {{#if: {{#var: enchantDef2}} |1 |0 }} <!-- total def bonus to this level --> | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantDef1}} |1 |0 }} and {{#if: {{#var: enchantDef2}} |1 |0 }} <!-- total def bonus to this level --> | ||
| {{#expr: {{#var: enchantDef1}} + {{#var: enchantDef2}} }} | [[??]] | | {{#expr: {{#var: enchantDef1}} + {{#var: enchantDef2}} }} | [[??]] | ||
Line 196: | Line 200: | ||
| {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} }} | [[??]] | | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} }} | [[??]] | ||
}} | }} | ||
− | }} | + | }}<!-- |
− | + | -->{{#ifexpr: {{#var: showDefEnchant}} != 0 | |
− | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef3}} | {{#var: enchantDef3}} | [[??]] }} <!-- def bonus this enchant --> | + | | <!-- empty line is important! --> |
+ | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef3}} | {{#var: enchantDef3}} | [[??]] }} <!-- def bonus this enchant --> | ||
{{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantDef1}} |1 |0 }} and {{#if: {{#var: enchantDef2}} |1 |0 }} and {{#if: {{#var: enchantDef3}} |1 |0 }} <!-- total def bonus to this level --> | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantDef1}} |1 |0 }} and {{#if: {{#var: enchantDef2}} |1 |0 }} and {{#if: {{#var: enchantDef3}} |1 |0 }} <!-- total def bonus to this level --> | ||
| {{#expr: {{#var: enchantDef1}} + {{#var: enchantDef2}} + {{#var: enchantDef3}} }} | [[??]] | | {{#expr: {{#var: enchantDef1}} + {{#var: enchantDef2}} + {{#var: enchantDef3}} }} | [[??]] | ||
Line 216: | Line 221: | ||
| {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} + {{#var: enchantAtk4}} }} | [[??]] | | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} + {{#var: enchantAtk4}} }} | [[??]] | ||
}} | }} | ||
− | }} | + | }}<!-- |
− | + | -->{{#ifexpr: {{#var: showDefEnchant}} != 0 | |
− | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef4}} | {{#var: enchantDef4}} | [[??]] }} <!-- def bonus this enchant --> | + | | <!-- empty line is important! --> |
+ | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef4}} | {{#var: enchantDef4}} | [[??]] }} <!-- def bonus this enchant --> | ||
{{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantDef1}} |1 |0 }} and {{#if: {{#var: enchantDef2}} |1 |0 }} and {{#if: {{#var: enchantDef3}} |1 |0 }} and {{#if: {{#var: enchantDef4}} |1 |0 }} <!-- total def bonus to this level --> | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantDef1}} |1 |0 }} and {{#if: {{#var: enchantDef2}} |1 |0 }} and {{#if: {{#var: enchantDef3}} |1 |0 }} and {{#if: {{#var: enchantDef4}} |1 |0 }} <!-- total def bonus to this level --> | ||
| {{#expr: {{#var: enchantDef1}} + {{#var: enchantDef2}} + {{#var: enchantDef3}} + {{#var: enchantDef4}} }} | [[??]] | | {{#expr: {{#var: enchantDef1}} + {{#var: enchantDef2}} + {{#var: enchantDef3}} + {{#var: enchantDef4}} }} | [[??]] |
Revision as of 13:38, 10 January 2019
This template is designed for being used inside Template:InfoOverview. It adds information on equippable Items to the general info overview