Template:Consumables: Difference between revisions

From PZwiki
(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:


Weight [required]
Image [required]


Image [required]
Weight, Hunger, boredom, stress, happiness


Hunger
perishable [true|false] (use 1 for true, 0 for false)


boredom
rotten hunger, rotten boredom, rotten stress, rotten happiness


stress
== code ==
Example usage in a page:


happiness
<nowiki>{{Consumables2
|name = Grapes
|image = Item_Grapes.png
|hunger = 0
|weight = 0.0
|perishable = 1
|rotten image = Item_GrapesRotten.png
|rotten hunger = 0
}}</nowiki>


Example usage in a page:


<nowiki>{{</nowiki>Consumables2
|name = Test
|image = Template-info.png
|hunger = -20
|weight = 0.2
<nowiki>}}</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 }}