Template:Food: Difference between revisions

270 bytes added ,  22:22, 4 February 2021
no edit summary
mNo edit summary
No edit summary
Line 69: Line 69:
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|{{{harvestedinto}}} }} }}
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|{{{harvestedinto}}} }} }}
{{#if: {{{preservedinto|}}}| {{infobox row|Preserved into|{{favilink|{{{preservedinto}}} }} x{{{preservedquantity|1}}} }} }}
{{#if: {{{preservedinto|}}}| {{infobox row|Preserved into|{{favilink|{{{preservedinto}}} }} x{{{preservedquantity|1}}} }} }}
{{#ifeq: {{#vardefineecho:Infobox_PreservedInto|{{#invoke:CargoQuery| main | table=Food | fields=_pageName=Page| where=PreservedInto = "{{PAGENAME}}" |template=favilink page|default=None}}|None}}| None = {{infobox row|Preserved from|{{#var:Infobox_PreservedInto}} }} }}
{{#if: {{{exoticfood|}}} | {{infobox row|Exotic Food|{{{exoticfood}}} }} }}  
{{#if: {{{exoticfood|}}} | {{infobox row|Exotic Food|{{{exoticfood}}} }} }}  
{{#if: {{{oneat|}}}{{{illoneat|}}} | {{infobox row|On Eat|{{#if: {{{illoneat|}}}|<p>Become [[ill]]</p>}}{{#if: {{{oneat|}}}|{{consecutive links|{{{oneat|}}}}} }} }} }}
{{#if: {{{oneat|}}}{{{illoneat|}}} | {{infobox row|On Eat|{{#if: {{{illoneat|}}}|<p>Become [[ill]]</p>}}{{#if: {{{oneat|}}}|{{consecutive links|{{{oneat|}}}}} }} }} }}