Template:Consumables: Difference between revisions

From PZwiki
mNo edit summary
m (Automated Formatting)
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><!--
<noinclude>
{{Documentation/sandbox|doc=
The {{tll|Consumables}} (previously called {{Code|'''Consumables2'''}}) template is used to add a table to a food item's page. If a property is not included or is 0, it will not be displayed.
 
==Parameters==
===Table===
*position [left{{!}}center{{!}}right]
 
===Images===
*image [required]
*burned image
*rotten image
*cooked image
 
===Properties===
*perishable [true{{!}}false] (use 1 for true, 0 for false)
*cookable [true{{!}}false] (use 1 for true, 0 for false)
 
===Uncooked===
;Fresh:
*weight
*hunger
*boredom
*stress
*unhappiness
 
;Stale:
<small>(Unrotten meaning not fresh anymore but not yet rotten</small>
*unrotten hunger
*unrotten boredom
*unrotten stress
*unrotten unhappiness
 
;Rotten:
*rotten hunger
*rotten boredom
*rotten stress
*rotten unhappiness
 
===Cooked===
;Fresh:
*cooked weight
*cooked hunger
*cooked boredom
*cooked stress
*cooked unhappiness
 
;Stale:
*unrottencooked weight
*unrottencooked hunger
*unrottencooked boredom
*unrottencooked stress
*unrottencooked unhappiness
 
;Rotten:
*rottencooked weight
*rottencooked hunger
*rottencooked boredom
*rottencooked stress
*rottencooked unhappiness
 
===Burned===
;Burned:
*burned hunger
*burned boredom
*burned unhappiness
 
==Examples==
===Example 1===
;Code
<pre>{{Consumables
|image = Grapes.png
|hunger = -15
|unrotten hunger = -11
|unrotten boredom = +10
|unrotten unhappiness = +10
|unrotten image = Grapes.png
|rotten hunger = -6
|rotten boredom = +20
|rotten unhappiness = +20
|perishable = 1
|rotten image = GrapesRotten.png
}}</pre>
 
;Result
{{Consumables
|image = Grapes.png
|hunger = -15
|unrotten hunger = -11
|unrotten boredom = +10
|unrotten unhappiness = +10
|unrotten image = Grapes.png
|rotten hunger = -6
|rotten boredom = +20
|rotten unhappiness = +20
|perishable = 1
|rotten image = GrapesRotten.png
}}
 
===Example 2===
;Code
<pre>{{Consumables
|position = center
|image = Chicken.png
|rotten image = Chicken Rotten.png
|cooked image = Chicken Cooked.png
|burned image = Chicken Overdone.png
|perishable = 1
|cookable = 1
|hunger = -35
|dangerous uncooked = 1
|boredom = 0
|unhappiness = 0
|unrotten hunger = -26
|unrotten unhappiness = +10
|unrotten boredom = +10
|rotten hunger = -15
|rotten unhappiness = +20
|rotten boredom = +20
|cooked hunger = -45
|cooked unhappiness = 0
|cooked boredom = 0
|unrottencooked hunger = -26
|unrottencooked unhappiness = +10
|unrottencooked boredom = +10
|rottencooked hunger = -15
rottencooked unhappiness = +20
|rottencooked boredom = +20
|burned hunger = -11
|burned boredom = +20
|burned unhappiness = +20
}}</pre>
 
;Result
{{Consumables
|image = Chicken.png
|rotten image = Chicken Rotten.png
|cooked image = Chicken Cooked.png
|burned image = Chicken Overdone.png
|perishable = 1
|cookable = 1
|hunger = -35
|dangerous uncooked = 1
|boredom = 0
|unhappiness = 0
|unrotten hunger = -26
|unrotten unhappiness = +10
|unrotten boredom = +10
|rotten hunger = -15
|rotten unhappiness = +20
|rotten boredom = +20
|cooked hunger = -45
|cooked unhappiness = 0
|cooked boredom = 0
|unrottencooked hunger = -26
|unrottencooked unhappiness = +10
|unrottencooked boredom = +10
|rottencooked hunger = -15
|rottencooked unhappiness = +20
|rottencooked boredom = +20
|burned hunger = -11
|burned boredom = +20
|burned unhappiness = +20
}}
 
==See also==
*{{ll|Template:ConditionChange}}
 
}}
{{ll|Category:Templates}}
</noinclude><includeonly><!--


###########################
###########################
Line 6: Line 176:


-->{{#ifexpr:{{{perishable|0}}}<>0| {{#ifexpr:{{{cookable|0}}}<>0|
-->{{#ifexpr:{{{perishable|0}}}<>0| {{#ifexpr:{{{cookable|0}}}<>0|
{{{!}} style="background:#F9F9F9; text-align:center; vertical-align:text-top; {{#switch: {{{position|}}}|center=margin-left:auto; margin-right:auto;|right=margin-left:auto;|left=margin-right:auto;|}} border: 1px solid #{{Infobox nc|Food}};" cellpadding=5
{{{!}} class="wikitable theme-red" style="text-align:center; vertical-align:text-top; {{#switch: {{{position|}}}|center=margin-left:auto; margin-right:auto;|right=margin-left:auto;|left=margin-right:auto;|}}" cellpadding=5
{{!}}-  
{{!}}-
! width=32px {{!}}
! width=32px {{!}}
! width=268px style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}};" {{!}} Fresh
! width=268px {{!}} Fresh
! width=268px style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}};" {{!}} Stale
! width=268px {{!}} Stale
! width=268px style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}};" {{!}} Rotten
! width=268px {{!}} Rotten
{{!}}-  
{{!}}-
! style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}}" {{!}} <div style="transform:rotate(270deg);">Uncooked</div>
! <div style="transform:rotate(270deg);">Uncooked</div>
{{!}} style="vertical-align:top; background-color:#F9F9F9;" {{!}} <small>
{{!}} <small>
{{{!}} width=100%
{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<br>
{{!}}- style="height:38px"
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{hunger|0}}}}}<br>
{{!}} {{#if:{{{image|}}}|[[Image:{{{image}}}]]}}
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{boredom|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unhappiness|0}}}}}<br>
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{hunger|0}}}}}
{{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}
{{!}}- style="height:24px"
</small>
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{boredom|0}}}}}
{{!}} style="vertical-align:top;" {{!}} <small>
{{!}}- style="height:24px"
{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<br>
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unhappiness|0}}}}}
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{unrotten hunger|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{unrotten boredom|0}}}}}<br>
{{!}} {{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unrotten unhappiness|0}}}}}<br>
{{!}}}</small>
{{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}
{{!}} style="vertical-align:top; background-color:#F9F9F9;" {{!}} <small>
</small>
{{{!}} width=100%
{{!}} style="vertical-align:top;" {{!}} <small>
{{!}}- style="height:38px"
{{#if:{{{rotten image|}}}|[[Image:{{{rotten image}}}]]}}</div>
{{!}} {{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<br>
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{rotten hunger|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{rotten boredom|0}}}}}<br>
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{unrotten hunger|0}}}}}
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{rotten unhappiness|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|WillMakeSick=1}}
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{unrotten boredom|0}}}}}
</small>
{{!}}- style="height:24px"
{{!}}-
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unrotten unhappiness|0}}}}}
! <div style="transform:rotate(270deg);">Cooked</div>
{{!}}- style="height:24px"
{{!}} style="vertical-align:top;" {{!}} <small>
{{!}} {{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}
{{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}<br>
{{!}}}</small>
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{cooked hunger|0}}}}}<br>
{{!}} style="vertical-align:top; background-color:#F9F9F9;" {{!}} <small>
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{cooked boredom|0}}}}}<br>
{{{!}} width=100%
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{cooked unhappiness|0}}}}}
{{!}}- style="height:38px"
</small>
{{!}} {{#if:{{{rotten image|}}}|[[Image:{{{rotten image}}}]]}}<br>
{{!}} style="vertical-align:top;" {{!}} <small>
{{!}}- style="height:24px"
{{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}<br>
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{rotten hunger|0}}}}}
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{unrottencooked hunger|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{unrottencooked boredom|0}}}}}<br>
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{rotten boredom|0}}}}}
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unrottencooked unhappiness|0}}}}}
{{!}}- style="height:24px"
</small>
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{rotten unhappiness|0}}}}}
{{!}} style="vertical-align:top;" {{!}} <small>
{{!}}- style="height:24px"
{{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}<br>
{{!}} {{ConditionChange|WillMakeSick=1}}
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{rottencooked hunger|0}}}}}<br>
{{!}}}</small>
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{rottencooked boredom|0}}}}}<br>
{{!}}-  
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{rottencooked unhappiness|0}}}}}<br>
! style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}};" {{!}} <div style="transform:rotate(270deg);">Cooked</div>
{{ConditionChange|WillMakeSick=1}}
{{!}} style="vertical-align:top; background-color:#EEEEEE;" {{!}} <small>
</small>
{{{!}} width=100%
{{!}}- style="height:38px"
{{!}} {{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{cooked hunger|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{cooked boredom|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{cooked unhappiness|0}}}}}</small>
{{!}}}
{{!}} style="vertical-align:top; background-color:#EEEEEE;" {{!}} <small>
{{{!}} width=100%
{{!}}- style="height:38px"
{{!}} {{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{unrottencooked hunger|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{unrottencooked boredom|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unrottencooked unhappiness|0}}}}}
{{!}}}</small>
{{!}} style="vertical-align:top; background-color:#EEEEEE;" {{!}} <small>
{{{!}} width=100%
{{!}}- style="height:38px"
{{!}} {{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{rottencooked hunger|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{rottencooked boredom|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{rottencooked unhappiness|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|WillMakeSick=1}}
{{!}}}</small>
{{!}}-
{{!}}-
! style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}}" {{!}} <div style="transform:rotate(270deg);">Burned</div>
! <div style="transform:rotate(270deg);">Burned</div>
{{!}} style="vertical-align:top; background-color:#F9F9F9;" colspan=3 {{!}} <small>{{#if:{{{burned image|}}}|[[Image:{{{burned image}}}]]}}<br>
{{!}} style="vertical-align:top;" colspan=3 {{!}} <small>
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{burned hunger|0}}}}}
{{#if:{{{burned image|}}}
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{burned boredom|0}}}}}
|[[Image:{{{burned image}}}]]}}<br>
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{burned unhappiness|0}}}}}
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{burned hunger|0}}}}}<br>
{{ConditionChange|WillMakeSick=1}}</small>
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{burned boredom|0}}}}}<br>
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{burned unhappiness|0}}}}}<br>
{{ConditionChange|WillMakeSick=1}}
</small>
{{!}}-
{{!}}-
{{!}}}|}}|}}<!--
{{!}}}|}}|}}<!--
Line 105: Line 244:


