Template:Consumables: Difference between revisions

From PZwiki
m (Fixed a bug with the new happiness value)
No edit summary
Line 3: Line 3:
<center>[[Image:{{{image}}}|120px]] <br>
<center>[[Image:{{{image}}}|120px]] <br>
<small>
<small>
{{#ifexpr:{{{hunger|0}}}<>0|'''Hunger:''' {{{hunger}}}<br>|}}
{{#ifexpr:{{{hunger|0}}}<>0|'''Hunger:''' {{{hunger}}}|}}
'''Weight:''' {{{weight}}}<br>
'''Weight:''' {{{weight}}}
{{#ifexpr:{{{boredom|0}}}<>0|'''Boredom Change:''' {{{boredom}}}<br>|}}
{{#ifexpr:{{{boredom|0}}}<>0|'''Boredom Change:''' {{{boredom}}}|}}
{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}|}}
{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}|}}
{{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}}
{{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}}
</small><br>
</small>
    
    
</center>
</center>
Line 20: Line 20:
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:
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]<BR>
Weight [required]
Image [required]<BR>
 
Hunger<BR>
Image [required]
 
Hunger
 
boredom<BR>
boredom<BR>
stress<BR>
stress<BR>

Revision as of 04:26, 3 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: Template:Consumables2


{{Consumables2
|name = Test 
|image = Template-info.png
|hunger = -20 
|weight = 0.2
}}