Difference between revisions of "Template:Item"

From ChatWars Wiki
Jump to: navigation, search
m
 
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifeq: {{#show: {{PAGENAME}} |?BoolCraft}} | true | {{RecipeInfobox}} }}
+
{{#vardefine: source|{{ReplaceNumericCharEncoding|string={{PAGENAME}} }} }}{{#ifeq: {{#show: {{#var: source}} |?BoolCraft}} | true | {{RecipeInfobox|source={{#var: source}} }} }}<!--
  
{{:Category:{{#show: {{PAGENAME}} |?ItemType#}}}} {{{FreeTextOverview|}}}
+
-->{{#switch: {{#show: {{#var: source}} |?ItemSubType#}}
 +
  | Alchemy Resource = {{:Category:Alchemy Resource}}
 +
  | Scroll = {{:Category:Scroll}}
 +
  | {{:Category:{{#show: {{#var: source}} |?ItemType#}}}} <!--default-->
 +
}} {{{FreeTextOverview|}}}
 +
<!--{{#ifeq: {{#show: {{#var: source}} |?ItemSubType#}} | Alchemy Resource
 +
  | {{:Category:Alchemy Resource}}
 +
  | {{:Category:{{#show: {{#var: source}} |?ItemType#}}}}
 +
}} {{{FreeTextOverview|}}}-->
 +
 
 +
__TOC__
 +
{{#if: {{#show: {{#var: source}} |?DetailedDescription}} | <br><br>''{{#show: {{#var: source}} |?DetailedDescription}}'' }}
  
 
=Properties=
 
=Properties=
{{#ifeq: {{#show: {{PAGENAME}} |?BoolQuest}} | true
+
{{#ifeq: {{#show: {{#var: source}} |?BoolQuest}} | true
   | ''For droprate research please consult [[Talk:{{PAGENAME}}]].''
+
   | ''For droprate research please consult [[Talk:{{#var: source}}]].''
 
}}
 
}}
{{InfoOverview}}
+
{{InfoOverview|source={{#var: source}} }}
  
{{#ifeq: {{#expr: {{#if: {{#show: {{PAGENAME}} |?ShopBuyPrice}}
+
{{#switch: {{#show: {{#var: source}} |?ItemType#}}
                    | 0
+
  | Weapon
                    | 1
+
  | Protective Gear
                  }} and {{#ifeq: {{#show: {{PAGENAME}} |?BoolAuction}} | true | 1 | 0 }}
+
  | Cape = {{#ifeq: {{#expr: {{#if: {{#show: {{#var: source}} |?ShopBuyPrice}}
        }} | 1
+
                              | 0
  | =Acquisition=
+
                              | 1
The {{PAGENAME}} is not sold in the [[Shop|Castle Shop]], it can only be crafted with the [[Recipe|recipe]] and the items for the recipe or by buying the finished item via [[Auction|auctions]] from other players for [[Pouch of Gold|Pouches of Gold]].
+
                            }} and {{#ifeq: {{#show: {{#var: source}} |?BoolAuction}} | true | 1 | 0 }}
 +
                    }} | 1
 +
            | =Acquisition=
 +
The {{#var: source}} is not sold in the [[Shop|Castle Shop]]. It can be obtained by buying it via the [[Auction]] from other players for [[Pouch of Gold|Pouches of Gold]]{{#ifeq: {{#show: {{#var: source}} |?BoolCraft}} | true | <nowiki> </nowiki>or by crafting it }}.
 +
          }}
 
}}
 
}}
 
+
{{#ifeq: {{#show: {{#var: source}} |?BoolCraft}} | true |
{{#ifeq: {{#show: {{PAGENAME}} |?BoolCraft}} | true |
 
 
=Crafting=
 
=Crafting=
The {{PAGENAME}} can be crafted with the [[Skill|skill]] {{#show: {{PAGENAME}} |?SkillCraft}} on level {{#show: {{PAGENAME}} |?SkillCraftLevel}}.
+
The {{#var: source}} can be crafted with the [[Skill|skill]] {{#show: {{#var: source}} |?SkillCraft}} on level {{#show: {{#var: source}} |?SkillCraftLevel}}.<br>
{{#switch: {{#show: {{PAGENAME}} |?SkillCraft#}}
+
{{#ifexpr: {{#show: {{#var: source}} |?SkillCraftLevel}} = 0
  | Alchemy (Skill) = This is only possible for [[Alchemist|alchemists]], so it requires either being an Alchemist with this skill, or buying it from a [[Master Shop|Alchemy Shop]] with the complete list of necessary items in the inventory.
+
  | This is possible for every player above level 10.
  | Crafting (Skill) = {{#ifexpr: {{#show: {{PAGENAME}} |?SkillCraftLevel}} > 2
+
  | {{#switch: {{#show: {{#var: source}} |?SkillCraft#}}
                        | This is only possible for [[Blacksmith|blacksmiths]], so it requires either being a Blacksmith with this skill or buying it from a [[Master Shop|Blacksmith Shop]] with the complete list of necessary items in the inventory.
+
      | Alchemy (Skill) = This is only possible for [[Alchemist|alchemists]], so it requires either being an Alchemist with this skill, or buying it from an [[Master Shop|Alchemy Shop]] with the complete list of necessary items in the inventory. <!--
                        | This is only possible for [[Master|Masters]] at or above level 14 and all following classes. [[Esquire|Esquires]] need to buy it from a [[Master Shop|Blacksmith Shop]] with the complete list of necessary items in the inventory{{#ifeq: {{#show: {{PAGENAME}} |?BoolExchange}} | true | <nowiki> </nowiki>or buy it from the [[Exchange]]}}.
+
                      -->{{#if: {{#pos: {{#ask: [[-Has subobject::{{PAGENAME}}]] [[Personalized::Yes]] }} | {{PAGENAME}} }}
                      }}
+
                            | Additionally, this item contains personalized ingredients. The exact ingredients needed differ from player to player and are chosen from a small list of possible options. The easiest way to find out which resources someone needs, is to try to buy the item from an [[Master Shop|Alchemy Shop]] and note down the list of missing resources.
 +
                          }}
 +
      | Crafting (Skill) = {{#ifexpr: {{#show: {{#var: source}} |?SkillCraftLevel}} > 2
 +
                            | This is only possible for [[Blacksmith|blacksmiths]], so it requires either being a Blacksmith with this skill or buying it from a [[Master Shop|Blacksmith Shop]] with the complete list of necessary items in the inventory.
 +
                            | This is only possible for [[Master|Masters]] at or above level 14 and all following classes. [[Esquire|Esquires]] need to buy it from a [[Master Shop|Blacksmith Shop]] with the complete list of necessary items in the inventory.
 +
                          }}
 +
    }}
 +
}}<!--
  
{{#vardefine: BoMText | {{BoM}} }} {{#if: {{#pos: {{#var: BoMText}}
+
-->{{#vardefine: BoMText | {{BoM}} }} {{#if: {{#pos: {{#var: BoMText}}<!--checks if BoM would have enough depth to make sense (at least 1 recipe iteration deep) and only displays it if that's the case-->
 
                                             | **
 
                                             | **
 
                                           }}
 
                                           }}
                                     | <h2>Bill of Materials</h2>{{#var: BoMText}}
+
                                     | <h2>Bill of Materials</h2>{{#var: BoMText}}<br><br>
 
                                   }}
 
                                   }}
}}
+
}}<!--
 +
-->{{#switch: {{#show: {{#var: source}} |?ItemType#}}
 +
  | Resource = <h1>Usage List</h1>{{UsageList}}
 +
  | Recipe (Item) = If the {{#var: source}} is in the player's inventory, the crafting recipe can be shown in the game with <code>/view_{{#show: {{#var: source}} |?ItemID}}</code>. Crafting the item consumes the recipe.
 +
}}<!--
  
 
+
Set iteminfo -->
{{#switch: {{#show: {{PAGENAME}} |?ItemType#}}
 
  | Resource | Piece of Equipment | Recipe (Item) = <h1>Usage List</h1>{{UsageList}}
 
}}
 
 
 
 
 
<!-- Set iteminfo -->
 
 
{{#set:
 
{{#set:
 
| ItemID={{{ItemID|[[??]]}}}
 
| ItemID={{{ItemID|[[??]]}}}
| CraftCommand={{{CraftCommand|}}}
+
| InGameName={{{InGameName|[[??]]}}}
 +
| CraftCommand={{{CraftCommand|[[??]]}}}
 +
| DetailedDescription={{{DetailedDescription|}}}
 
| note={{{note|}}}
 
| note={{{note|}}}
  
 
| BoolEventItem={{{BoolEventItem|false}}}
 
| BoolEventItem={{{BoolEventItem|false}}}
 +
| Event={{{Event|}}}
  
 
<!--please choose: Weapon/Cape/Protective Gear/Piece of Equipment/Recipe (Item)/Consumable/Resource/Misc/Special Equippable-->
 
<!--please choose: Weapon/Cape/Protective Gear/Piece of Equipment/Recipe (Item)/Consumable/Resource/Misc/Special Equippable-->
Line 76: Line 98:
 
<!--e.g. Type of arrows needed-->
 
<!--e.g. Type of arrows needed-->
 
| Ammunition={{{Ammunition|}}}
 
| Ammunition={{{Ammunition|}}}
 
  
 
| BoolDepositGuild={{{BoolDepositGuild|}}}
 
| BoolDepositGuild={{{BoolDepositGuild|}}}
Line 85: Line 106:
 
| BoolAuction={{{BoolAuction|}}}
 
| BoolAuction={{{BoolAuction|}}}
 
| BoolCraft={{{BoolCraft|}}}
 
| BoolCraft={{{BoolCraft|}}}
 +
| BoolRecipeIncomplete={{{BoolRecipeIncomplete|}}}
  
 
<!--Choose: Crafting (Skill)/Alchemy (Skill)-->
 
<!--Choose: Crafting (Skill)/Alchemy (Skill)-->
Line 128: Line 150:
 
| EnchantDef3={{{EnchantDef3|}}}
 
| EnchantDef3={{{EnchantDef3|}}}
 
| EnchantDef4={{{EnchantDef4|}}}
 
| EnchantDef4={{{EnchantDef4|}}}
}}
 
  
{{#subobject:
+
<!-- Enchantment mana bonus (increment, not total) -->
|Crafting ingredient={{{Ingredient1|}}}
+
| EnchantMana1={{{EnchantMana1|}}}
|Qty={{{Qty1|}}}
+
| EnchantMana2={{{EnchantMana2|}}}
}}<!--
+
| EnchantMana3={{{EnchantMana3|}}}
-->{{#subobject:
+
| EnchantMana4={{{EnchantMana4|}}}
|Crafting ingredient={{{Ingredient2|}}}
 
|Qty={{{Qty2|}}}
 
}}<!--
 
-->{{#subobject:
 
|Crafting ingredient={{{Ingredient3|}}}
 
|Qty={{{Qty3|}}}
 
}}<!--
 
-->{{#subobject:
 
|Crafting ingredient={{{Ingredient4|}}}
 
|Qty={{{Qty4|}}}
 
}}<!--
 
-->{{#subobject:
 
|Crafting ingredient={{{Ingredient5|}}}
 
|Qty={{{Qty5|}}}
 
}}<!--
 
-->{{#subobject:
 
|Crafting ingredient={{{Ingredient6|}}}
 
|Qty={{{Qty6|}}}
 
}}<!--
 
-->{{#subobject:
 
|Crafting ingredient={{{Ingredient7|}}}
 
|Qty={{{Qty7|}}}
 
}}<!--
 
-->{{#subobject:
 
|Crafting ingredient={{{Ingredient8|}}}
 
|Qty={{{Qty8|}}}
 
}}<!--
 
-->{{#subobject:
 
|Crafting ingredient={{{Ingredient9|}}}
 
|Qty={{{Qty9|}}}
 
}}<!--
 
-->{{#subobject:
 
|Crafting ingredient={{{Ingredient10|}}}
 
|Qty={{{Qty10|}}}
 
 
}}
 
}}

Latest revision as of 21:13, 2 October 2020

{{:Category:}}

Contents


Properties

Properties of Item
Identifier code
Type ,
Weight
Depositable in Guild no
Event item no