Template:Food: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
sims>A morris
(moving documentation)
sims>A morris
(adding title for effects, param "ingredient1" ... "ingredient5")
Line 13: Line 13:
{{!}} style="text-align:left;" {{!}} '''Type'''
{{!}} style="text-align:left;" {{!}} '''Type'''
{{!}}{{{type}}}
{{!}}{{{type}}}
{{!}}-
}}
{{#if: {{{ingredient1<includeonly>|</includeonly>}}} |
{{!}} style="text-align:left;" {{!}} '''Ingredients'''
{{!}}{{{ingredient1}}}{{#if: {{{ingredient2<includeonly>|</includeonly>}}} |, {{{ingredient2}}}}}{{#if: {{{ingredient3<includeonly>|</includeonly>}}} |, {{{ingredient3}}}}}{{#if: {{{ingredient4<includeonly>|</includeonly>}}} |, {{{ingredient4}}}}}{{#if: {{{ingredient5<includeonly>|</includeonly>}}} |, {{{ingredient5}}}}}
{{!}}-
{{!}}-
}}
}}
{{!}} colspan="2" {{!}}
{{!}} colspan="2" {{!}}
----
----
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} '''Effects'''
{{!}}-
{{#ifeq: {{#expr: {{#if:{{{hunger|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{energy|}}}|1|0}} or {{#if:{{{comfort|}}}|1|0}} or {{#if:{{{hygiene|}}}|1|0}} or {{#if:{{{social|}}}|1|0}} or {{#if:{{{bladder|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{hunger|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{energy|}}}|1|0}} or {{#if:{{{comfort|}}}|1|0}} or {{#if:{{{hygiene|}}}|1|0}} or {{#if:{{{social|}}}|1|0}} or {{#if:{{{bladder|}}}|1|0}} }} | 1 |
{{!}}-
{{!}}-