Template:Consumables: Difference between revisions
(Success... now to expand on that to finish adding the rotten stats. *crosses fingers*) |
(Now to add to success, only display rotten info if the item is marked as perishable.) |
||
Line 7: | Line 7: | ||
<div style="padding: 0em 1em;"> | <div style="padding: 0em 1em;"> | ||
<center> | <center> | ||
[[Image:{{{image}}}|120px]] | [[Image:{{{image}}}|120px]] | ||
<small> | <small> | ||
Line 15: | Line 16: | ||
{{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}} | {{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}} | ||
</small> | </small> | ||
{{#if:{{{rotten image|}}}| | |||
[[Image:{{{rotten image}}}|120px]] | {{#ifexpr:{{{perishable|0}}}<>0| | ||
{{#if:{{{rotten image|}}}|[[Image:{{{rotten image}}}|120px]]| }} | |||
<small> | <small> | ||
{{#if:{{{weight|}}}| '''Weight:''' {{{weight}}}| '''Weight:''' unknown }} | {{#if:{{{weight|}}}| '''Weight:''' {{{weight}}}| '''Weight:''' unknown }} |
Revision as of 02:29, 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 }}