Template:Consumables: Difference between revisions

From PZwiki
(Trying to undo my changes...)
(Undo revision 15626 by ZombieLawnGnome (talk))
Line 18: Line 18:


{{#ifexpr:{{{perishable|0}}}<>0|
{{#ifexpr:{{{perishable|0}}}<>0|
{{#ifeq:{{{name|x}}}|x|Rotten {{PAGENAME}}|Rotten {{{name}}} }}
<div style="margin: 5px; background: #3E3E3E; padding: 5px; font-weight: bold; text-align: center; font-size: 120%; color:#ffffff; float: right;">
{{#ifeq:{{{name|x}}}|x|Rotten {{PAGENAME}}|Rotten {{{name}}} }} </div> 
<div style="padding: 0em 1em;">  
<div style="padding: 0em 1em;">  
{{#if:{{{rotten image|}}}|[[Image:{{{rotten image}}}|120px]]| }}  
{{#if:{{{rotten image|}}}|[[Image:{{{rotten image}}}|120px]]| }}  

Revision as of 02:40, 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
}}