-->{{#ifexpr:{{{perishable|0}}}<>0| {{#ifexpr:{{{cookable|0}}}=0|
-->{{#ifexpr:{{{perishable|0}}}<>0| {{#ifexpr:{{{cookable|0}}}=0|
{{{!}} style="background:#F9F9F9; text-align: center; vertical-align:text-top; {{#switch: {{{position|}}}|center=margin-left:auto; margin-right:auto;|right=margin-left:auto;|left=margin-right:auto;|}} border: 1px solid #{{Infobox nc|Food}};" cellpadding=5
{{{!}} class="wikitable theme-red" style="text-align:center; vertical-align:text-top;{{#switch: {{{position|}}}|center=margin-left:auto; margin-right:auto;|right=margin-left:auto;|left=margin-right:auto;|}}" cellpadding=5
! width=202px style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}}" {{!}} Fresh
! width=202px {{!}} Fresh
! width=202px style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}}" {{!}} Stale
! width=202px {{!}} Stale
! width=202px style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}}" {{!}} Rotten
! width=202px {{!}} Rotten
{{!}}-
{{!}}-
{{!}} style="vertical-align:top; background-color:#F9F9F9;" {{!}} <small>  
{{!}} style="vertical-align:top;" {{!}} <small>
{{{!}} width=100%
{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<br>
{{!}}- style="height:38px"
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{hunger|0}}}}}<br>
{{!}} {{#if:{{{image|}}}|[[Image:{{{image}}}]]}}
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{boredom|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unhappiness|0}}}}}<br>
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{hunger|0}}}}}
{{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}
{{!}}- style="height:24px"
</small>
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{boredom|0}}}}}
{{!}} style="vertical-align:top;" {{!}} <small>
{{!}}- style="height:24px"
{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<br>
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unhappiness|0}}}}}
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{unrotten hunger|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{unrotten boredom|0}}}}}<br>
{{!}} {{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}</small>
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unrotten unhappiness|0}}}}}<br>
{{!}}}
{{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}
{{!}} style="vertical-align:top; background-color:#F9F9F9;" {{!}} <small>
</small>
{{{!}} width=100%
{{!}} style="vertical-align:top;" {{!}} <small>
{{!}}- style="height:38px"
{{#if:{{{rotten image|}}}|[[Image:{{{rotten image}}}]]}}<br>
{{!}} {{#if:{{{image|}}}|[[Image:{{{image}}}]]}}
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{rotten hunger|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{rotten boredom|0}}}}}<br>
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{unrotten hunger|0}}}}}
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{rotten unhappiness|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|WillMakeSick=1}}
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{unrotten boredom|0}}}}}
</small>
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unrotten unhappiness|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}
{{!}}}</small>
{{!}} style="vertical-align:top; background-color:#F9F9F9;" {{!}} <small>
{{{!}} width=100%
{{!}}- style="height:38px"
{{!}} {{#if:{{{rotten image|}}}|[[Image:{{{rotten image}}}]]}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{rotten hunger|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{rotten boredom|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{rotten unhappiness|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|WillMakeSick=1}}
{{!}}}</small>
{{!}}}|}}|}}<!--
{{!}}}|}}|}}<!--


