Template:Consumables: Difference between revisions

From PZwiki
(After all that work with the test template, I finally got the conditional tables working re: cooked/perishable)
(Adding the documentation sub-template to the live Consumables2 template to manage documentation and sandboxing.)
Line 67: Line 67:
  | }} | }}
  | }} | }}
<noinclude>
<noinclude>
 
{{documentation}}
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]
 
perishable [true|false] (use 1 for true, 0 for false)
 
cookable [true|false] (use 1 for true, 0 for false)
 
weight, hunger, boredom, stress, unhappiness
 
cooked weight, cooked hunger, cooked boredom, cooked stress, cooked unhappiness
 
unrotten hunger, unrotten boredom, unrotten stress, unrotten unhappiness (Unrotten meaning not fresh anymore but not yet rotten)
 
unrottencooked weight, unrottencooked hunger, unrottencooked boredom, unrottencooked stress, unrottencooked unhappiness
 
rotten hunger, rotten boredom, rotten stress, rotten unhappiness
 
rottencooked weight, rottencooked hunger, rottencooked boredom, rottencooked stress, rottencooked unhappiness
 
== 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 13:41, 7 December 2013

Consumables


[[Image:{{{image}}}|120px]] Weight: unknown



[view] [edit] [history] [purge] Template documentation
This template doesn't have any documentation yet! Help out by writing some.
Documentation transcluded from Template:Consumables/doc.
Editors can experiment in this template's sandbox (create)