Template:Consumables: Difference between revisions
(Another intermediate changed. Added ability to display cooked stats for non-perishable items.) |
(Undo revision 15653 by ZombieLawnGnome (talk)) |
||
Line 11: | Line 11: | ||
[[Image:{{{image}}}|120px]] | [[Image:{{{image}}}|120px]] | ||
<small> | <small> | ||
{{#if:{{{weight|}}}| '''Weight:''' {{{weight}}}<BR />| '''Weight:''' unknown<BR />}}{{#ifexpr:{{{hunger|0}}}<>0|'''Hunger:''' {{{hunger}}}<BR />|}}{{#ifexpr:{{{boredom|0}}}<>0|'''Boredom Change:''' {{{boredom}}}<BR />|}}{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}<BR />|}}{{#ifexpr:{{{unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{unhappiness}}}<BR />|}}{{#ifexpr:{{{cookable|0}}}<>0|<div style="font-weight: bold;"> | {{#if:{{{weight|}}}| '''Weight:''' {{{weight}}}<BR />| '''Weight:''' unknown<BR />}}{{#ifexpr:{{{hunger|0}}}<>0|'''Hunger:''' {{{hunger}}}<BR />|}}{{#ifexpr:{{{boredom|0}}}<>0|'''Boredom Change:''' {{{boredom}}}<BR />|}}{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}<BR />|}}{{#ifexpr:{{{unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{unhappiness}}}<BR />|}}{{#ifexpr:{{{cookable|0}}}<>0|<BR /><div style="font-weight: bold;">Cooked {{PAGENAME}}</div>| }} | ||
| }} | |||
</small> | </small> | ||
Revision as of 04:55, 4 December 2013
Consumables
|
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, unhappiness
perishable [true|false] (use 1 for true, 0 for false)
cookable [true|false] (use 1 for true, 0 for false)
unrotten hunger, unrotten boredom, unrotten stress, unrotten unhappiness (Unrotten meaning not fresh anymore but not yet rotten)
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 }}