Difference between revisions of "Template:ItemPropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
(bug fixes)
Line 1: Line 1:
{{#vardefine: enchantAtk1 | {{#show: {{PAGENAME}} |?EnchantAtk1# }} }}
+
{{#vardefine: enchantAtk1 | {{#show: {{PAGENAME}} |?EnchantAtk1 }} }}
{{#vardefine: enchantAtk2 | {{#show: {{PAGENAME}} |?EnchantAtk2# }} }}
+
{{#vardefine: enchantAtk2 | {{#show: {{PAGENAME}} |?EnchantAtk2 }} }}
{{#vardefine: enchantAtk3 | {{#show: {{PAGENAME}} |?EnchantAtk3# }} }}
+
{{#vardefine: enchantAtk3 | {{#show: {{PAGENAME}} |?EnchantAtk3 }} }}
{{#vardefine: enchantAtk4 | {{#show: {{PAGENAME}} |?EnchantAtk4# }} }}
+
{{#vardefine: enchantAtk4 | {{#show: {{PAGENAME}} |?EnchantAtk4 }} }}
  
{{#vardefine: enchantDef1 | {{#show: {{PAGENAME}} |?EnchantDef1# }} }}
+
{{#vardefine: enchantDef1 | {{#show: {{PAGENAME}} |?EnchantDef1 }} }}
{{#vardefine: enchantDef2 | {{#show: {{PAGENAME}} |?EnchantDef2# }} }}
+
{{#vardefine: enchantDef2 | {{#show: {{PAGENAME}} |?EnchantDef2 }} }}
{{#vardefine: enchantDef3 | {{#show: {{PAGENAME}} |?EnchantDef3# }} }}
+
{{#vardefine: enchantDef3 | {{#show: {{PAGENAME}} |?EnchantDef3 }} }}
{{#vardefine: enchantDef4 | {{#show: {{PAGENAME}} |?EnchantDef4# }} }}
+
{{#vardefine: enchantDef4 | {{#show: {{PAGENAME}} |?EnchantDef4 }} }}
  
 
{{#vardefine: showAtkEnchant | 0 }}
 
{{#vardefine: showAtkEnchant | 0 }}
Line 153: Line 153:
 
           }}
 
           }}
 
           {{#ifexpr: {{#var: showDefEnchant}} != 0
 
           {{#ifexpr: {{#var: showDefEnchant}} != 0
             | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef2|0}} | {{#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}} }} | [[??]]  

Revision as of 23:17, 1 September 2018








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