Difference between revisions of "PropertyExampleList"

From ChatWars Wiki
Jump to: navigation, search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
=List of all properties for items=
 
=List of all properties for items=
 
  
 
<pre>
 
<pre>
 
<nowiki>
 
<nowiki>
 
 
<!-- Set iteminfo -->
 
<!-- Set iteminfo -->
 
{{#set:
 
{{#set:
Line 11: Line 9:
 
| note=
 
| note=
  
| BoolEventItem=false
+
| BoolEventItem=
  
<!--please chose: Weapon/Cape/Protective Gear/Piece of Equipment/Recipe (Item)/Consumable/Resource/Misc-->
+
<!--please choose: Weapon/Cape/Protective Gear/Piece of Equipment/Recipe (Item)/Consumable/Resource/Misc/Special Equippable-->
 
| ItemType=
 
| ItemType=
<!--please chose: Sword/Spear/Dagger/Shield/Blunt/Helmet/Armor/Gloves/Boots-->
+
<!--please choose: Sword/Spear/Dagger/Bow/Shield/Blunt/Helmet/Armor/Gloves/Boots/Alchemy Resource/Ammunition-->
 
| ItemSubType=
 
| ItemSubType=
<!--please chose: Heavy Armor/Robe Armor/Light Armor-->
+
<!--please choose: Heavy Armor/Robe Armor/Light Armor-->
 
| ArmorClass=
 
| ArmorClass=
  
Line 30: Line 28:
 
| Luck=
 
| Luck=
  
<!--For potions, “min” for minutes, “h” for hours-->
+
<!--For potions, time in minutes-->
| BaseDuration= 0
+
| BaseDuration=
| Wrapping=0
+
| PotionEffect=
  
| LevelEquipRequirement=0
+
| Wrapping=
 +
 
 +
| LevelEquipRequirement=
 
| BoolEnchantment=
 
| BoolEnchantment=
 
<!--e.g. Type of arrows needed-->
 
<!--e.g. Type of arrows needed-->
Line 49: Line 49:
  
 
<!--Choose: Crafting (Skill)/Alchemy (Skill)-->
 
<!--Choose: Crafting (Skill)/Alchemy (Skill)-->
| SkillCraft=Crafting (Skill)
+
| SkillCraft=
 
| SkillCraftLevel=
 
| SkillCraftLevel=
 
| ManaCrafting=
 
| ManaCrafting=
Line 55: Line 55:
 
| BoolQuest=
 
| BoolQuest=
 
| PerceptionLevel=
 
| PerceptionLevel=
<!-- Minimum level players need to have not regarding perception level (eg level 40 for bauxite)
+
<!-- Minimum level players need to have not regarding perception level (eg level 40 for bauxite)-->
 
| PlayerQuestMinLevel=
 
| PlayerQuestMinLevel=
  
Line 78: Line 78:
 
| QuestForayEvening=
 
| QuestForayEvening=
 
| QuestForayNight=
 
| QuestForayNight=
 +
 +
<!-- Enchantment atk bonus (increment, not total) -->
 +
| EnchantAtk1=
 +
| EnchantAtk2=
 +
| EnchantAtk3=
 +
| EnchantAtk4=
 +
 +
<!-- Enchantment def bonus (increment, not total) -->
 +
| EnchantDef1=
 +
| EnchantDef2=
 +
| EnchantDef3=
 +
| EnchantDef4=
 
}}
 
}}
  
Line 120: Line 132:
 
  |Qty=
 
  |Qty=
 
}}
 
}}
 +
</nowiki>
 +
</pre>
 +
 +
The rule of thumb for filling in the properties is:
 +
 +
* All stats are only numbers (Attack, Defense, ...), no other characters (not "+31", but "31")
  
 +
* All properties with "Bool" in the name need a "<code>true</code>" or "<code>false</code>" (This also applies to the Quest_Forest/Swamp/Valley/Foray_Morning/Day/Evening/Night properties. This is for the drop info and indicates if the item/resource drops at this location at this time - if unknown, leave empty)
  
</nowiki>
+
* "Craftcommand" is the command that's used for crafting the item in the game, so /craft_<ID> for items and /brew_<ID> for potions
</pre>
+
 
 +
* Stats that don't apply to this item (type) should be left empty, except for things like Stamina/Inventory Increase for items (The [[Champion Sword]] page should have those properties set to 0, the [[Coke]] page should have those left empty) - when in doubt just fill it in.
 +
 
 +
