Template:Consumables: Difference between revisions
(An attempt to add support for an optional "rotten image" parameter to the template.) |
(Trying again after reading mediawiki documentation. Sorry for all the edits.) |
||
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]]| }} | ||
</center> | </center> | ||
</div> | </div> |
Revision as of 02:19, 4 December 2013
Consumables
[[Image:{{{image}}}|120px]]
Weight: {{{weight}}}
|
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 }}