Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Item/doc: Difference between revisions

Template page
26nightmare (talk | contribs)
m Protected "Template:Item/doc": Well, its the explaination of the most important template. Wonder why its not. (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite))
NekoPillow (talk | contribs)
No edit summary
Line 1: Line 1:
== Description ==
==='''Description:'''===
Display a infobox showing the details of an item in an article. If you found a page with missing value or infobox please add a <nowiki>{{Stub}}</nowiki> Template to it.


The '''Item''' template is for use on item pages to give a quick introduction to vital statistics about the item.
==='''Usage:'''===
<nowiki>{</nowiki>{Item
| id = <span style='background:#FF9999'>Item ID</span>
| name = <span style='background:#FF9999'>Item Name</span>
| rarity = <span style='background:#FF9999'>Rarity</span>
| actionType = <span style='background:#FF9999'>Item Category</span>
| editableType = <span style='background:#FF9999'>Item Properties</span>
| spreadType = <span style='background:#FF9999'>Spread Type</span>
| clothingType = <span style='background:#FF9999'>Clothing Type</span>
| collisionType = <span style='background:#FF9999'>Collision Type</span>
| hardness = <span style='background:#FF9999'>Item Hardness</span>
| growTime = <span style='background:#FF9999'>Grow Time</span>
| seedStyle = <span style='background:#FF9999'>Styles</span>
| seedColor = #<span style='background:#FF9999'>Colors</span>
| overlayColor = #<span style='background:#FF9999'>Colors</span>
<span style='background:#BBBBFF'>| image = <span style='background:#FF9999'>Image Name</span>
| imageCaption = <span style='background:#FF9999'>Image Description</span>
| imageWidth = <span style='background:#FF9999'>Image Size (Width)</span></span>
}}


== Usage ==
==='''Example:'''===
 
Place the infobox as the first element in a page describing an item. These core parameters should almost always be supplied:
<pre>
{{Item
|id=The id number of the item, should always be a multiple of 2
|name=The name of the item
|rarity=The item's rarity
|editableType=The item's editable type (see below)
|actionType=The item's action type (see below)
}}
</pre>
 
To add an image, use these parameters:
<pre>
|image=The filename of the image (e.g. Filename.png)
|imageCaption=A caption to display under the image (optional)
|imageWidth=A specific width to make the image (optional)
</pre>
 
Some extra statistics can also be displayed if available (all optional):
<pre>
|itemCategory=The item's category (see below)
|dropChance=A number in the 0-8 range specifying the drop frequency
|spreadType=A number in the 1-6 range specifying the spread type (see below)
|collisionType=A number in the 0-3 range specifying the collision type (see below)
|clothingType=A number in the 0-6 range specifying the clothing type (see below)
</pre>
 
For items which are growable, seed info can also be provided:
<pre>
|ingredient1=The name of the first ingredient of the item
|ingredient2=The name of the second ingredient of the item
|growTime=How long the seed takes to grow
|seedStyle=A seed style specification, in the format 0/0/0/0 (optional)
|seedColor=The base color of the seed, in the format #000000 (optional)
|overlayColor=The overlay color of the seed, in the format #000000 (optional)
</pre>
 
== Special Values ==
For a variety of the parameters discussed above, it is ideal that specific id numbers are used in place of full descriptions in case their description needs to be changed. If you don't know the id number for a property on a specific item, you can look it up on the [http://wombat.platymuus.com/growtopia/itemdb.php item database]. PLease note that this has not been updated in more than 2 years, so it might be outdated.
 
Specific documentation on these id numbers is forthcoming.
 
== Examples ==
Most item pages should feature an example of this template.
 
{{Item
|id=4
|name=Lava
|rarity=1
|editableType=0
|actionType=16
|dropChance=8
|spreadType=5
|collisionType=1
}}
<pre>
{{Item
|id=4
|name=Lava
|rarity=1
|editableType=0
|actionType=16
|dropChance=8
|spreadType=5
|collisionType=1
}}
</pre>
<div style="clear:both"></div>
{{Item
|id=42
|name=Boots
|rarity=5
|editableType=4
|actionType=20
|dropChance=0
|collisionType=1
|clothingType=3
|ingredient1=Rock
|ingredient2=Black Block
|growTime=4m 35s
|seedStyle=5/10/5/2
|seedColor=#3b3b3b
|overlayColor=#484848
}}
<pre>
{{Item
{{Item
|id=42
| id = 242
|name=Boots
| name = World Lock
|rarity=5
| rarity = 999
|editableType=4
| actionType = 3
|actionType=20
| editableType = 526
|dropChance=0
| spreadType = 1
|collisionType=1
| clothingType = 0
|clothingType=3
| collisionType = 1
|ingredient1=Rock
| hardness = 252
|ingredient2=Black Block
| growTime = 1h 0m 0s
|growTime=4m 35s
| seedStyle = 9 / 2 / 1 / 2
|seedStyle=5/10/5/2
| seedColor = #CF410E
|seedColor=#3b3b3b
| overlayColor = #4EF44C
|overlayColor=#484848
}}
}}
</pre>

Revision as of 05:16, 6 September 2017

Description:

Display a infobox showing the details of an item in an article. If you found a page with missing value or infobox please add a {{Stub}} Template to it.

Usage:

{{Item
| id = Item ID
| name = Item Name
| rarity = Rarity
| actionType = Item Category
| editableType = Item Properties
| spreadType = Spread Type
| clothingType = Clothing Type
| collisionType = Collision Type
| hardness = Item Hardness
| growTime = Grow Time
| seedStyle = Styles
| seedColor = #Colors
| overlayColor = #Colors
| image = Image Name
| imageCaption = Image Description
| imageWidth = Image Size (Width)
}}

Example:

Locks an entire world. If you have 100 World Locks, you can tap them in your inventory to combine them into a Diamond Lock. It does the same thing, but it's shinier.
Properties
This item never drops any seeds.
This item has special properties you can adjust with the Wrench.
This item can't be destroyed - smashing it will return it to your backpack if you have room!
A lock makes it so only you (and designated friends) can edit an area.
Data
Typehttps://cdn.growtopiawiki.com/uploads/8/8f/ItemSprites.png Lock - Foreground
ChiUnknown
Texture Typehttps://cdn.growtopiawiki.com/uploads/5/54/TextureTypeSprite.png Single
Collision Typehttps://cdn.growtopiawiki.com/uploads/e/e2/CollisionTypeSprite.png Full Collision
Hardnesshttps://cdn.growtopiawiki.com/uploads/8/8f/ItemSprites.png 42 Hits
https://cdn.growtopiawiki.com/uploads/8/8f/ItemSprites.png 32 Hits
Restores after 5s of inactivity.
Seed Colorhttps://cdn.growtopiawiki.com/uploads/9/9c/SeedSprites.png
#FFF115
#D3980B
Grow Timehttps://cdn.growtopiawiki.com/uploads/e/e5/TreeSprites.png 1h 0m 0s
Default Gems Drophttps://cdn.growtopiawiki.com/uploads/8/8f/ItemSprites.png N/A
Paint Preview

id:Item/doc