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
I've written documentation. Astounding!
 
m Fixed "Seed" redundancy
Line 82: Line 82:
|collisionType=1
|collisionType=1
|clothingType=3
|clothingType=3
|ingredient1=Rock Seed
|ingredient1=Rock
|ingredient2=Black Block Seed
|ingredient2=Black Block
|growTime=4m 35s
|growTime=4m 35s
|seedStyle=5/10/5/2
|seedStyle=5/10/5/2
Line 99: Line 99:
|collisionType=1
|collisionType=1
|clothingType=3
|clothingType=3
|ingredient1=Rock Seed
|ingredient1=Rock
|ingredient2=Black Block Seed
|ingredient2=Black Block
|growTime=4m 35s
|growTime=4m 35s
|seedStyle=5/10/5/2
|seedStyle=5/10/5/2

Revision as of 23:20, 9 March 2013

Description

The Item template is for use on item pages to give a quick introduction to vital statistics about the item.

Usage

Place the infobox as the first element in a page describing an item. These core parameters should almost always be supplied:

{{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)
}}

To add an image, use these parameters:

|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)

Some extra statistics can also be displayed if available (all optional):

|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)

For items which are growable, seed info can also be provided:

|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)

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 item database.

Specific documentation on these id numbers is forthcoming.

Examples

Most item pages should feature an example of this template.

DO NOT TOUCH!
Properties
None
Data
Typehttps://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png Pain Block (Lava) - Foreground
ChiUnknown
Texture Typehttps://growtopiawiki.nbg1.your-objectstorage.com/uploads/5/54/TextureTypeSprite.png 4 Directional
Collision Typehttps://growtopiawiki.nbg1.your-objectstorage.com/uploads/e/e2/CollisionTypeSprite.png Full Collision
Hardnesshttps://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png 4 Hits
https://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png 3 Hits
Restores after 8s of inactivity.
Seed Colorhttps://growtopiawiki.nbg1.your-objectstorage.com/uploads/9/9c/SeedSprites.png
#FF2811
#FFBB2A
Grow Timehttps://growtopiawiki.nbg1.your-objectstorage.com/uploads/e/e5/TreeSprites.png 31s
Default Gems Drophttps://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png 0 - 1
Paint Preview

id:Item/doc

{{Item
|id=4
|name=Lava
|rarity=1
|editableType=0
|actionType=16
|dropChance=8
|spreadType=5
|collisionType=1
}}

id:Item/doc

{{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
}}