Template:Food: Difference between revisions

1 byte added ,  18:34, 3 September 2019
m
no edit summary
m (fix empty links when illoneat specified but oneat not)
mNo edit summary
Line 66: Line 66:
{{#if: {{{preservedinto|}}}| {{infobox row|Preserved into|[[{{{preservedinto}}}]] x{{{preservedquantity|1}}} }} }}
{{#if: {{{preservedinto|}}}| {{infobox row|Preserved into|[[{{{preservedinto}}}]] x{{{preservedquantity|1}}} }} }}
{{#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|}}}}} }} }} }}
{{#if: {{{cookeffect|}}} | {{Infobox row|Cooking Effect|{{consecutive links|{{{cookeffect}}}}} }} }}
{{#if: {{{cookeffect|}}} | {{Infobox row|Cooking Effect|{{consecutive links|{{{cookeffect}}}}} }} }}
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}