Template:Food: Difference between revisions

596 bytes added ,  5 years ago
no edit summary
sims>A morris
(moving documentation)
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 4:
|-
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="text-align:center;" {{!}} {{{image}}}<br /><span style="font-size:80%;">{{{caption<includeonly>|</includeonly>}}}</span>
{{!}}-
}}
Line 13:
{{!}} style="text-align:left;" {{!}} '''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" {{!}}
----
{{!}}-
{{#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 |
{{!}} colspan="2" style="text-align:center;" {{!}} '''Effects'''
{{!}}-
{{#ifeq: {{#exprifexpr: {{#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 |
{{!}}-
{{#if:{{{hunger<includeonly>|</includeonly>}}} |
Line 49 ⟶ 57:
{{!}}-
}}
|
|{{!}} colspan="2" style="text-align:center;" {{!}} ''This food is missing information about it's effects. You can help {{SITENAME}} by [{{fullurl:{{FULLPAGENAME}}|action=edit}} adding it]. ''
|
}}
Line 56 ⟶ 65:
#if: {{{type|}}} | {{#ifeq: {{{type|}}}| Fruit | [[Category:Fruits]]|{{ #ifeq: {{{type|}}}| Vegetable | [[Category:Vegetables]]|{{#ifeq: {{{type|}}}| Meat | [[Category:Meat foods]]|{{#ifeq: {{{type|}}}| Prepared | [[Category:Prepared foods]] }} }} }} }} }}
<!--Not in Main: namespace--></includeonly><noinclude>
{{clr}}{{documentation}}</noinclude>