Difference between revisions of "Template:ItemPropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
Line 160: Line 160:
 
             | {{!}} 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 -->
 
               {{!}} 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 -->
           }}
+
           }}<!--
          {{#ifexpr: {{#var: showManaEnchant}} != 0
+
      -->{{#ifexpr: {{#var: showManaEnchant}} != 0
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantMana1}} | {{#var: enchantMana1}} | [[??]] }} <!-- mana bonus this enchant -->
+
             | {{!}}{{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantMana1}} | {{#var: enchantMana1}} | [[??]] }} <!-- mana bonus this enchant -->
 
               {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantMana1}} | {{#var: enchantMana1}} | [[??]] }} <!-- total mana bonus to this level -->
 
               {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantMana1}} | {{#var: enchantMana1}} | [[??]] }} <!-- total mana bonus to this level -->
 
           }}             
 
           }}             
Line 176: Line 176:
 
                                                         | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} }} | [[??]]  
 
                                                         | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} }} | [[??]]  
 
                                                       }}
 
                                                       }}
           }}
+
           }}<!--
          {{#ifexpr: {{#var: showDefEnchant}} != 0
+
      -->{{#ifexpr: {{#var: showDefEnchant}} != 0
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef2}} | {{#var: enchantDef2}} | [[??]] }} <!-- def bonus this enchant -->
+
             | {{!}}{{!}} 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}} }} | [[??]]  
 
                                                       }}
 
                                                       }}
           }}
+
           }}<!--
          {{#ifexpr: {{#var: showManaEnchant}} != 0
+
      -->{{#ifexpr: {{#var: showManaEnchant}} != 0
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantMana2}} | {{#var: enchantMana2}} | [[??]] }} <!-- mana bonus this enchant -->
+
             | {{!}}{{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantMana2}} | {{#var: enchantMana2}} | [[??]] }} <!-- mana bonus this enchant -->
 
               {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantMana1}} |1 |0 }} and {{#if: {{#var: enchantMana2}} |1 |0 }} <!-- total mana bonus to this level -->
 
               {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantMana1}} |1 |0 }} and {{#if: {{#var: enchantMana2}} |1 |0 }} <!-- total mana bonus to this level -->
 
                                                         | {{#expr: {{#var: enchantMana1}} + {{#var: enchantMana2}} }} | [[??]]  
 
                                                         | {{#expr: {{#var: enchantMana1}} + {{#var: enchantMana2}} }} | [[??]]  

Revision as of 13:54, 10 January 2019












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