Template:Consumables: Difference between revisions
(Trying again after reading mediawiki documentation. Sorry for all the edits.) |
(Success... now to expand on that to finish adding the rotten stats. *crosses fingers*) |
||
Line 9: | Line 9: | ||
[[Image:{{{image}}}|120px]] | [[Image:{{{image}}}|120px]] | ||
<small> | <small> | ||
'''Weight:''' {{{weight}}} | {{#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}}}|}} | ||
Line 15: | Line 15: | ||
{{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}} | {{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}} | ||
</small> | </small> | ||
{{#if:{{{rotten image|}}}|[[Image:{{{rotten image}}}|120px]]| }} | {{#if:{{{rotten image|}}}| | ||
[[Image:{{{rotten image}}}|120px]] | |||
<small> | |||
{{#if:{{{weight|}}}| '''Weight:''' {{{weight}}}| '''Weight:''' unknown }} | |||
{{#ifexpr:{{{rotten hunger|0}}}<>0|'''Hunger:''' {{{rotten hunger}}}|}} | |||
{{#ifexpr:{{{rotten boredom|0}}}<>0|'''Boredom Change:''' {{{rotten boredom}}}|}} | |||
{{#ifexpr:{{{rotten stress|0}}}<>0|'''Stress Change:''' {{{rotten stress}}}|}} | |||
{{#ifexpr:{{{rotten happiness|0}}}<>0|'''Happiness Change:''' {{{rotten happiness}}}|}} | |||
</small> | |||
| }} | |||
</center> | </center> | ||
</div> | </div> |
Revision as of 02:24, 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, it will not be displayed. Possible properties to add include:
Weight [required]
Image [required]
Hunger
boredom
stress
happiness
Example usage in a page:
{{Consumables2 |name = Test |image = Template-info.png |hunger = -20 |weight = 0.2 }}