Difference between revisions of "Template:ItemPropertiesInfoBox"
(minor bugfix for pages using this to get info of other pages) |
|||
(38 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#vardefine: | + | {{#vardefine: source | {{{source|{{PAGENAME}} }}} }} |
− | |||
− | |||
− | |||
− | {{#vardefine: enchantDef1 | {{#show: {{ | + | {{#vardefine: enchantAtk1 | {{#show: {{#var: source}} |?EnchantAtk1 }} }} |
− | {{#vardefine: enchantDef2 | {{#show: {{ | + | {{#vardefine: enchantAtk2 | {{#show: {{#var: source}} |?EnchantAtk2 }} }} |
− | {{#vardefine: enchantDef3 | {{#show: {{ | + | {{#vardefine: enchantAtk3 | {{#show: {{#var: source}} |?EnchantAtk3 }} }} |
− | {{#vardefine: enchantDef4 | {{#show: {{ | + | {{#vardefine: enchantAtk4 | {{#show: {{#var: source}} |?EnchantAtk4 }} }} |
+ | |||
+ | {{#vardefine: enchantDef1 | {{#show: {{#var: source}} |?EnchantDef1 }} }} | ||
+ | {{#vardefine: enchantDef2 | {{#show: {{#var: source}} |?EnchantDef2 }} }} | ||
+ | {{#vardefine: enchantDef3 | {{#show: {{#var: source}} |?EnchantDef3 }} }} | ||
+ | {{#vardefine: enchantDef4 | {{#show: {{#var: source}} |?EnchantDef4 }} }} | ||
+ | |||
+ | {{#vardefine: enchantMana1 | {{#show: {{#var: source}} |?EnchantMana1 }} }} | ||
+ | {{#vardefine: enchantMana2 | {{#show: {{#var: source}} |?EnchantMana2 }} }} | ||
+ | {{#vardefine: enchantMana3 | {{#show: {{#var: source}} |?EnchantMana3 }} }} | ||
+ | {{#vardefine: enchantMana4 | {{#show: {{#var: source}} |?EnchantMana4 }} }} | ||
{{#vardefine: showAtkEnchant | 0 }} | {{#vardefine: showAtkEnchant | 0 }} | ||
{{#vardefine: showDefEnchant | 0 }} | {{#vardefine: showDefEnchant | 0 }} | ||
+ | {{#vardefine: showManaEnchant | 0 }} | ||
<includeonly> | <includeonly> | ||
|Craftable | |Craftable | ||
− | | {{#if: {{#show: {{ | + | | {{#if: {{#show: {{#var: source}} |?BoolCraft }} | {{#ifeq: {{#show: {{#var: source}} |?BoolCraft }} | true | yes | no}} | [[??]] }} |
|- | |- | ||
|Tradeable (Auction) | |Tradeable (Auction) | ||
− | | {{#if: {{#show: {{ | + | | {{#if: {{#show: {{#var: source}} |?BoolAuction }} | {{#ifeq: {{#show: {{#var: source}} |?BoolAuction }} | true | yes | no}} | [[??]] }} |
|- | |- | ||
|Shop prices (buy / sell) | |Shop prices (buy / sell) | ||
− | | {{#if: {{#show: {{ | + | | {{#if: {{#show: {{#var: source}} |?ShopBuyPrice }} |
+ | | {{#show: {{#var: source}} |?ShopBuyPrice }}{{Emoticon|emoticon=Gold}} | ||
+ | | ''Can't be bought'' | ||
+ | }} / <!-- | ||
+ | -->{{#if: {{#show: {{#var: source}} |?ShopSellPrice}} | ||
+ | | {{#show: {{#var: source}} |?ShopSellPrice }}{{Emoticon|emoticon=Gold}} | ||
+ | | {{#if: {{#show: {{#var: source}} |?ShopBuyPrice }} | ||
+ | | {{#ifexpr: {{#show: {{#var: source}} |?ShopBuyPrice }} < 4 | ||
+ | | 0{{Emoticon|emoticon=Gold}} | ||
+ | | ''Can't be sold'' | ||
+ | }} | ||
+ | | ''Can't be sold'' | ||
+ | }} | ||
+ | }} | ||
|- | |- | ||
|colspan="2" align="center"|'''Stats''' | |colspan="2" align="center"|'''Stats''' | ||
Line 27: | Line 48: | ||
|- | |- | ||
|Attack | |Attack | ||
− | | +{{#if: {{#show: {{ | + | | +{{#if: {{#show: {{#var: source}} |?Attack }} | {{#show: {{#var: source}} |?Attack }} | [[??]] }} {{Emoticon|emoticon=Attack}} |
|- | |- | ||
|Defense | |Defense | ||
− | | +{{#if: {{#show: {{ | + | | +{{#if: {{#show: {{#var: source}} |?Defense }} | {{#show: {{#var: source}} |?Defense }} | [[??]] }} {{Emoticon|emoticon=Defend}} |
|- | |- | ||
|Mana | |Mana | ||
− | | +{{#if: {{#show: {{ | + | | +{{#if: {{#show: {{#var: source}} |?Mana }} | {{#show: {{#var: source}} |?Mana }} | [[??]] }} {{Emoticon|emoticon=Mana}} |
|- | |- | ||
− | {{#if: {{#show: {{ | + | {{#if: {{#show: {{#var: source}} |?Stamina }} | |
− | {{#ifeq: {{#show: {{ | + | {{#ifeq: {{#show: {{#var: source}} |?Stamina }} | 0 | | |
{{!}}Stamina | {{!}}Stamina | ||
− | {{!}} +{{#show: {{ | + | {{!}} +{{#show: {{#var: source}} |?Stamina }} {{Emoticon|emoticon=Stamina}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
}} | }} | ||
− | {{#if: {{#show: {{ | + | {{#if: {{#show: {{#var: source}} |?InventoryIncrease }} | |
− | {{#ifeq: {{#show: {{ | + | {{#ifeq: {{#show: {{#var: source}} |?InventoryIncrease }} | 0 | | |
{{!}}Inventory increase | {{!}}Inventory increase | ||
− | {{!}} +{{#show: {{ | + | {{!}} +{{#show: {{#var: source}} |?InventoryIncrease }} {{Emoticon|emoticon=Bag}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
}} | }} | ||
− | {{#if: {{#show: {{ | + | {{#if: {{#show: {{#var: source}} |?Luck }} | |
− | {{#ifeq: {{#show: {{ | + | {{#ifeq: {{#show: {{#var: source}} |?Luck }} | 0 | | |
{{!}}Luck | {{!}}Luck | ||
− | {{!}} +{{#show: {{ | + | {{!}} +{{#show: {{#var: source}} |?Luck }} {{Emoticon|emoticon=Luck}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
}} | }} | ||
− | |||
− | |||
− | |||
|[[Skill]] | |[[Skill]] | ||
− | | {{#switch: {{#show: {{ | + | | {{#switch: {{#show: {{#var: source}} |?ItemType# }} |
− | | Weapon = {{#ask: [[{{ | + | | Weapon = {{#ask: [[{{#var: source}}]] |
|mainlabel=- | |mainlabel=- | ||
|headers=hide | |headers=hide | ||
Line 68: | Line 86: | ||
|?ItemSubType# | |?ItemSubType# | ||
}} | }} | ||
− | | Protective Gear = {{#ask: [[{{ | + | | Protective Gear = {{#if: {{#show: {{#var: source}} |?ArmorClass# }} |
− | + | | {{#ask: [[{{#var: source}}]] | |
− | + | |mainlabel=- | |
− | + | |headers=hide | |
− | + | |format=template | |
− | + | |template=GenerateMastery | |
− | }} | + | |?ArmorClass# |
+ | }} ([[Armor Mastery]]) | ||
+ | | [[Armor Mastery]] | ||
+ | }} | ||
| - | | - | ||
}} | }} | ||
+ | |- | ||
+ | |Level Requirement | ||
+ | | {{#show: {{#var: source}} |?LevelEquipRequirement }} {{#switch: {{#show: {{#var: source}} |?LevelEquipRequirement }} | 15 = ({{Emoticon|emoticon=Bookred}}) | 25 = ({{Emoticon|emoticon=Bookgreen}}) | 35 = ({{Emoticon|emoticon=Bookblue}}) | 45 = ({{Emoticon|emoticon=Bookorange}}) }} | ||
|- | |- | ||
|Enchantment Slot | |Enchantment Slot | ||
− | | {{#ifeq: {{#show: {{ | + | | {{#ifeq: {{#show: {{#var: source}} |?BoolEnchantment }} | true |
− | | yes {{#switch: {{#show: {{ | + | | yes {{#switch: {{#show: {{#var: source}} |?LevelEquipRequirement }} |
| 15 = ({{Emoticon|emoticon=Bookred}}) | | 15 = ({{Emoticon|emoticon=Bookred}}) | ||
| 25 = ({{Emoticon|emoticon=Bookgreen}}) | | 25 = ({{Emoticon|emoticon=Bookgreen}}) | ||
Line 93: | Line 117: | ||
{{#var: enchantDef2|0}} + | {{#var: enchantDef2|0}} + | ||
{{#var: enchantDef3|0}} + | {{#var: enchantDef3|0}} + | ||
− | {{#var: enchantDef4|0}} | + | {{#var: enchantDef4|0}} + |
+ | {{#var: enchantMana1|0}} + | ||
+ | {{#var: enchantMana2|0}} + | ||
+ | {{#var: enchantMana3|0}} + | ||
+ | {{#var: enchantMana4|0}} | ||
}} > 0 | }} > 0 | ||
| {{!}}- | | {{!}}- | ||
Line 100: | Line 128: | ||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
!Level | !Level | ||
− | {{#ifexpr: {{#expr: {{#var: enchantAtk1|0}} + <!-- checks if there | + | {{#ifexpr: {{#expr: {{#var: enchantAtk1|0}} + <!-- checks if there is any attack enchantment bonus, only displays atk column if true --> |
{{#var: enchantAtk2|0}} + | {{#var: enchantAtk2|0}} + | ||
{{#var: enchantAtk3|0}} + | {{#var: enchantAtk3|0}} + | ||
Line 107: | 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 --> | |
{{#var: enchantDef2|0}} + | {{#var: enchantDef2|0}} + | ||
{{#var: enchantDef3|0}} + | {{#var: enchantDef3|0}} + | ||
{{#var: enchantDef4|0}} | {{#var: enchantDef4|0}} | ||
}} > 0 | }} > 0 | ||
− | | !{{Emoticon|emoticon=Defend}} | + | | {{#ifexpr: {{#var: showAtkEnchant}} | ! }}!{{Emoticon|emoticon=Defend}} |
!{{Emoticon|emoticon=Defend}} (total)<!-- | !{{Emoticon|emoticon=Defend}} (total)<!-- | ||
-->{{#vardefine: showDefEnchant | 1 }} | -->{{#vardefine: showDefEnchant | 1 }} | ||
+ | }}<!-- | ||
+ | -->{{#ifexpr: {{#expr: {{#var: enchantMana1|0}} + <!-- checks if there is any mana enchantment bonus, only displays mana column if true --> | ||
+ | {{#var: enchantMana2|0}} + | ||
+ | {{#var: enchantMana3|0}} + | ||
+ | {{#var: enchantMana4|0}} | ||
+ | }} > 0 | ||
+ | | {{#ifexpr: {{#var: showAtkEnchant}} or {{#var: showDefEnchant}} | ! }}!{{Emoticon|emoticon=Mana}} | ||
+ | !{{Emoticon|emoticon=Mana}} (total)<!-- | ||
+ | -->{{#vardefine: showManaEnchant | 1 }} | ||
}} | }} | ||
{{!}}- | {{!}}- | ||
{{!}} style="text-align: center" {{!}} 1 | {{!}} style="text-align: center" {{!}} 1 | ||
{{#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 | |
− | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef1}} | {{#var: enchantDef1}} | ? }} <!-- def bonus this enchant --> | + | | {{#ifexpr: {{#var: showAtkEnchant}} | {{!}} }}{{!}} 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: showAtkEnchant}} or {{#var: showDefEnchant}} | {{!}} }}{{!}} 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" {{!}} 2 | {{!}} style="text-align: center" {{!}} 2 | ||
{{#ifexpr: {{#var: showAtkEnchant}} != 0 | {{#ifexpr: {{#var: showAtkEnchant}} != 0 | ||
− | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk2}} | {{#var: enchantAtk2}} | ? }} <!-- atk bonus this enchant --> | + | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk2}} | {{#var: enchantAtk2}} | [[??]] }} <!-- atk bonus this enchant --> |
{{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantAtk1}} |1 |0 }} and {{#if: {{#var: enchantAtk2}} |1 |0 }} <!-- total atk bonus to this level --> | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantAtk1}} |1 |0 }} and {{#if: {{#var: enchantAtk2}} |1 |0 }} <!-- total atk bonus to this level --> | ||
− | | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} }} | ? | + | | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} }} | [[??]] |
}} | }} | ||
− | }} | + | }}<!-- |
− | + | -->{{#ifexpr: {{#var: showDefEnchant}} != 0 | |
− | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef2 | + | | {{#ifexpr: {{#var: showAtkEnchant}} | {{!}} }}{{!}} 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: showAtkEnchant}} or {{#var: showDefEnchant}} | {{!}} }}{{!}} 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 --> | ||
+ | | {{#expr: {{#var: enchantMana1}} + {{#var: enchantMana2}} }} | [[??]] | ||
}} | }} | ||
}} | }} | ||
Line 145: | Line 192: | ||
{{!}} style="text-align: center" {{!}} 3 | {{!}} style="text-align: center" {{!}} 3 | ||
{{#ifexpr: {{#var: showAtkEnchant}} != 0 | {{#ifexpr: {{#var: showAtkEnchant}} != 0 | ||
− | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk3}} | {{#var: enchantAtk3}} | ? }} <!-- atk bonus this enchant --> | + | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk3}} | {{#var: enchantAtk3}} | [[??]] }} <!-- atk bonus this enchant --> |
{{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantAtk1}} |1 |0 }} and {{#if: {{#var: enchantAtk2}} |1 |0 }} and {{#if: {{#var: enchantAtk3}} |1 |0 }} <!-- total atk bonus to this level --> | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantAtk1}} |1 |0 }} and {{#if: {{#var: enchantAtk2}} |1 |0 }} and {{#if: {{#var: enchantAtk3}} |1 |0 }} <!-- total atk bonus to this level --> | ||
− | | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} }} | ? | + | | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} }} | [[??]] |
}} | }} | ||
− | }} | + | }}<!-- |
− | + | -->{{#ifexpr: {{#var: showDefEnchant}} != 0 | |
− | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef3}} | {{#var: enchantDef3}} | ? }} <!-- def bonus this enchant --> | + | | {{#ifexpr: {{#var: showAtkEnchant}} | {{!}} }}{{!}} 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: showAtkEnchant}} or {{#var: showDefEnchant}} | {{!}} }}{{!}} 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 --> | ||
+ | | {{#expr: {{#var: enchantMana1}} + {{#var: enchantMana2}} + {{#var: enchantMana3}} }} | [[??]] | ||
}} | }} | ||
}} | }} | ||
Line 159: | Line 212: | ||
{{!}} style="text-align: center" {{!}} 4 | {{!}} style="text-align: center" {{!}} 4 | ||
{{#ifexpr: {{#var: showAtkEnchant}} != 0 | {{#ifexpr: {{#var: showAtkEnchant}} != 0 | ||
− | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk4}} | {{#var: enchantAtk4}} | ? }} <!-- atk bonus this enchant --> | + | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk4}} | {{#var: enchantAtk4}} | [[??]] }} <!-- atk bonus this enchant --> |
{{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantAtk1}} |1 |0 }} and {{#if: {{#var: enchantAtk2}} |1 |0 }} and {{#if: {{#var: enchantAtk3}} |1 |0 }} and {{#if: {{#var: enchantAtk4}} |1 |0 }} <!-- total atk bonus to this level --> | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#if: {{#var: enchantAtk1}} |1 |0 }} and {{#if: {{#var: enchantAtk2}} |1 |0 }} and {{#if: {{#var: enchantAtk3}} |1 |0 }} and {{#if: {{#var: enchantAtk4}} |1 |0 }} <!-- total atk bonus to this level --> | ||
− | | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} + {{#var: enchantAtk4}} }} | ? | + | | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} + {{#var: enchantAtk4}} }} | [[??]] |
}} | }} | ||
− | }} | + | }}<!-- |
− | + | -->{{#ifexpr: {{#var: showDefEnchant}} != 0 | |
− | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef4}} | {{#var: enchantDef4}} | ? }} <!-- def bonus this enchant --> | + | | {{#ifexpr: {{#var: showAtkEnchant}} | {{!}} }}{{!}} 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: showAtkEnchant}} or {{#var: showDefEnchant}} | {{!}} }}{{!}} 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 --> | ||
+ | | {{#expr: {{#var: enchantMana1}} + {{#var: enchantMana2}} + {{#var: enchantMana3}} + {{#var: enchantMana4}} }} | [[??]] | ||
}} | }} | ||
}} | }} | ||
Line 176: | Line 235: | ||
}} | }} | ||
|- | |- | ||
− | {{#if: {{# | + | {{#if: {{GetAmmunition | source = {{#var: source}} }} | |
{{!}}Ammunition | {{!}}Ammunition | ||
− | {{!}} {{# | + | {{!}} {{GetAmmunition | source = {{#var: source}} }} |
{{!}}- | {{!}}- | ||
}} | }} |
Latest revision as of 02:13, 24 October 2019
This template is designed for being used inside Template:InfoOverview. It adds information on equippable Items to the general info overview