Template:Consumables

From PZwiki
Revision as of 09:40, 4 December 2013 by ZombieLawnGnome (talk | contribs) (After all that work with the test template, I finally got the conditional tables working re: cooked/perishable)
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]

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:

{{Consumables2 |name = Grapes |image = Item_Grapes.png |hunger = 0 |weight = 0.0 |perishable = 1 |rotten image = Item_GrapesRotten.png |rotten hunger = 0 }}