Template:Consumables: Difference between revisions
m (Working on line spacing for the properties.) |
(changed the semantics to *un*happiness to match the game's way of putting it.) |
||
Line 18: | Line 18: | ||
{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}|}} | {{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}|}} | ||
{{#ifexpr:{{{ | {{#ifexpr:{{{unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{happiness}}}|}} | ||
</small> | </small> | ||
Line 33: | Line 33: | ||
{{#ifexpr:{{{rotten stress|0}}}<>0|'''Stress Change:''' {{{rotten stress}}}|}} | {{#ifexpr:{{{rotten stress|0}}}<>0|'''Stress Change:''' {{{rotten stress}}}|}} | ||
{{#ifexpr:{{{rotten | {{#ifexpr:{{{rotten unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{rotten happiness}}}|}} | ||
</small> | </small> | ||
| }} | | }} | ||
Line 52: | Line 52: | ||
perishable [true|false] (use 1 for true, 0 for false) | perishable [true|false] (use 1 for true, 0 for false) | ||
rotten hunger, rotten boredom, rotten stress, rotten | rotten hunger, rotten boredom, rotten stress, rotten unhappiness | ||
== code == | == code == |
Revision as of 03:58, 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 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 }}