User:ZombieLawnGnome/Sandbox: Difference between revisions

From PZwiki
No edit summary
(Initial experiment re: adding thirst to the template.)
Line 1: Line 1:
{{languages}}
<includeonly>
<!-- Table to use if the item is both perishable and cooked-->
{{#ifexpr:{{{perishable|0}}}<>0| {{#ifexpr:{{{cookable|0}}}<>0|
<TABLE class="mw-collapsible wikitable" style="text-align: center; margin-left:auto; margin-right:auto; vertical-align:text-top;">
  <TR>
    <TH colspan="4">Nutritional Information</TH>
  </TR>
  <TR>
    <TH>Uncooked</TH>
    <TD style="vertical-align:top">'''Fresh {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{image|}}} | [[Image:{{{image}}}]] }} <BR /><small>{{#ifexpr:{{{hunger|0}}}<>0|'''Hunger:''' {{{hunger}}}<BR />|}}{{#ifexpr:{{{boredom|0}}}<>0|'''Boredom Change:''' {{{boredom}}}<BR />|}}{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}<BR />|}}{{#ifexpr:{{{unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{unhappiness}}}|}}</small></TD>
    <TD style="vertical-align:top">'''{{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{image|}}} | [[Image:{{{image}}}]] | (No Image)}}<BR /><SMALL>{{#ifexpr:{{{unrotten hunger|0}}}<>0|'''Hunger:''' {{{unrotten hunger}}}<BR />|}}{{#ifexpr:{{{unrotten boredom|0}}}<>0|'''Boredom Change:''' {{{unrotten boredom}}}<BR />|}}{{#ifexpr:{{{unrotten stress|0}}}<>0|'''Stress Change:''' {{{unrotten stress}}}<BR />|}}{{#ifexpr:{{{unrotten unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{unrotten unhappiness}}}<BR />|}}</SMALL></TD>
    <TD style="vertical-align:top">'''Rotten {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{rotten image|}}} | [[Image:{{{rotten image}}}]] | (No Image)}}<BR /><small>{{#ifexpr:{{{rotten hunger|0}}}<>0|'''Hunger:''' {{{rotten hunger}}}<BR />|}}{{#ifexpr:{{{rotten boredom|0}}}<>0|'''Boredom Change:''' {{{rotten boredom}}}<BR />|}}{{#ifexpr:{{{rotten stress|0}}}<>0|'''Stress Change:''' {{{rotten stress}}}<BR />|}}{{#ifexpr:{{{rotten unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{rotten unhappiness}}}<BR /><font style="color:red">Consuming this may make you [[Moodles#Sick|sick]].</font> }}</SMALL></TD>
  </TR>
  <TR>
    <TH>Cooked</TH>
    <TD style="vertical-align:top">'''Fresh Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{cooked image|}}} | [[Image:{{{cooked image}}}]] | (No Image)}}<BR /><small>{{#ifexpr:{{{cooked hunger|0}}}<>0|'''Hunger:''' {{{cooked hunger}}}<BR />|}}{{#ifexpr:{{{cooked boredom|0}}}<>0|'''Boredom Change:''' {{{cooked boredom}}}<BR />|}}{{#ifexpr:{{{cooked stress|0}}}<>0|'''Stress Change:''' {{{cooked stress}}}<BR />|}}{{#ifexpr:{{{cooked unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{cooked unhappiness}}}<BR />}}</small></TD>
    <TD style="vertical-align:top">'''Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{cooked image|}}} | [[Image:{{{cooked image}}}]] | (No Image)}}<BR /><SMALL>{{#ifexpr:{{{unrottencooked hunger|0}}}<>0|'''Hunger:''' {{{unrottencooked hunger}}}<BR />}}{{#ifexpr:{{{unrottencooked boredom|0}}}<>0|'''Boredom Change:''' {{{unrottencooked boredom}}}<BR />}}{{#ifexpr:{{{unrottencooked stress|0}}}<>0|'''Stress Change:''' {{{unrottencooked stress}}}<BR />|}}{{#ifexpr:{{{unrottencooked unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{unrottencooked unhappiness}}}<BR />}}</SMALL></TD>
    <TD style="vertical-align:top">'''Rotten Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{cooked image|}}} | [[Image:{{{cooked image}}}]] | (No Image)}}<BR /><small>{{#ifexpr:{{{rottencooked hunger|0}}}<>0|'''Hunger:''' {{{rottencooked hunger}}}<BR />|}}{{#ifexpr:{{{rottencooked boredom|0}}}<>0|'''Boredom Change:''' {{{rottencooked boredom}}}<BR />|}}{{#ifexpr:{{{rottencooked stress|0}}}<>0|'''Stress Change:''' {{{rottencooked stress}}}<BR />|}}{{#ifexpr:{{{rottencooked unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{rottencooked unhappiness}}}<BR /><font style="color:red">Consuming this may make you [[Moodles#Sick|sick]].</font>|}}</SMALL></TD>
  </TR>
  <TR>
    <TH>Burned</TH>
    <TD style="vertical-align:top">'''Burned {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{burned image|}}} | [[Image:{{{burned image}}}]] | (No Image)}}<BR /><small>{{#ifexpr:{{{burned hunger|0}}}<>0|'''Hunger:''' {{{burned hunger}}}<BR />|}}{{#ifexpr:{{{burned boredom|0}}}<>0|'''Boredom Change:''' {{{burned boredom}}}<BR />|}}{{#ifexpr:{{{burned stress|0}}}<>0|'''Stress Change:''' {{{burned stress}}}<BR />|}}{{#ifexpr:{{{burned unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{burned unhappiness}}}<BR /><font style="color:red">Consuming this may make you [[Moodles#Sick|sick]].</font>}}</small></TD>
  </TR>
</TABLE>
| }} |}}
<!-- Table to use if the item is only perishable-->
{{#ifexpr:{{{perishable|0}}}<>0| {{#ifexpr:{{{cookable|0}}}=0|
<TABLE class="mw-collapsible wikitable" style="text-align: center; margin-left:auto; margin-right:auto; vertical-align:text-top;">
  <TR>
    <TH colspan="4">Nutritional Information</TH>
  </TR>
  <TR>
    <TD style="vertical-align:top">'''Fresh {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{image|}}} | [[Image:{{{image}}}]] }} <BR /><small>{{#ifexpr:{{{hunger|0}}}<>0|'''Hunger:''' {{{hunger}}}<BR />|}}{{#ifexpr:{{{thirst|0}}}<>0|'''Thirst:''' {{{thirst}}}<BR />|}}{{#ifexpr:{{{boredom|0}}}<>0|'''Boredom Change:''' {{{boredom}}}<BR />|}}{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}<BR />|}}{{#ifexpr:{{{unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{unhappiness}}}|}}</small></TD>
    <TD style="vertical-align:top">'''{{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{image|}}} | [[Image:{{{image}}}]] | (No Image)}}<BR /><SMALL>{{#ifexpr:{{{unrotten hunger|0}}}<>0|'''Hunger:''' {{{unrotten hunger}}}<BR />|}}{{#ifexpr:{{{unrotten thirst|0}}}<>0|'''Thirst:''' {{{unrotten thirst}}}<BR />|}}{{#ifexpr:{{{unrotten boredom|0}}}<>0|'''Boredom Change:''' {{{unrotten boredom}}}<BR />|}}{{#ifexpr:{{{unrotten stress|0}}}<>0|'''Stress Change:''' {{{unrotten stress}}}<BR />|}}{{#ifexpr:{{{unrotten unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{unrotten unhappiness}}}<BR />|}}</SMALL></TD>
    <TD style="vertical-align:top">'''Rotten {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{rotten image|}}} | [[Image:{{{rotten image}}}]] | (No Image)}}<BR /><small>{{#ifexpr:{{{rotten hunger|0}}}<>0|'''Hunger:''' {{{rotten hunger}}}<BR />|}}{{#ifexpr:{{{rotten thirst|0}}}<>0|'''Thirst:''' {{{rotten thirst}}}<BR />|}}{{#ifexpr:{{{rotten boredom|0}}}<>0|'''Boredom Change:''' {{{rotten boredom}}}<BR />|}}{{#ifexpr:{{{rotten stress|0}}}<>0|'''Stress Change:''' {{{rotten stress}}}<BR />|}}{{#ifexpr:{{{rotten unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{rotten unhappiness}}}<BR /><font style="color:red">Consuming this may make you [[Moodles#Sick|sick]].</font> }}</SMALL></TD>
  </TR>
</TABLE>
| }} | }}
<!-- Table to use if the item only cookable-->
{{#ifexpr:{{{cookable|0}}}<>0| {{#ifexpr:{{{perishable|0}}}=0|
<TABLE class="mw-collapsible wikitable" style="text-align: center; margin-left:auto; margin-right:auto; vertical-align:text-top;">
  <TR>
    <TH colspan="4">Nutritional Information</TH>
  </TR>
  <TR>
    <TH>Uncooked</TH>
    <TD style="vertical-align:top">'''{{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{image|}}} | [[Image:{{{image}}}]] }} <BR /><small>{{#ifexpr:{{{hunger|0}}}<>0|'''Hunger:''' {{{hunger}}}<BR />|}}{{#ifexpr:{{{thirst|0}}}<>0|'''Thirst:''' {{{thirst}}}<BR />|}}{{#ifexpr:{{{boredom|0}}}<>0|'''Boredom Change:''' {{{boredom}}}<BR />|}}{{#ifexpr:{{{stress|0}}}<>0|'''Stress Change:''' {{{stress}}}<BR />|}}{{#ifexpr:{{{unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{unhappiness}}}|}}</small></TD>
  </TR>
  <TR>
    <TH>Cooked</TH>
    <TD style="vertical-align:top">'''Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{cooked image|}}} | [[Image:{{{cooked image}}}]] | (No Image)}}<BR /><small>{{#ifexpr:{{{cooked hunger|0}}}<>0|'''Hunger:''' {{{cooked hunger}}}<BR />|}}{{#ifexpr:{{{cooked thirst|0}}}<>0|'''Thirst:''' {{{cooked thirst}}}<BR />|}}{{#ifexpr:{{{cooked boredom|0}}}<>0|'''Boredom Change:''' {{{cooked boredom}}}<BR />|}}{{#ifexpr:{{{cooked stress|0}}}<>0|'''Stress Change:''' {{{cooked stress}}}<BR />|}}{{#ifexpr:{{{cooked unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{cooked unhappiness}}}<BR />}}</small></TD>
  </TR>
  <TR>
    <TH>Burned</TH>
    <TD style="vertical-align:top">'''Burned {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{burned image|}}} | [[Image:{{{burned image}}}]] | (No Image)}}<BR /><small>{{#ifexpr:{{{burned hunger|0}}}<>0|'''Hunger:''' {{{burned hunger}}}<BR />|}}{{#ifexpr:{{{burned thirst|0}}}<>0|'''Thirst:''' {{{burner thirst}}}<BR />|}}{{#ifexpr:{{{burned boredom|0}}}<>0|'''Boredom Change:''' {{{burned boredom}}}<BR />|}}{{#ifexpr:{{{burned stress|0}}}<>0|'''Stress Change:''' {{{burned stress}}}<BR />|}}{{#ifexpr:{{{burned unhappiness|0}}}<>0|'''Unhappiness Change:''' {{{burned unhappiness}}}<BR /><font style="color:red">Consuming this may make you [[Moodles#Sick|sick]].</font>}}</small></TD>
  </TR>
</TABLE>
| }} | }}
</includeonly>


{{ZombieLawnGnome/Sandbox
<noinclude>
|name = Dead Rat
[[category:templates]]
|image = Dead_rat.png
</noinclude>
|hunger = -15
|weight = 0.2
|perishable = 1
|cookable = 1
|unhappiness = +30
|unrotten hunger = 999
|unrotten unhappiness = 999
|rotten hunger = 999
|rotten unhappiness = 999
|unrottencooked hunger = -11
|unrottencooked unhappiness = +40
|unrottencooked boredom = +10
|rottencooked hunger = 999
|rottencooked unhappiness = 999
|cooked hunger = -19
|cooked unhappiness = +10
|cooked boredom = -20
|rotten image = Dead_rat_rotten.png
|cooked image = Item_DeadRatCooked.png
|burned hunger = -5
|burned boredom = +20
|burned unhappiness = +50
|burned image = Dead_rat.png
}}
A loving friend, and cold comfort companion. Actually just a dead rat that probably died because there was nothing left to loot in a house. Not the most appetizing of meals but will do for an extremely desperate survivor in a pinch.
 
Found in [[Containers|cupboards and drawers]] in the bathrooms and kitchens of most houses.
 
{{Navbox/Consumables}}
 
[[Category:Consumables]]
[[Category:Food]]
[[Category:Perishable Food]]

Revision as of 13:18, 8 December 2013