Difference between revisions of "Champion Sword"
Line 1: | Line 1: | ||
− | {{ | + | {{#vardefine: enchantAtk1 | {{#show: {{PAGENAME}} |?EnchantAtk1# }} }} |
+ | {{#vardefine: enchantAtk2 | {{#show: {{PAGENAME}} |?EnchantAtk2# }} }} | ||
+ | {{#vardefine: enchantAtk3 | {{#show: {{PAGENAME}} |?EnchantAtk3# }} }} | ||
+ | {{#vardefine: enchantAtk4 | {{#show: {{PAGENAME}} |?EnchantAtk4# }} }} | ||
− | + | {{#vardefine: enchantDef1 | {{#show: {{PAGENAME}} |?EnchantDef1# }} }} | |
+ | {{#vardefine: enchantDef2 | {{#show: {{PAGENAME}} |?EnchantDef2# }} }} | ||
+ | {{#vardefine: enchantDef3 | {{#show: {{PAGENAME}} |?EnchantDef3# }} }} | ||
+ | {{#vardefine: enchantDef4 | {{#show: {{PAGENAME}} |?EnchantDef4# }} }} | ||
− | + | {{#vardefine: showAtkEnchant | 0 }} | |
− | {{ | + | {{#vardefine: showDefEnchant | 0 }} |
− | + | <includeonly> | |
− | + | |Craftable | |
− | + | | {{#if: {{#show: {{PAGENAME}} |?BoolCraft }} | {{#ifeq: {{#show: {{PAGENAME}} |?BoolCraft }} | true | yes | no}} | ? }} | |
− | + | |- | |
− | + | |Tradeable (Auction) | |
− | + | | {{#if: {{#show: {{PAGENAME}} |?BoolAuction }} | {{#ifeq: {{#show: {{PAGENAME}} |?BoolAuction }} | true | yes | no}} | ? }} | |
− | + | |- | |
− | {{# | + | |Shop prices (buy / sell) |
− | | | + | | {{#if: {{#show: {{PAGENAME}} |?ShopBuyPrice }} | {{#show: {{PAGENAME}} |?ShopBuyPrice }}{{Emoticon|emoticon=Gold}} | ''Can't be bought''}} / {{#if: {{#show: {{PAGENAME}} |?ShopSellPrice }} | {{#show: {{PAGENAME}} |?ShopSellPrice }}{{Emoticon|emoticon=Gold}} | {{#if: {{#show: {{PAGENAME}} |?ShopBuyPrice }} | {{#ifexpr: {{#show: {{PAGENAME}} |?ShopBuyPrice }} < 4 | 0{{Emoticon|emoticon=Gold}} | ''Can't be sold'' }} | ''Can't be sold'' }} }} |
− | | | + | |- |
− | + | |colspan="2" align="center"|'''Stats''' | |
− | | | + | |- |
− | + | |'''Attribute''' | |
− | + | |'''Value''' | |
− | + | |- | |
− | + | |Attack | |
− | + | | +{{#if: {{#show: {{PAGENAME}} |?Attack }} | {{#show: {{PAGENAME}} |?Attack }} | ? }} {{Emoticon|emoticon=Attack}} | |
− | + | |- | |
− | | | + | |Defense |
− | + | | +{{#if: {{#show: {{PAGENAME}} |?Defense }} | {{#show: {{PAGENAME}} |?Defense }} | ? }} {{Emoticon|emoticon=Defend}} | |
− | + | |- | |
− | | | + | |Mana |
− | | | + | | +{{#if: {{#show: {{PAGENAME}} |?Mana }} | {{#show: {{PAGENAME}} |?Mana }} | ? }} {{Emoticon|emoticon=Mana}} |
− | | | + | |- |
− | | | + | {{#if: {{#show: {{PAGENAME}} |?Stamina }} | |
− | + | {{#ifeq: {{#show: {{PAGENAME}} |?Stamina }} | 0 | | | |
− | | | + | {{!}}Stamina |
− | | | + | {{!}} +{{#show: {{PAGENAME}} |?Stamina }} {{Emoticon|emoticon=Stamina}} |
− | | | + | {{!}}- |
− | + | }} | |
− | < | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
}} | }} | ||
− | + | {{#if: {{#show: {{PAGENAME}} |?InventoryIncrease }} | | |
− | {{# | + | {{#ifeq: {{#show: {{PAGENAME}} |?InventoryIncrease }} | 0 | | |
− | + | {{!}}Inventory increase | |
− | + | {{!}} +{{#show: {{PAGENAME}} |?InventoryIncrease }} {{Emoticon|emoticon=Bag}} | |
+ | {{!}}- | ||
+ | }} | ||
}} | }} | ||
− | {{# | + | {{#if: {{#show: {{PAGENAME}} |?Luck }} | |
− | + | {{#ifeq: {{#show: {{PAGENAME}} |?Luck }} | 0 | | | |
− | + | {{!}}Stamina | |
+ | {{!}} +{{#show: {{PAGENAME}} |?Luck }} {{Emoticon|emoticon=Luck}} | ||
+ | {{!}}- | ||
+ | }} | ||
}} | }} | ||
− | {{# | + | |Level Requirement |
− | + | | {{#show: {{PAGENAME}} |?LevelEquipRequirement }} {{#switch: {{#show: {{PAGENAME}} |?LevelEquipRequirement }} | 15 = ({{Emoticon|emoticon=Bookred}}) | 25 = ({{Emoticon|emoticon=Bookgreen}}) | 35 = ({{Emoticon|emoticon=Bookblue}}) | 45 = ({{Emoticon|emoticon=Bookorange}}) }} | |
− | + | |- | |
− | }} | + | |Enchantment Slot |
− | {{# | + | | {{#ifeq: {{#show: {{PAGENAME}} |?BoolEnchantment }} | true |
− | + | | yes {{#switch: {{#show: {{PAGENAME}} |?LevelEquipRequirement }} | |
− | + | | 15 = ({{Emoticon|emoticon=Bookred}}) | |
− | }} | + | | 25 = ({{Emoticon|emoticon=Bookgreen}}) |
− | {{# | + | | 35 = ({{Emoticon|emoticon=Bookblue}}) |
− | + | | 45 = ({{Emoticon|emoticon=Bookorange}}) | |
− | + | }} | |
− | }} | + | {{#ifexpr: {{#expr: {{#var: enchantAtk1|0}} + <!-- checks if this should be displayed at all (if any of the enchantment values are != 0--> |
− | {{# | + | {{#var: enchantAtk2|0}} + |
− | + | {{#var: enchantAtk3|0}} + | |
− | + | {{#var: enchantAtk4|0}} + | |
− | }} | + | {{#var: enchantDef1|0}} + |
− | {{# | + | {{#var: enchantDef2|0}} + |
− | + | {{#var: enchantDef3|0}} + | |
− | + | {{#var: enchantDef4|0}} | |
− | }} | + | }} > 0 |
− | {{# | + | | {{!}}- |
− | + | {{!}}Enchant Levels | |
− | + | {{!}} | |
− | }} | + | {{{!}} class="wikitable" |
− | {{# | + | !Level |
− | + | {{#ifexpr: {{#expr: {{#var: enchantAtk1}} + <!-- checks if there are any attack enchantment bonus, only displays atk column if true --> | |
− | + | {{#var: enchantAtk2}} + | |
− | }} | + | {{#var: enchantAtk3}} + |
− | {{# | + | {{#var: enchantAtk4}} |
− | + | }} > 0 | |
− | + | | !{{Emoticon|emoticon=Attack}} | |
+ | !{{Emoticon|emoticon=Attack}} (total)<!-- | ||
+ | -->{{#vardefine: showAtkEnchant | 1 }} | ||
+ | }} | ||
+ | {{#ifexpr: {{#expr: {{#var: enchantDef1}} + <!-- checks if there are any defense enchantment bonus, only displays def column if true --> | ||
+ | {{#var: enchantDef2}} + | ||
+ | {{#var: enchantDef3}} + | ||
+ | {{#var: enchantDef4}} | ||
+ | }} > 0 | ||
+ | | !{{Emoticon|emoticon=Defend}} | ||
+ | !{{Emoticon|emoticon=Defend}} (total)<!-- | ||
+ | -->{{#vardefine: showDefEnchant | 1 }} | ||
+ | }} | ||
+ | {{!}}- | ||
+ | {{!}} style="text-align: center" {{!}} 1 | ||
+ | {{#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}} | ? }} <!-- total atk bonus to this level --> | ||
+ | }} | ||
+ | {{#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}} | ? }} <!-- total def bonus to this level --> | ||
+ | }} | ||
+ | {{!}}- | ||
+ | {{!}} style="text-align: center" {{!}} 2 | ||
+ | {{#ifexpr: {{#var: showAtkEnchant}} != 0 | ||
+ | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk2|0}} | {{#var: enchantAtk2}} | ? }} <!-- atk bonus this enchant --> | ||
+ | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#var: enchantAtk1|0}} and {{#var: enchantAtk2|0}} | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} }} | ? }} <!-- total atk bonus to this level --> | ||
+ | }} | ||
+ | {{#ifexpr: {{#var: showDefEnchant}} != 0 | ||
+ | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef2|0}} | {{#var: enchantDef2}} | ? }} <!-- def bonus this enchant --> | ||
+ | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#var: enchantDef1|0}} and {{#var: enchantDef2|0}} | {{#expr: {{#var: enchantDef1}} + {{#var: enchantDef2}} }} | ? }} <!-- total def bonus to this level --> | ||
+ | }} | ||
+ | {{!}}- | ||
+ | {{!}} style="text-align: center" {{!}} 3 | ||
+ | {{#ifexpr: {{#var: showAtkEnchant}} != 0 | ||
+ | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk3|0}} | {{#var: enchantAtk3}} | ? }} <!-- atk bonus this enchant --> | ||
+ | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#var: enchantAtk1|0}} and {{#var: enchantAtk2|0}} and {{#var: enchantAtk3|0}} | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} }} | ? }} <!-- total atk bonus to this level --> | ||
+ | }} | ||
+ | {{#ifexpr: {{#var: showDefEnchant}} != 0 | ||
+ | | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#var: enchantDef3|0}} | {{#var: enchantDef3}} | ? }} <!-- def bonus this enchant --> | ||
+ | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#var: enchantDef1|0}} and {{#var: enchantDef2|0}} and {{#var: enchantDef3|0}} | {{#expr: {{#var: enchantDef1}} + {{#var: enchantDef2}} + {{#var: enchantDef3}} }} | ? }} <!-- total def bonus to this level --> | ||
+ | }} | ||
+ | {{!}}- | ||
+ | {{!}} style="text-align: center" {{!}} 4 | ||
+ | {{#ifexpr: {{#var: showAtkEnchant}} != 0 | ||
+ | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantAtk4|0}} | {{#var: enchantAtk4}} | ? }} <!-- atk bonus this enchant --> | ||
+ | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#var: enchantAtk1|0}} and {{#var: enchantAtk2|0}} and {{#var: enchantAtk3|0}} and {{#var: enchantAtk4|0}} | {{#expr: {{#var: enchantAtk1}} + {{#var: enchantAtk2}} + {{#var: enchantAtk3}} + {{#var: enchantAtk4}} }} | ? }} <!-- total atk bonus to this level --> | ||
+ | }} | ||
+ | {{#ifexpr: {{#var: showDefEnchant}} != 0 | ||
+ | | {{!}} style="text-align: center" {{!}} +{{#if: {{#var: enchantDef4}} | {{#var: enchantDef4}} | ? }} <!-- def bonus this enchant --> | ||
+ | {{!}} style="text-align: center" {{!}} +{{#ifexpr: {{#var: enchantDef1|0}} and {{#var: enchantDef2|0}} and {{#var: enchantDef3|0}} and {{#var: enchantDef4|0}} | {{#expr: {{#var: enchantDef1}} + {{#var: enchantDef2}} + {{#var: enchantDef3}} + {{#var: enchantDef4}} }} | ? }} <!-- total def bonus to this level --> | ||
+ | }} | ||
+ | {{!}}- | ||
+ | {{!}}} | ||
+ | }} | ||
+ | | no | ||
+ | }} | ||
+ | |- | ||
+ | {{#if: {{#show: {{PAGENAME}} |?Ammunition }} | | ||
+ | {{!}}Ammunition | ||
+ | {{!}} {{#show: {{PAGENAME}} |?Ammunition }} | ||
+ | {{!}}- | ||
}} | }} | ||
+ | </includeonly> | ||
+ | |||
+ | <noinclude> | ||
+ | This template is designed for being used inside [[Template:InfoOverview]]. It adds information on equippable Items to the general info overview | ||
+ | [[Category:Template]] | ||
+ | </noinclude> |
Revision as of 04:18, 12 August 2018
This template is designed for being used inside Template:InfoOverview. It adds information on equippable Items to the general info overview