Template:Consumables: Difference between revisions

From PZwiki
m (Reformatted the article to make it a little cleaner. This this needs CSS :/)
(Undo revision 15582 by ZombieLawnGnome (talk))
Line 3: Line 3:
     <td style="background: #f7f7f7; border: 1px solid #ccc; vertical-align: top; width:180px;">
     <td style="background: #f7f7f7; border: 1px solid #ccc; vertical-align: top; width:180px;">
       <div style="margin: 5px; background: #3E3E3E; padding: 5px; font-weight: bold; text-align: center; font-size: 120%; color:#ffffff;"> {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}
       <div style="margin: 5px; background: #3E3E3E; padding: 5px; font-weight: bold; text-align: center; font-size: 120%; color:#ffffff;"> {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}
       </div>   
       </div>
      <div style="float: right;"></div>   
       <div style="padding: 0em 1em;">  
       <div style="padding: 0em 1em;">  
         <center>[[Image:{{{image}}}|120px]]
         <center>[[Image:{{{image}}}|120px]]
Line 13: Line 14:
         {{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}}
         {{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}}
         </small>
         </small>
        </xenter>
       </div>   
       </div>   
     </td>
     </td>

Revision as of 04:36, 3 December 2013

Consumables
[[Image:{{{image}}}|120px]]
       
       
       Weight: {{{weight}}}
       
       
       
       
       </xenter>



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
}}