Difference between revisions of "Template:ItemPropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
Line 176: Line 176:
 
                                                         | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} }} | [[??]]  
 
                                                         | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} }} | [[??]]  
 
                                                       }}
 
                                                       }}
           }}<!--
+
           }}
      -->{{#ifexpr: {{#var: showDefEnchant}} != 0
+
          {{#ifexpr: {{#var: showDefEnchant}} != 0
             | <!-- empty line is important! -->
+
             | {{!}} 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 -->
Line 197: Line 196:
 
                                                         | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} }} | [[??]]  
 
                                                         | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} }} | [[??]]  
 
                                                       }}
 
                                                       }}
           }}<!--
+
           }}
      -->{{#ifexpr: {{#var: showDefEnchant}} != 0
+
          {{#ifexpr: {{#var: showDefEnchant}} != 0
             | <!-- empty line is important! -->
+
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef3}} | {{#var: enchantDef3}} | [[??]] }} <!-- def bonus this enchant -->
              {{!}} 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}} }} | [[??]]  
 
                                                       }}
 
                                                       }}
           }}<!--
+
           }}
      -->{{#ifexpr: {{#var: showManaEnchant}} != 0
+
          {{#ifexpr: {{#var: showManaEnchant}} != 0
 
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantMana3}} | {{#var: enchantMana3}} | [[??]] }} <!-- mana bonus this enchant -->
 
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantMana3}} | {{#var: enchantMana3}} | [[??]] }} <!-- mana bonus this enchant -->
 
               {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantMana1}} |1 |0 }} and {{#if: {{#var: enchantMana2}} |1 |0 }} and {{#if: {{#var: enchantMana3}} |1 |0 }} <!-- total mana bonus to this level -->
 
               {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantMana1}} |1 |0 }} and {{#if: {{#var: enchantMana2}} |1 |0 }} and {{#if: {{#var: enchantMana3}} |1 |0 }} <!-- total mana bonus to this level -->
Line 218: Line 216:
 
                                                         | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} + {{#var: enchantAtk4}} }} | [[??]]  
 
                                                         | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} + {{#var: enchantAtk4}} }} | [[??]]  
 
                                                       }}
 
                                                       }}
           }}<!--
+
           }}
      -->{{#ifexpr: {{#var: showDefEnchant}} != 0
+
          {{#ifexpr: {{#var: showDefEnchant}} != 0
             | <!-- empty line is important! -->
+
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef4}} | {{#var: enchantDef4}} | [[??]] }} <!-- def bonus this enchant -->
              {{!}} 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}} }} | [[??]]  
 
                                                       }}
 
                                                       }}
           }}<!--
+
           }}
      -->{{#ifexpr: {{#var: showManaEnchant}} != 0
+
          {{#ifexpr: {{#var: showManaEnchant}} != 0
 
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantMana4}} | {{#var: enchantMana4}} | [[??]] }} <!-- mana bonus this enchant -->
 
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantMana4}} | {{#var: enchantMana4}} | [[??]] }} <!-- mana bonus this enchant -->
 
               {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantMana1}} |1 |0 }} and {{#if: {{#var: enchantMana2}} |1 |0 }} and {{#if: {{#var: enchantMana3}} |1 |0 }} and {{#if: {{#var: enchantMana4}} |1 |0 }} <!-- total mana bonus to this level -->
 
               {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantMana1}} |1 |0 }} and {{#if: {{#var: enchantMana2}} |1 |0 }} and {{#if: {{#var: enchantMana3}} |1 |0 }} and {{#if: {{#var: enchantMana4}} |1 |0 }} <!-- total mana bonus to this level -->

Revision as of 14:41, 10 January 2019












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