Template:Consumables: Difference between revisions

From PZwiki
No edit summary
(Undo revision 15592 by ZombieLawnGnome (talk))
Line 5: Line 5:
<div style="float: right;"></div>
<div style="float: right;"></div>
{{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }} </div>   
{{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }} </div>   
<div style="padding: 0em 0em; ">  
<div style="padding: 0em 1em;">  
<center>[[Image:{{{image}}}|120px]]
<center>[[Image:{{{image}}}|120px]]
<small>
<small>
'''Weight:''' {{{weight}}}
'''Weight:''' {{{weight}}} <BR>
 
{{#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}}}|}}
{{#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>
</small>
    
    

Revision as of 04:56, 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:

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