Template:Consumables: Difference between revisions

From PZwiki
(Added updated usage information to represent the new options.)
m (Working on line spacing for the properties.)
Line 11: Line 11:
<small>
<small>
{{#if:{{{weight|}}}| '''Weight:''' {{{weight}}}| '''Weight:''' unknown }}
{{#if:{{{weight|}}}| '''Weight:''' {{{weight}}}| '''Weight:''' unknown }}
{{#ifexpr:{{{hunger|0}}}<>0|'''Hunger:''' {{{hunger}}}|}}
{{#ifexpr:{{{hunger|0}}}<>0|'''Hunger:''' {{{hunger}}}|}}
{{#ifexpr:{{{boredom|0}}}<>0|'''Boredom Change:''' {{{boredom}}}|}}
{{#ifexpr:{{{boredom|0}}}<>0|'''Boredom Change:''' {{{boredom}}}|}}
{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}|}}
{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}|}}
{{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}}
{{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}}
</small>
</small>
Line 22: Line 26:
<small>
<small>
{{#if:{{{weight|}}}| '''Weight:''' {{{weight}}}| '''Weight:''' unknown }}
{{#if:{{{weight|}}}| '''Weight:''' {{{weight}}}| '''Weight:''' unknown }}
{{#ifexpr:{{{rotten hunger|0}}}<>0|'''Hunger:''' {{{rotten hunger}}}|}}
{{#ifexpr:{{{rotten hunger|0}}}<>0|'''Hunger:''' {{{rotten hunger}}}|}}
{{#ifexpr:{{{rotten boredom|0}}}<>0|'''Boredom Change:''' {{{rotten boredom}}}|}}
{{#ifexpr:{{{rotten boredom|0}}}<>0|'''Boredom Change:''' {{{rotten boredom}}}|}}
{{#ifexpr:{{{rotten stress|0}}}<>0|'''Stress Change:''' {{{rotten stress}}}|}}
{{#ifexpr:{{{rotten stress|0}}}<>0|'''Stress Change:''' {{{rotten stress}}}|}}
{{#ifexpr:{{{rotten happiness|0}}}<>0|'''Happiness Change:''' {{{rotten happiness}}}|}}
{{#ifexpr:{{{rotten happiness|0}}}<>0|'''Happiness Change:''' {{{rotten happiness}}}|}}
</small>
</small>

Revision as of 03:02, 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 }}