Template:Consumables: Difference between revisions
No edit summary |
m (Reformatted the article to make it a little cleaner. This this needs CSS :/) |
||
Line 1: | Line 1: | ||
<table border=0 cellspacing=10 style="float:right; clear:right; valign=top;"> <tr> <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;" | <table border=0 cellspacing=10 style="float:right; clear:right; valign=top;"> | ||
<div style="padding: 0em 1em;"> | <tr> | ||
<center>[[Image:{{{image}}}|120px]] | <td style="background: #f7f7f7; border: 1px solid #ccc; vertical-align: top; width:180px;"> | ||
<small> | <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}}} }} | ||
{{#ifexpr:{{{hunger|0}}}<>0|'''Hunger:''' {{{hunger}}}|}} | </div> | ||
'''Weight:''' {{{weight}}} | <div style="padding: 0em 1em;"> | ||
{{#ifexpr:{{{boredom|0}}}<>0|'''Boredom Change:''' {{{boredom}}}|}} | <center>[[Image:{{{image}}}|120px]] | ||
{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}|}} | <small> | ||
{{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}} | {{#ifexpr:{{{hunger|0}}}<>0|'''Hunger:''' {{{hunger}}}|}} | ||
</small> | '''Weight:''' {{{weight}}} | ||
{{#ifexpr:{{{boredom|0}}}<>0|'''Boredom Change:''' {{{boredom}}}|}} | |||
{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}|}} | |||
</div> | {{#ifexpr:{{{happiness|0}}}<>0|'''Happiness Change:''' {{{happiness}}}|}} | ||
</td></tr></table> | </small> | ||
</div> | |||
</td> | |||
</tr> | |||
</table> | |||
Revision as of 04:35, 3 December 2013
Consumables
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 }}