Line 156: Line 277:


-->{{#ifexpr:{{{cookable|0}}}<>0| {{#ifexpr:{{{perishable|0}}}=0|
-->{{#ifexpr:{{{cookable|0}}}<>0| {{#ifexpr:{{{perishable|0}}}=0|
{{{!}} style="background:#F9F9F9; text-align: center; vertical-align:text-top; {{#switch: {{{position|}}}|center=margin-left:auto; margin-right:auto;|right=margin-left:auto;|left=margin-right:auto;|}} border: 1px solid #{{Infobox nc|Food}};" cellpadding=5
{{{!}} class="wikitable theme-red" style="text-align: center; vertical-align:text-top; {{#switch: {{{position|}}}|center=margin-left:auto; margin-right:auto;|right=margin-left:auto;|left=margin-right:auto;|}}" cellpadding=5
! width=268px style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}}" {{!}} Uncooked
! width=268px {{!}} Uncooked
! width=268px style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}}" {{!}} Cooked
! width=268px {{!}} Cooked
! width=268px style="background-color:#{{Infobox nc|Food}}; color:#{{Infobox nc|Food|text}}" {{!}} Burned
! width=268px {{!}} Burned
{{!}}-
{{!}}-
{{!}} style="vertical-align:top; background-color:#F9F9F9;" {{!}} <small>
{{!}} style="vertical-align:top;" {{!}} <small>
{{{!}} width=100%
{{#if:{{{image|}}}|[[Image:{{{image}}}]]}}<br>
{{!}}- style="height:38px"
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{hunger|0}}}}}<br>
{{!}} {{#if:{{{image|}}}|[[Image:{{{image}}}]]}}
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{boredom|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unhappiness|0}}}}}<br>
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{hunger|0}}}}}
{{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}
{{!}}- style="height:24px"
</small>
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{boredom|0}}}}}
{{!}} style="vertical-align:top;" {{!}} <small>
{{!}}- style="height:24px"
{{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}<br>
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{unhappiness|0}}}}}
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{cooked hunger|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{cooked boredom|0}}}}}<br>
{{!}} {{ConditionChange|DangerousUncooked={{{dangerous uncooked|0}}}}}
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{cooked unhappiness|0}}}}}
{{!}}}</small>
</small>
{{!}} style="vertical-align:top; background-color:#F9F9F9;" {{!}} <small>
{{!}} style="vertical-align:top;" {{!}} <small>
{{{!}} width=100%
{{#if:{{{burned image|}}}|[[Image:{{{burned image}}}]]}}<br>
{{!}}- style="height:38px"
{{ConditionChange|MoodletName=Hunger|MoodletChange={{{burned hunger|0}}}}}<br>
{{!}} {{#if:{{{cooked image|}}}|[[Image:{{{cooked image}}}]]}}
{{ConditionChange|MoodletName=Boredom|MoodletChange={{{burned boredom|0}}}}}<br>
{{!}}- style="height:24px"
{{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{burned unhappiness|0}}}}}<br>
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{cooked hunger|0}}}}}
{{ConditionChange|WillMakeSick=1}}
{{!}}- style="height:24px"
</small>
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{cooked boredom|0}}}}}
{{!}}}|}}|}}</includeonly>
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{cooked unhappiness|0}}}}}
{{!}}}</small>
{{!}} style="vertical-align:top; background-color:#F9F9F9;" {{!}} <small>
{{{!}} width=100%
{{!}}- style="height:38px"
{{!}} {{#if:{{{burned image|}}}|[[Image:{{{burned image}}}]]}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Hunger|MoodletChange={{{burned hunger|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Boredom|MoodletChange={{{burned boredom|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|MoodletName=Unhappiness|MoodletChange={{{burned unhappiness|0}}}}}
{{!}}- style="height:24px"
{{!}} {{ConditionChange|WillMakeSick=1}}
{{!}}}</small>
{{!}}}|}}|}}</includeonly><noinclude>{{documentation}}[[category:infobox]]</noinclude>

