User:ZombieLawnGnome/Sandbox: Difference between revisions
No edit summary |
(Initial experiment re: adding thirst to the template.) |
||
Line 1: | Line 1: | ||
{{ | <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> | |||
<noinclude> | |||
[[category:templates]] | |||
</noinclude> | |||
Revision as of 13:18, 8 December 2013