Template:Consumables: Difference between revisions
(Fixed a display error where consumption warning wasn't showing unless unhappiness was defined.) |
(Cloned the code from the now-working sandbox branch.) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><!-- | ||
<!-- Table to use if the item is both perishable and | |||
{{#ifexpr:{{{perishable|0}}}<>0| {{#ifexpr:{{{cookable|0}}}<>0| | --- Table to use if the item is both perishable and cookable --- | ||
-->{{#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;"> | <TABLE class="mw-collapsible wikitable" style="text-align: center; margin-left:auto; margin-right:auto; vertical-align:text-top;"> | ||
<TR> | <TR> | ||
Line 8: | Line 10: | ||
<TR> | <TR> | ||
<TH>Uncooked</TH> | <TH>Uncooked</TH> | ||
<TD style="vertical-align:top">'''Fresh {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{image|}}} | [[Image:{{{image}}}]] }} <BR /><small>{{ | <TD style="vertical-align:top">'''Fresh {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unhappiness|0}}}}}{{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}</small></TD> | ||
<TD style="vertical-align:top">'''{{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{image|}}} | [[Image:{{{image}}}]] | <TD style="vertical-align:top">'''{{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{unrotten hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{unrotten thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{unrotten boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{unrotten stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unrotten unhappiness|0}}}}}{{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}</small></TD> | ||
<TD style="vertical-align:top">'''Rotten {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{ | <TD style="vertical-align:top">'''Rotten {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{rotten hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{rotten thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{rotten boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{rotten stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{rotten unhappiness|0}}}}}{{ConditionChange|WillMakeSick=1}}</small></TD> | ||
</TR> | </TR> | ||
<TR> | <TR> | ||
<TH>Cooked</TH> | <TH>Cooked</TH> | ||
<TD style="vertical-align:top">'''Fresh Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{cooked image|}}} | [[Image:{{{cooked image}}}]] | <TD style="vertical-align:top">'''Fresh Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{cooked hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{cooked thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{cooked boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{cooked stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{cooked unhappiness|0}}}}}</small></TD> | ||
<TD style="vertical-align:top">'''Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{cooked image|}}} | [[Image:{{{cooked image}}}]] | <TD style="vertical-align:top">'''Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{unrottencooked hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{unrottencooked thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{unrottencooked boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{unrottencooked stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unrottencooked unhappiness|0}}}}}</small></TD> | ||
<TD style="vertical-align:top">'''Rotten Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{cooked image|}}} | [[Image:{{{cooked image}}}]] | <TD style="vertical-align:top">'''Rotten Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{rottencooked hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{rottencooked thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{rottencooked boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{rottencooked stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{rottencooked unhappiness|0}}}}}{{ConditionChange|WillMakeSick=1}}</small></TD> | ||
</TR> | </TR> | ||
<TR> | <TR> | ||
<TH>Burned</TH> | <TH>Burned</TH> | ||
<TD style="vertical-align:top">'''Burned {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{ | <TD style="vertical-align:top">'''Burned {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{burned hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{burned thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{burned boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{burned stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{burned unhappiness|0}}}}}{{ConditionChange|WillMakeSick=1}}</small></TD> | ||
</TR> | </TR> | ||
</TABLE> | </TABLE>|}}|}}<!-- | ||
<!-- Table to use if the item is only perishable--> | --- Table to use if the item is only perishable --- | ||
{{#ifexpr:{{{perishable|0}}}<>0| {{#ifexpr:{{{cookable|0}}}=0| | |||
-->{{#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;"> | <TABLE class="mw-collapsible wikitable" style="text-align: center; margin-left:auto; margin-right:auto; vertical-align:text-top;"> | ||
<TR> | <TR> | ||
Line 31: | Line 34: | ||
</TR> | </TR> | ||
<TR> | <TR> | ||
<TD style="vertical-align:top">'''Fresh {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{image|}}} | [[Image:{{{image}}}]] }} <BR /><small>{{ | <TD style="vertical-align:top">'''Fresh {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unhappiness|0}}}}}{{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}</small></TD> | ||
<TD style="vertical-align:top">'''{{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{image|}}} | [[Image:{{{image}}}]] | <TD style="vertical-align:top">'''{{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{unrotten hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{unrotten thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{unrotten boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{unrotten stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unrotten unhappiness|0}}}}}{{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}</small></TD> | ||
<TD style="vertical-align:top">'''Rotten {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{ | <TD style="vertical-align:top">'''Rotten {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{rotten hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{rotten thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{rotten boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{rotten stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{rotten unhappiness|0}}}}}{{ConditionChange|WillMakeSick=1}}</small></TD> | ||
</TR> | </TR> | ||
</TABLE> | </TABLE>|}}|}}<!-- | ||
<!-- Table to use if the item only cookable--> | --- Table to use if the item only cookable | ||
{{#ifexpr:{{{cookable|0}}}<>0| {{#ifexpr:{{{perishable|0}}}=0| | |||
-->{{#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;"> | <TABLE class="mw-collapsible wikitable" style="text-align: center; margin-left:auto; margin-right:auto; vertical-align:text-top;"> | ||
<TR> | <TR> | ||
Line 44: | Line 48: | ||
</TR> | </TR> | ||
<TR> | <TR> | ||
<TH>Uncooked</TH> | |||
<TD style="vertical-align:top">'''{{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{image|}}} | [[Image:{{{image}}}]] }} <BR /><small>{{ | <TD style="vertical-align:top">'''{{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{unrotten hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{unrotten thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{unrotten boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{unrotten stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unrotten unhappiness|0}}}}}{{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}</small></TD> | ||
</TR> | </TR> | ||
<TR> | <TR> | ||
<TH>Cooked</TH> | <TH>Cooked</TH> | ||
<TD style="vertical-align:top">'''Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{cooked image|}}} | [[Image:{{{cooked image}}}]] | <TD style="vertical-align:top">'''Cooked {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{unrottencooked hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{unrottencooked thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{unrottencooked boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{unrottencooked stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unrottencooked unhappiness|0}}}}}</small></TD> | ||
</TR> | </TR> | ||
<TR> | <TR> | ||
<TH>Burned</TH> | <TH>Burned</TH> | ||
<TD style="vertical-align:top">'''Burned {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}} }}'''<BR />{{#if: {{{ | <TD style="vertical-align:top">'''Burned {{#ifeq:{{{name|x}}}|x|{{PAGENAME}}|{{{name}}}}}'''<BR />{{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}<BR /><small>{{ConditionChange|MoodletName=Hunger|MoodletChange={{{burned hunger|0}}}}}{{ConditionChange|MoodletName=Thirst|MoodletChange={{{burned thirst|0}}}}}{{ConditionChange|MoodletName=Boredom|MoodletChange={{{burned boredom|0}}}}}{{ConditionChange|MoodletName=Stress|MoodletChange={{{burned stress|0}}}}}{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{burned unhappiness|0}}}}}{{ConditionChange|WillMakeSick=1}}</small></TD> | ||
</TR> | </TR> | ||
</TABLE> | </TABLE>|}}|}} | ||
</includeonly><noinclude> | |||
</includeonly> | |||
<noinclude> | |||
{{documentation}} | {{documentation}} | ||
[[category:templates]] | [[category:templates]] | ||
</noinclude> | </noinclude> |
Revision as of 05:49, 10 December 2013
This template doesn't have any documentation yet! Help out by writing some.
Documentation transcluded from Template:Consumables/doc.
Editors can experiment in this template's sandbox (create)
Editors can experiment in this template's sandbox (create)