Difference between revisions of "Template:Item"

From ChatWars Wiki
Jump to: navigation, search
Line 9: Line 9:
 
{{InfoOverview}}
 
{{InfoOverview}}
  
{{#ifeq: {{#expr: {{#if: {{#show: {{PAGENAME}} |?ShopBuyPrice}}
+
{{#switch: {{#show: {{PAGENAME}} |?ItemType#}}
                    | 0
+
  | Weapon
                    | 1
+
  | Protective Gear
                  }} and {{#ifeq: {{#show: {{PAGENAME}} |?BoolAuction}} | true | 1 | 0 }}
+
  | Cape = {{#ifeq: {{#expr: {{#if: {{#show: {{PAGENAME}} |?ShopBuyPrice}}
        }} | 1
+
                              | 0
  | =Acquisition=
+
                              | 1
 +
                            }} and {{#ifeq: {{#show: {{PAGENAME}} |?BoolAuction}} | true | 1 | 0 }}
 +
                    }} | 1
 +
            | =Acquisition=
 
The {{PAGENAME}} 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: {{PAGENAME}} |?BoolCraft}} | true | <nowiki> </nowiki>or by crafting with the [[Recipe|recipe]]}}.
 
The {{PAGENAME}} 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: {{PAGENAME}} |?BoolCraft}} | true | <nowiki> </nowiki>or by crafting with the [[Recipe|recipe]]}}.
 +
          }}
 
}}
 
}}
  
Line 32: Line 36:
 
}}
 
}}
  
{{#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-->
 
                                             | **
 
                                             | **
 
                                           }}
 
                                           }}

Revision as of 17:18, 11 October 2018


{{:Category:}}

Properties

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