Difference between revisions of "Template:ItemPropertiesInfoBox"
(bug fixes) |
(replaced pagename reference with variable call to circumvent bug in mediawiki) |
||
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: showAtkEnchant | 0 }} | {{#vardefine: showAtkEnchant | 0 }} | ||
Line 13: | Line 15: | ||
<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: {{ | + | | {{#show: {{#var: source}} |?ShopBuyPrice }}{{Emoticon|emoticon=Gold}} |
| ''Can't be bought'' | | ''Can't be bought'' | ||
}} / <!-- | }} / <!-- | ||
− | -->{{#if: {{#show: {{ | + | -->{{#if: {{#show: {{#var: source}} |?ShopSellPrice}} |
− | | {{#show: {{ | + | | {{#show: {{#var: source}} |?ShopSellPrice }}{{Emoticon|emoticon=Gold}} |
− | | {{#if: {{#show: {{ | + | | {{#if: {{#show: {{#var: source}} |?ShopBuyPrice }} |
− | | {{#ifexpr: {{#show: {{ | + | | {{#ifexpr: {{#show: {{#var: source}} |?ShopBuyPrice }} < 4 |
| 0{{Emoticon|emoticon=Gold}} | | 0{{Emoticon|emoticon=Gold}} | ||
| ''Can't be sold'' | | ''Can't be sold'' | ||
Line 40: | Line 42: | ||
|- | |- | ||
|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 78: | Line 80: | ||
|?ItemSubType# | |?ItemSubType# | ||
}} | }} | ||
− | | Protective Gear = {{#if: {{#show: {{ | + | | Protective Gear = {{#if: {{#show: {{#var: source}} |?ArmorClass# }} |
− | | {{#ask: [[{{ | + | | {{#ask: [[{{#var: source}}]] |
|mainlabel=- | |mainlabel=- | ||
|headers=hide | |headers=hide | ||
Line 92: | Line 94: | ||
|- | |- | ||
|Level Requirement | |Level Requirement | ||
− | | {{#show: {{ | + | | {{#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 192: | Line 194: | ||
}} | }} | ||
|- | |- | ||
− | {{#if: {{#show: {{ | + | {{#if: {{#show: {{#var: source}} |?Ammunition }} | |
{{!}}Ammunition | {{!}}Ammunition | ||
− | {{!}} {{#show: {{ | + | {{!}} {{#show: {{#var: source}} |?Ammunition }} |
{{!}}- | {{!}}- | ||
}} | }} |
Revision as of 10:48, 22 October 2018
This template is designed for being used inside Template:InfoOverview. It adds information on equippable Items to the general info overview