Revision as of 13:49, 14 April 2024

Notebook.pngTemplate Documentation

The {{Consumables}} (previously called '''Consumables2''') template is used to add a table to a food item's page. If a property is not included or is 0, it will not be displayed.

Parameters

Table

  • position [left|center|right]

Images

  • image [required]
  • burned image
  • rotten image
  • cooked image

Properties

  • perishable [true|false] (use 1 for true, 0 for false)
  • cookable [true|false] (use 1 for true, 0 for false)

Uncooked

Fresh
  • weight
  • hunger
  • boredom
  • stress
  • unhappiness
Stale

(Unrotten meaning not fresh anymore but not yet rotten

  • unrotten hunger
  • unrotten boredom
  • unrotten stress
  • unrotten unhappiness
Rotten
  • rotten hunger
  • rotten boredom
  • rotten stress
  • rotten unhappiness

Cooked

Fresh
  • cooked weight
  • cooked hunger
  • cooked boredom
  • cooked stress
  • cooked unhappiness
Stale
  • unrottencooked weight
  • unrottencooked hunger
  • unrottencooked boredom
  • unrottencooked stress
  • unrottencooked unhappiness
Rotten
  • rottencooked weight
  • rottencooked hunger
  • rottencooked boredom
  • rottencooked stress
  • rottencooked unhappiness

Burned

Burned
  • burned hunger
  • burned boredom
  • burned unhappiness

Examples

Example 1

Code
{{Consumables
|image = Grapes.png
|hunger = -15
|unrotten hunger = -11
|unrotten boredom = +10
|unrotten unhappiness = +10
|unrotten image = Grapes.png
|rotten hunger = -6
|rotten boredom = +20
|rotten unhappiness = +20
|perishable = 1
|rotten image = GrapesRotten.png
}}
Result
Fresh Stale Rotten

Grapes.png
Hunger: -15


Grapes.png
Hunger: -11
Boredom: +10
Unhappiness: +10

GrapesRotten.png
Hunger: -6
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Example 2

Code
{{Consumables
|position = center
|image = Chicken.png
|rotten image = Chicken Rotten.png
|cooked image = Chicken Cooked.png
|burned image = Chicken Overdone.png
|perishable = 1
|cookable = 1
|hunger = -35
|dangerous uncooked = 1
|boredom = 0
|unhappiness = 0
|unrotten hunger = -26
|unrotten unhappiness = +10
|unrotten boredom = +10
|rotten hunger = -15
|rotten unhappiness = +20
|rotten boredom = +20
|cooked hunger = -45
|cooked unhappiness = 0
|cooked boredom = 0
|unrottencooked hunger = -26
|unrottencooked unhappiness = +10
|unrottencooked boredom = +10
|rottencooked hunger = -15
rottencooked unhappiness = +20
|rottencooked boredom = +20
|burned hunger = -11
|burned boredom = +20
|burned unhappiness = +20
}}
Result
Fresh Stale Rotten
Uncooked

Chicken.png
Hunger: -35


Dangerous uncooked, may cause sickness.

Chicken.png
Hunger: -26
Boredom: +10
Unhappiness: +10
Dangerous uncooked, may cause sickness.

Chicken Rotten.png

Hunger: -15
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Cooked

Chicken Cooked.png
Hunger: -45

Chicken Cooked.png
Hunger: -26
Boredom: +10
Unhappiness: +10

Chicken Cooked.png
Hunger: -15
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Burned

Chicken Overdone.png
Hunger: -11
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

See also

Editors can experiment in this template's sandbox.