Difference between revisions of "Template:Item"

From ChatWars Wiki
Jump to: navigation, search
(removed some empty lines)
m
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#vardefine: source|{{ReplaceNumericCharEncoding|string={{PAGENAME}} }} }}{{#ifeq: {{#show: {{#var: source}} |?BoolCraft}} | true | {{RecipeInfobox|source={{#var: source}} }} }}
+
{{#vardefine: source|{{ReplaceNumericCharEncoding|string={{PAGENAME}} }} }}{{#ifeq: {{#show: {{#var: source}} |?BoolCraft}} | true | {{RecipeInfobox|source={{#var: source}} }} }}<!--
  
{{#ifeq: {{#show: {{#var: source}} |?ItemSubType#}} | Alchemy Resource
+
-->{{#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:Alchemy Resource}}
 
   | {{:Category:{{#show: {{#var: source}} |?ItemType#}}}}  
 
   | {{:Category:{{#show: {{#var: source}} |?ItemType#}}}}  
}} {{{FreeTextOverview|}}}
+
}} {{{FreeTextOverview|}}}-->
 +
 
 +
__TOC__
 +
{{#if: {{#show: {{#var: source}} |?DetailedDescription}} | <br><br>''{{#show: {{#var: source}} |?DetailedDescription}}'' }}
  
 
=Properties=
 
=Properties=
Line 24: Line 32:
 
           }}
 
           }}
 
}}
 
}}
 
 
{{#ifeq: {{#show: {{#var: source}} |?BoolCraft}} | true |
 
{{#ifeq: {{#show: {{#var: source}} |?BoolCraft}} | true |
 
=Crafting=
 
=Crafting=
The {{#var: source}} can be crafted with the [[Skill|skill]] {{#show: {{#var: source}} |?SkillCraft}} on level {{#show: {{#var: source}} |?SkillCraftLevel}}.
+
The {{#var: source}} can be crafted with the [[Skill|skill]] {{#show: {{#var: source}} |?SkillCraft}} on level {{#show: {{#var: source}} |?SkillCraftLevel}}.<br>
 
{{#ifexpr: {{#show: {{#var: source}} |?SkillCraftLevel}} = 0
 
{{#ifexpr: {{#show: {{#var: source}} |?SkillCraftLevel}} = 0
 
   | This is possible for every player above level 10.
 
   | This is possible for every player above level 10.
 
   | {{#switch: {{#show: {{#var: source}} |?SkillCraft#}}
 
   | {{#switch: {{#show: {{#var: source}} |?SkillCraft#}}
       | 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.
+
       | 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. <!--
 +
                      -->{{#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
 
       | 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 [[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.
Line 37: Line 47:
 
                           }}
 
                           }}
 
     }}
 
     }}
}}
+
}}<!--
  
{{#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-->
+
-->{{#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}}<br><br>
 
                                     | <h2>Bill of Materials</h2>{{#var: BoMText}}<br><br>
 
                                   }}
 
                                   }}
}}
+
}}<!--
{{#switch: {{#show: {{#var: source}} |?ItemType#}}
+
-->{{#switch: {{#show: {{#var: source}} |?ItemType#}}
 
   | Resource = <h1>Usage List</h1>{{UsageList}}
 
   | 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.  
 
   | 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.  
Line 53: Line 63:
 
{{#set:
 
{{#set:
 
| ItemID={{{ItemID|[[??]]}}}
 
| ItemID={{{ItemID|[[??]]}}}
| CraftCommand={{{CraftCommand|}}}
+
| InGameName={{{InGameName|[[??]]}}}
 +
| CraftCommand={{{CraftCommand|[[??]]}}}
 +
| DetailedDescription={{{DetailedDescription|}}}
 
| note={{{note|}}}
 
| note={{{note|}}}
  
Line 86: Line 98:
 
<!--e.g. Type of arrows needed-->
 
<!--e.g. Type of arrows needed-->
 
| Ammunition={{{Ammunition|}}}
 
| Ammunition={{{Ammunition|}}}
 
  
 
| BoolDepositGuild={{{BoolDepositGuild|}}}
 
| BoolDepositGuild={{{BoolDepositGuild|}}}
Line 95: Line 106:
 
| BoolAuction={{{BoolAuction|}}}
 
| BoolAuction={{{BoolAuction|}}}
 
| BoolCraft={{{BoolCraft|}}}
 
| BoolCraft={{{BoolCraft|}}}
 +
| BoolRecipeIncomplete={{{BoolRecipeIncomplete|}}}
  
 
<!--Choose: Crafting (Skill)/Alchemy (Skill)-->
 
<!--Choose: Crafting (Skill)/Alchemy (Skill)-->

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