* EnchantAtk/Def_X is the BONUS that you get from enchanting an item. The "X" represents which level of enchantment it is - check the [[Composite Bow]] page for a good example.
 +
 
 +
* The subobjects at the end are the ingredients for crafting this item - if the item is not craftable, leave those empty. If it IS craftable, enter in "<code>Crafting ingredient</code>" the NAME OF THE PAGE of the ingredient (should be identical to the name in the game), in "<code>Qty</code>" enter the Quantity that's needed for those items. The order is irrelevant, the [[Template:RecipeInfobox]] automatically sorts them to be first the recipe, then the parts (if applicable) and then all other ingredients first ordered by quantity, then, if identical quantities, by alphabetical order of their names. There are a bunch of those subobjects on every page, if some stay empty after filling in the recipe just leave them empty and don't remove them. (It's irrelevant but easier for the next person to just copy the entire thing and paste it to another page)
 +
 
 +
Note: All properties have at least a basic kind of error checking for invalid inputs - properties of the type "number" won't accept letters and boolean properties don't accept anything except "true" or "false". If you enter an invalid value and save the page it will show a small yellow error mark on the page which says which property has invalid values when you hover over it. Alternatively the [https://chatwars-wiki.de/index.php?title=Special:Ask&q=%5B%5BHas+processing+error+text%3A%3A%2B%5D%5D&po=%3FHas+improper+value+for%7C%3FHas+processing+error+text&p=class%3Dsortable-20wikitable-20smwtable-2Dstriped&eq=no&limit=25&bTitle=processingerrorlist&bMsg=smw-processingerrorlist-intro Processing error list] shows all errors that happened while processing queries and properties, including (but not limited to) invalid property values.
 +
Properties that accept a text where you can choose from a number of options (like [[Property:ItemType]]) have restrictions to only allow those options. If any other text is entered they will show the same error message as before on the page and in the processing error list and the value will not be stored in the property. If for any reason a new category has to be made, it has to be added in the respective property page before it can be used. (Changes to property pages might take a (long) while to apply since the wiki has to apply those changes to all pages where the property is used)
  
=Example properties=
+
=Example properties (taken from [[Champion Sword]])=
  
 
<pre>
 
<pre>
Line 131: Line 158:
 
<!-- Set iteminfo -->
 
<!-- Set iteminfo -->
 
{{#set:
 
{{#set:
| ItemID=23
+
| ItemID=w28
| CraftCommand=/craft_23
+
| CraftCommand=/craft_w28
| note=
+
| note=finished
  
 
| BoolEventItem=false
 
| BoolEventItem=false
  
<!--please chose: Weapon/Cape/Protective Gear/Piece of Equipment/Recipe (Item)/Consumable/Resource/Misc-->
+
<!--please choose: Weapon/Cape/Protective Gear/Piece of Equipment/Recipe (Item)/Consumable/Resource/Misc/Special Equippable-->
| ItemType=Resource
+
| ItemType=Weapon
<!--please chose: Sword/Spear/Dagger/Shield/Blunt/Helmet/Armor/Gloves/Boots-->
+
<!--please choose: Sword/Spear/Dagger/Shield/Blunt/Helmet/Armor/Gloves/Boots/Alchemy Resource/Ammunition-->
| ItemSubType=
+
| ItemSubType=Sword
<!--please chose: Heavy Armor/Robe Armor/Light Armor-->
+
<!--please choose: Heavy Armor/Robe Armor/Light Armor-->
 
| ArmorClass=
 
| ArmorClass=
  
 
<!--add numbers-->
 
<!--add numbers-->
| Attack=0
+
| Attack=31
 
| Defense=0
 
| Defense=0
 
| Mana=0
 
| Mana=0
| Weight=1
+
| Weight=180
 
<!--Stats of special event items/reward items-->
 
<!--Stats of special event items/reward items-->
 
| Stamina=0
 
| Stamina=0
Line 154: Line 181:
 
| Luck=0
 
| Luck=0
  
<!--For potions, “min” for minutes, “h” for hours-->
+
<!--For potions, time in minutes-->
| BaseDuration= 0
+
| BaseDuration=
| Wrapping=0
+
| PotionEffect=
 +
 
 +
| Wrapping=2
  
| LevelEquipRequirement=0
+
| LevelEquipRequirement=25
| BoolEnchantment=false
+
| BoolEnchantment=true
 
<!--e.g. Type of arrows needed-->
 
<!--e.g. Type of arrows needed-->
 
| Ammunition=
 
| Ammunition=
Line 165: Line 194:
  
 
| BoolDepositGuild=true
 
| BoolDepositGuild=true
| ShopSellPrice=
+
| ShopSellPrice=1488
 
| ShopBuyPrice=
 
| ShopBuyPrice=
  
| BoolExchange=true
+
| BoolExchange=false
| BoolAuction=false
+
| BoolAuction=true
 
| BoolCraft=true
 
| BoolCraft=true
  
 
<!--Choose: Crafting (Skill)/Alchemy (Skill)-->
 
<!--Choose: Crafting (Skill)/Alchemy (Skill)-->
 
| SkillCraft=Crafting (Skill)
 
| SkillCraft=Crafting (Skill)
| SkillCraftLevel=0
+
| SkillCraftLevel=3
| ManaCrafting=10
+
| ManaCrafting=150
  
| BoolQuest=true
+
| BoolQuest=false
| PerceptionLevel=0
+
| PerceptionLevel=
<!-- Minimum level players need to have not regarding perception level (eg level 40 for bauxite)
+
<!-- Minimum level players need to have not regarding perception level (eg level 40 for bauxite)-->
 
| PlayerQuestMinLevel=
 
| PlayerQuestMinLevel=
  
Line 186: Line 215:
 
| QuestForestDay=
 
| QuestForestDay=
 
| QuestForestEvening=
 
| QuestForestEvening=
| QuestForestNight=true
+
| QuestForestNight=
  
| QuestSwampMorning=true
+
| QuestSwampMorning=
| QuestSwampDay=true
+
| QuestSwampDay=
 
| QuestSwampEvening=
 
| QuestSwampEvening=
| QuestSwampNight=true
+
| QuestSwampNight=
  
| QuestValleyMorning=false
+
| QuestValleyMorning=
| QuestValleyDay=false
+
| QuestValleyDay=
| QuestValleyEvening=false
+
| QuestValleyEvening=
| QuestValleyNight=true
+
| QuestValleyNight=
  
 
| QuestForayMorning=
 
| QuestForayMorning=
Line 202: Line 231:
 
| QuestForayEvening=
 
| QuestForayEvening=
 
| QuestForayNight=
 
| QuestForayNight=
 +
 +
<!-- Enchantment atk bonus (increment, not total) -->
 +
| EnchantAtk1=2
 +
| EnchantAtk2=2
 +
| EnchantAtk3=2
 +
| EnchantAtk4=2
 +
 +
<!-- Enchantment def bonus (increment, not total) -->
 +
| EnchantDef1=
 +
| EnchantDef2=
 +
| EnchantDef3=
 +
| EnchantDef4=
 
}}
 
}}
  
 
{{#subobject:
 
{{#subobject:
  |Crafting ingredient=Coal
+
  |Crafting ingredient=Champion Sword Recipe
  |Qty=3
+
  |Qty=1
 
}}
 
}}
 
{{#subobject:
 
{{#subobject:
  |Crafting ingredient=Charcoal
+
  |Crafting ingredient=Champion Blade
 
  |Qty=3
 
  |Qty=3
 
}}
 
}}
 
{{#subobject:
 
{{#subobject:
  |Crafting ingredient=
+
  |Crafting ingredient=Ruby
  |Qty=
+
  |Qty=1
 
}}
 
}}
 
{{#subobject:
 
{{#subobject:
  |Crafting ingredient=
+
  |Crafting ingredient=Steel Mold
  |Qty=
+
  |Qty=3
 
}}
 
}}
 
{{#subobject:
 
{{#subobject:
  |Crafting ingredient=
+
  |Crafting ingredient=Coke
  |Qty=
+
  |Qty=41
 
}}
 
}}
 
{{#subobject:
 
{{#subobject:
  |Crafting ingredient=
+
  |Crafting ingredient=Metal Plate
  |Qty=
+
  |Qty=41
 
}}
 
}}
 
{{#subobject:
 
{{#subobject:
  |Crafting ingredient=
+
  |Crafting ingredient=Silver Alloy
  |Qty=
+
  |Qty=27
 
}}
 
}}
 
{{#subobject:
 
{{#subobject:
  |Crafting ingredient=
+
  |Crafting ingredient=Hardener
  |Qty=
+
  |Qty=3
 
}}
 
}}
 
{{#subobject:
 
{{#subobject:
Line 246: Line 287:
 
</nowiki>
 
</nowiki>
 
</pre>
 
</pre>
 +
 +
=Obsolete/Outdated properties=
 +
While working on the wiki some properties got dropped, but some may still be seen on various pages, here's a list of properties that are not used anymore:
 +
* CraftIcon
 +
 +
(A long list, I know)

Latest revision as of 08:48, 3 September 2018

List of all properties for items


<!-- Set iteminfo -->
{{#set:
| ItemID=
| CraftCommand=
| note=

| BoolEventItem=

<!--please choose: Weapon/Cape/Protective Gear/Piece of Equipment/Recipe (Item)/Consumable/Resource/Misc/Special Equippable-->
| ItemType=
<!--please choose: Sword/Spear/Dagger/Bow/Shield/Blunt/Helmet/Armor/Gloves/Boots/Alchemy Resource/Ammunition-->
| ItemSubType=
<!--please choose: Heavy Armor/Robe Armor/Light Armor-->
| ArmorClass=

<!--add numbers-->
| Attack=
| Defense=
| Mana=
| Weight=
<!--Stats of special event items/reward items-->
| Stamina=
| InventoryIncrease=
| Luck=

<!--For potions, time in minutes-->
| BaseDuration=
| PotionEffect=

| Wrapping=

| LevelEquipRequirement=
| BoolEnchantment=
<!--e.g. Type of arrows needed-->
| Ammunition=


| BoolDepositGuild=
| ShopSellPrice=
| ShopBuyPrice=

| BoolExchange=
| BoolAuction=
| BoolCraft=

<!--Choose: Crafting (Skill)/Alchemy (Skill)-->
| SkillCraft=
| SkillCraftLevel=
| ManaCrafting=

| BoolQuest=
| PerceptionLevel=
<!-- Minimum level players need to have not regarding perception level (eg level 40 for bauxite)-->
| PlayerQuestMinLevel=

<!--All QuestXXX are boolean, used for “can be found then and there”-->
| QuestForestMorning=
| QuestForestDay=
| QuestForestEvening=
| QuestForestNight=

| QuestSwampMorning=
| QuestSwampDay=
| QuestSwampEvening=
| QuestSwampNight=

| QuestValleyMorning=
| QuestValleyDay=
| QuestValleyEvening=
| QuestValleyNight=

| QuestForayMorning=
| QuestForayDay=
| QuestForayEvening=
| QuestForayNight=

<!-- Enchantment atk bonus (increment, not total) -->
| EnchantAtk1=
| EnchantAtk2=
| EnchantAtk3=
| EnchantAtk4=

<!-- Enchantment def bonus (increment, not total) -->
| EnchantDef1=
| EnchantDef2=
| EnchantDef3=
| EnchantDef4=
}}

{{#subobject:
 |Crafting ingredient=
 |Qty=
}}
{{#subobject:
 |Crafting ingredient=
 |Qty=
}}
{{#subobject:
 |Crafting ingredient=
 |Qty=
}}
{{#subobject:
 |Crafting ingredient=
 |Qty=
}}
{{#subobject:
 |Crafting ingredient=
 |Qty=
}}
{{#subobject:
 |Crafting ingredient=
 |Qty=
}}
{{#subobject:
 |Crafting ingredient=
 |Qty=
}}
{{#subobject:
 |Crafting ingredient=
 |Qty=
}}
{{#subobject:
 |Crafting ingredient=
 |Qty=
}}
{{#subobject:
 |Crafting ingredient=
 |Qty=
}}

The rule of thumb for filling in the properties is:

  • All stats are only numbers (Attack, Defense, ...), no other characters (not "+31", but "31")
  • All properties with "Bool" in the name need a "true" or "false" (This also applies to the Quest_Forest/Swamp/Valley/Foray_Morning/Day/Evening/Night properties. This is for the drop info and indicates if the item/resource drops at this location at this time - if unknown, leave empty)
  • "Craftcommand" is the command that's used for crafting the item in the game, so /craft_<ID> for items and /brew_<ID> for potions
  • Stats that don't apply to this item (type) should be left empty, except for things like Stamina/Inventory Increase for items (The Champion Sword page should have those properties set to 0, the Coke page should have those left empty) - when in doubt just fill it in.
  • EnchantAtk/Def_X is the BONUS that you get from enchanting an item. The "X" represents which level of enchantment it is - check the Composite Bow page for a good example.
  • The subobjects at the end are the ingredients for crafting this item - if the item is not craftable, leave those empty. If it IS craftable, enter in "Crafting ingredient" the NAME OF THE PAGE of the ingredient (should be identical to the name in the game), in "Qty" enter the Quantity that's needed for those items. The order is irrelevant, the Template:RecipeInfobox automatically sorts them to be first the recipe, then the parts (if applicable) and then all other ingredients first ordered by quantity, then, if identical quantities, by alphabetical order of their names. There are a bunch of those subobjects on every page, if some stay empty after filling in the recipe just leave them empty and don't remove them. (It's irrelevant but easier for the next person to just copy the entire thing and paste it to another page)

Note: All properties have at least a basic kind of error checking for invalid inputs - properties of the type "number" won't accept letters and boolean properties don't accept anything except "true" or "false". If you enter an invalid value and save the page it will show a small yellow error mark on the page which says which property has invalid values when you hover over it. Alternatively the Processing error list shows all errors that happened while processing queries and properties, including (but not limited to) invalid property values. Properties that accept a text where you can choose from a number of options (like Property:ItemType) have restrictions to only allow those options. If any other text is entered they will show the same error message as before on the page and in the processing error list and the value will not be stored in the property. If for any reason a new category has to be made, it has to be added in the respective property page before it can be used. (Changes to property pages might take a (long) while to apply since the wiki has to apply those changes to all pages where the property is used)

Example properties (taken from Champion Sword)


<!-- Set iteminfo -->
{{#set:
| ItemID=w28
| CraftCommand=/craft_w28
| note=finished

| BoolEventItem=false

<!--please choose: Weapon/Cape/Protective Gear/Piece of Equipment/Recipe (Item)/Consumable/Resource/Misc/Special Equippable-->
| ItemType=Weapon
<!--please choose: Sword/Spear/Dagger/Shield/Blunt/Helmet/Armor/Gloves/Boots/Alchemy Resource/Ammunition-->
| ItemSubType=Sword
<!--please choose: Heavy Armor/Robe Armor/Light Armor-->
| ArmorClass=

<!--add numbers-->
| Attack=31
| Defense=0
| Mana=0
| Weight=180
<!--Stats of special event items/reward items-->
| Stamina=0
| InventoryIncrease=0
| Luck=0

<!--For potions, time in minutes-->
| BaseDuration=
| PotionEffect=

| Wrapping=2

| LevelEquipRequirement=25
| BoolEnchantment=true
<!--e.g. Type of arrows needed-->
| Ammunition=


| BoolDepositGuild=true
| ShopSellPrice=1488
| ShopBuyPrice=

| BoolExchange=false
| BoolAuction=true
| BoolCraft=true

<!--Choose: Crafting (Skill)/Alchemy (Skill)-->
| SkillCraft=Crafting (Skill)
| SkillCraftLevel=3
| ManaCrafting=150

| BoolQuest=false
| PerceptionLevel=
<!-- Minimum level players need to have not regarding perception level (eg level 40 for bauxite)-->
| PlayerQuestMinLevel=

<!--All QuestXXX are boolean, used for “can be found then and there”-->
| QuestForestMorning=
| QuestForestDay=
| QuestForestEvening=
| QuestForestNight=

| QuestSwampMorning=
| QuestSwampDay=
| QuestSwampEvening=
| QuestSwampNight=

| QuestValleyMorning=
| QuestValleyDay=
| QuestValleyEvening=
| QuestValleyNight=

| QuestForayMorning=
| QuestForayDay=
| QuestForayEvening=
| QuestForayNight=

<!-- Enchantment atk bonus (increment, not total) -->
| EnchantAtk1=2
| EnchantAtk2=2
| EnchantAtk3=2
| EnchantAtk4=2

<!-- Enchantment def bonus (increment, not total) -->
| EnchantDef1=
| EnchantDef2=
| EnchantDef3=
| EnchantDef4=
}}

{{#subobject:
 |Crafting ingredient=Champion Sword Recipe
 |Qty=1
}}
{{#subobject:
 |Crafting ingredient=Champion Blade
 |Qty=3
}}
{{#subobject:
 |Crafting ingredient=Ruby
 |Qty=1
}}
{{#subobject:
 |Crafting ingredient=Steel Mold
 |Qty=3
}}
{{#subobject:
 |Crafting ingredient=Coke
 |Qty=41
}}
{{#subobject:
 |Crafting ingredient=Metal Plate
 |Qty=41
}}
{{#subobject:
 |Crafting ingredient=Silver Alloy
 |Qty=27
}}
{{#subobject:
 |Crafting ingredient=Hardener
 |Qty=3
}}
{{#subobject:
 |Crafting ingredient=
 |Qty=
}}
{{#subobject:
 |Crafting ingredient=
 |Qty=
}}

Obsolete/Outdated properties

While working on the wiki some properties got dropped, but some may still be seen on various pages, here's a list of properties that are not used anymore:

  • CraftIcon

(A long list, I know)