Template:Item/doc: Difference between revisions
More actions
SpaceManiac (talk | contribs) I've written documentation. Astounding! |
SpaceManiac (talk | contribs) m Fixed "Seed" redundancy |
||
| Line 82: | Line 82: | ||
|collisionType=1 | |collisionType=1 | ||
|clothingType=3 | |clothingType=3 | ||
|ingredient1=Rock | |ingredient1=Rock | ||
|ingredient2=Black Block | |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 | |ingredient1=Rock | ||
|ingredient2=Black Block | |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.
| Type | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png Pain Block (Lava) - Foreground |
|---|---|
| Chi | Unknown |
| Texture Type | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/5/54/TextureTypeSprite.png 4 Directional |
| Collision Type | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/e/e2/CollisionTypeSprite.png Full Collision |
| Hardness | https://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 Color | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/9/9c/SeedSprites.png #FF2811 #FFBB2A |
| Grow Time | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/e/e5/TreeSprites.png 31s |
| Default Gems Drop | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png 0 - 1 |
{{Item
|id=4
|name=Lava
|rarity=1
|editableType=0
|actionType=16
|dropChance=8
|spreadType=5
|collisionType=1
}}
| Type | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png Feet - Clothes |
|---|---|
| Chi | None |
| Texture Type | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/5/54/TextureTypeSprite.png Single |
| Collision Type | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/e/e2/CollisionTypeSprite.png Full Collision |
| Hardness | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png 0 Hits https://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png 0 Hits Restores after 0s of inactivity. |
| Seed Color | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/9/9c/SeedSprites.png #3B3B3B #484848 |
| Grow Time | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/e/e5/TreeSprites.png 4m 35s |
| Default Gems Drop | https://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png 0 - 1 |
{{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
}}