Difference between revisions of "Template:ItemPropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
Line 81: Line 81:
 
           {{{!}} class="wikitable"
 
           {{{!}} class="wikitable"
 
           !Level
 
           !Level
           {{#ifexpr: {{#expr: {{#var: enchantAtk1}} + <!-- checks if there are any attack enchantment bonus, only displays atk column if true -->
+
           {{#ifexpr: {{#expr: {{#var: enchantAtk1|0}} + <!-- checks if there are any attack enchantment bonus, only displays atk column if true -->
                               {{#var: enchantAtk2}} +
+
                               {{#var: enchantAtk2|0}} +
                               {{#var: enchantAtk3}} +
+
                               {{#var: enchantAtk3|0}} +
                               {{#var: enchantAtk4}}
+
                               {{#var: enchantAtk4|0}}
 
                     }} > 0  
 
                     }} > 0  
 
             | !{{Emoticon|emoticon=Attack}}
 
             | !{{Emoticon|emoticon=Attack}}
Line 90: Line 90:
 
               -->{{#vardefine: showAtkEnchant | 1 }}
 
               -->{{#vardefine: showAtkEnchant | 1 }}
 
           }}
 
           }}
           {{#ifexpr: {{#expr: {{#var: enchantDef1}} + <!-- checks if there are any defense enchantment bonus, only displays def column if true -->
+
           {{#ifexpr: {{#expr: {{#var: enchantDef1|0}} + <!-- checks if there are any defense enchantment bonus, only displays def column if true -->
                               {{#var: enchantDef2}} +
+
                               {{#var: enchantDef2|0}} +
                               {{#var: enchantDef3}} +
+
                               {{#var: enchantDef3|0}} +
                               {{#var: enchantDef4}}
+
                               {{#var: enchantDef4|0}}
 
                     }} > 0  
 
                     }} > 0  
 
             | !{{Emoticon|emoticon=Defend}}
 
             | !{{Emoticon|emoticon=Defend}}

Revision as of 04:23, 12 August 2018








This template is designed for being used inside Template:InfoOverview. It adds information on equippable Items to the general info overview