Template:Food: Difference between revisions

9 bytes added ,  02:16, 6 February 2021
m
fix favilink if harvested from multiple sources
mNo edit summary
m (fix favilink if harvested from multiple sources)
Line 73: Line 73:
| table=Food  
| table=Food  
| fields=ObjectID=Page
| fields=ObjectID=Page
| where=PreservedInto = "{{BASEPAGENAME}}"  
| where=PreservedInto = "{{#titleparts:{{BASEPAGENAME}}}}"  
| template=favilink id
| template=favilink id
| delimiter=</br>
| delimiter=</br>
Line 91: Line 91:
; where= HarvestedInto= "{{#titleparts:{{BASEPAGENAME}}}}"
; where= HarvestedInto= "{{#titleparts:{{BASEPAGENAME}}}}"
| 2 = table=Characters
| 2 = table=Characters
;fields=_pageName=Page
;fields=ObjectID=Page
; where= HarvestedInto= "{{#titleparts:{{BASEPAGENAME}}}}"
; where= HarvestedInto= "{{#titleparts:{{BASEPAGENAME}}}}"
|template=single query result
|template=favilink id
|default=None}}}}| None || {{infobox row|Harvested from|{{favilink page|{{#var:Infobox_HarvestedFrom}}}} }} }}
| delimiter = </br>
|default=None}}}}| None || {{infobox row|Harvested from|{{#var:Infobox_HarvestedFrom}} }} }}
{{#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|}}}}} }} }} }}