Template:Consumables: Difference between revisions
(Adding back in the fresh/rotten subsections.) |
(Added updated usage information to represent the new options.) |
||
Line 35: | Line 35: | ||
Usage Example: | Usage Example: | ||
Use this template to add an infobox to a consumable item's page. If a property is not included, it will not be displayed. Possible properties to add include: | Use this template to add an infobox to a consumable item's page. | ||
If a property is not included or is 0, it will not be displayed. Possible properties to add include: | |||
Image [required] | |||
Weight, Hunger, boredom, stress, happiness | |||
perishable [true|false] (use 1 for true, 0 for false) | |||
boredom | rotten hunger, rotten boredom, rotten stress, rotten happiness | ||
== code == | |||
Example usage in a page: | |||
<nowiki>{{Consumables2 | |||
|name = Grapes | |||
|image = Item_Grapes.png | |||
|hunger = 0 | |||
|weight = 0.0 | |||
|perishable = 1 | |||
|rotten image = Item_GrapesRotten.png | |||
|rotten hunger = 0 | |||
}}</nowiki> | |||
[[category:templates]] | [[category:templates]] | ||
</noinclude> | </noinclude> |
Revision as of 03:00, 4 December 2013
Consumables
[[Image:{{{image}}}|120px]] Weight: unknown
|
Usage Example: Use this template to add an infobox to a consumable item's page. If a property is not included or is 0, it will not be displayed. Possible properties to add include:
Image [required]
Weight, Hunger, boredom, stress, happiness
perishable [true|false] (use 1 for true, 0 for false)
rotten hunger, rotten boredom, rotten stress, rotten happiness
code
Example usage in a page:
{{Consumables2 |name = Grapes |image = Item_Grapes.png |hunger = 0 |weight = 0.0 |perishable = 1 |rotten image = Item_GrapesRotten.png |rotten hunger = 0 }}