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!
 
Vijuki (talk | contribs)
No edit summary
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Description ==
==='''Description:'''===
Display a infobox showing the details of an item in an article.


The '''Item''' template is for use on item pages to give a quick introduction to vital statistics about the item.
==='''Usage:'''===
<nowiki>{</nowiki>{Item|<span style='background:#FF9999'>Description</span>|<span style='background:#FF9999'>Chi</span>}}


== Usage ==
;Possible Values:
{| border="0" cellpadding="1" cellspacing="1" class="article-table" style="width: 100%;"
|-
! scope="col" style="width:15%" |Parameter
! scope="col" style="width:10%" |Value
! scope="col" style="width:75%" |Meaning
|-
| rowspan=5 | <span style='background:#FF9999'>Chi</span>
|'''None'''
|{{AchievementSprite|100}} None
|-
|'''Earth'''
|{{AchievementSprite|101}} Earth Chi
|-
|'''Fire'''
|{{AchievementSprite|102}} Fire Chi
|-
|'''Wind'''
|{{AchievementSprite|103}} Wind Chi
|-
|'''Water'''
|{{AchievementSprite|104}} Water Chi
|}


Place the infobox as the first element in a page describing an item. These core parameters should almost always be supplied:
==='''Example:'''===
<pre>
{{Item/ByName|Item Description of Dirt goes here.|Earth|name=Dirt}}
{{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].
 
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 Seed
|ingredient2=Black Block Seed
|growTime=4m 35s
|seedStyle=5/10/5/2
|seedColor=#3b3b3b
|overlayColor=#484848
}}
<pre>
{{Item
|id=42
|name=Boots
|rarity=5
|editableType=4
|actionType=20
|dropChance=0
|collisionType=1
|clothingType=3
|ingredient1=Rock Seed
|ingredient2=Black Block Seed
|growTime=4m 35s
|seedStyle=5/10/5/2
|seedColor=#3b3b3b
|overlayColor=#484848
}}
</pre>

Latest revision as of 15:32, 25 June 2020

Description:

Display a infobox showing the details of an item in an article.

Usage:

{{Item|Description|Chi}}
Possible Values
Parameter Value Meaning
Chi None https://growtopiawiki.nbg1.your-objectstorage.com/uploads/9/95/AchievementSprites.png None
Earth https://growtopiawiki.nbg1.your-objectstorage.com/uploads/9/95/AchievementSprites.png Earth Chi
Fire https://growtopiawiki.nbg1.your-objectstorage.com/uploads/9/95/AchievementSprites.png Fire Chi
Wind https://growtopiawiki.nbg1.your-objectstorage.com/uploads/9/95/AchievementSprites.png Wind Chi
Water https://growtopiawiki.nbg1.your-objectstorage.com/uploads/9/95/AchievementSprites.png Water Chi

Example:

Yep, it's dirt.
Properties
None
Data
Typehttps://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png Foreground Block - Foreground
Chihttps://growtopiawiki.nbg1.your-objectstorage.com/uploads/8/8f/ItemSprites.png Earth
Texture Typehttps://growtopiawiki.nbg1.your-objectstorage.com/uploads/5/54/TextureTypeSprite.png 8 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 3 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
#603913
#A67C52
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