Difference between revisions of "Template:ItemPropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
Line 135: Line 135:
 
             | !{{Emoticon|emoticon=Attack}}
 
             | !{{Emoticon|emoticon=Attack}}
 
               !{{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 -->
+
      -->{{#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}}
+
             |  
 +
 
 +
              !{{Emoticon|emoticon=Defend}}
 
               !{{Emoticon|emoticon=Defend}} (total)<!--
 
               !{{Emoticon|emoticon=Defend}} (total)<!--
 
               -->{{#vardefine: showDefEnchant | 1 }}
 
               -->{{#vardefine: showDefEnchant | 1 }}
Line 159: Line 161:
 
           {{#ifexpr: {{#var: showAtkEnchant}} != 0
 
           {{#ifexpr: {{#var: showAtkEnchant}} != 0
 
             | {{!}} 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
 
           {{#ifexpr: {{#var: showDefEnchant}} != 0
 
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef1}} | {{#var: enchantDef1}} | [[??]] }} <!-- def bonus this enchant -->
 
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef1}} | {{#var: enchantDef1}} | [[??]] }} <!-- def bonus this enchant -->

Revision as of 14:49, 10 January 2019












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