Template:Food: Difference between revisions

19 bytes removed ,  00:43, 25 July 2023
preserved into uses object id instead of page name for clarity
(woops)
(preserved into uses object id instead of page name for clarity)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:_table=Food|
{{#cargo_declare:_table=Food|
Title=Wikitext|RenderString=String|ColorString=String|ObjectID=String|LightRadius=Integer|Hunger=String|Thirst=Integer|Extra=Searchtext|Description=Wikitext|Healing=String|PreservedInto=Page|PreservedQuantity=Integer|ExoticFood=Boolean|FoodContains=String|OnEat=Page|CookEffect=List (;) of String|JoinKey=String}}
Title=Wikitext|RenderString=String|ColorString=String|ObjectID=String|LightRadius=Integer|Hunger=String|Thirst=Integer|Extra=Searchtext|Description=Wikitext|Healing=String|PreservedInto=String|PreservedQuantity=Integer|ExoticFood=Boolean|FoodContains=String|OnEat=Page|CookEffect=List (;) of String|JoinKey=String}}
{{#cargo_attach:
{{#cargo_attach:
_table = GeneralData}}
_table = GeneralData}}
Line 26: Line 26:
Fungi }}|none}}
Fungi }}|none}}
|OnEat={{#if: {{{illoneat|}}} |Become ill</br>}}{{{oneat|}}}
|OnEat={{#if: {{{illoneat|}}} |Become ill</br>}}{{{oneat|}}}
|CookEffect={{#if: {{{cookeffect|}}}|{{consecutive templates|{{{cookeffect}}}|;|;|||CookEffect ID to name}} }}
|CookEffect={{#if: {{{cookeffect|}}}|{{consecutive templates|{{{cookeffect}}}|,|;|||CookEffect ID to name}} }}
|JoinKey={{FULLPAGENAME}} }}<!--                           
|JoinKey={{FULLPAGENAME}} }}<!--                           


Line 73: Line 73:
| table=Food  
| table=Food  
| fields=ObjectID=Page
| fields=ObjectID=Page
| where=PreservedInto = "{{#titleparts:{{BASEPAGENAME}}}}"  
| where=PreservedInto = "{{#var:id}}"  
| template=favilink id
| template=favilink id
| delimiter=</br>
| delimiter=</br>
Line 100: Line 100:
{{#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|}}}|{{{oneat|}}} }} }} }}
{{#if: {{{oneat|}}}{{{illoneat|}}} | {{infobox row|On Eat|{{#if: {{{illoneat|}}}|<p>Become [[ill]]</p>}}{{#if: {{{oneat|}}}|{{{oneat|}}} }} }} }}
{{#if: {{{cookeffect|}}} | {{Infobox row|Cooking Effect|{{consecutive templates|{{{cookeffect}}}|;|, |||CookEffect ID to page}} }} }}
{{#if: {{{cookeffect|}}} | {{Infobox row|Cooking Effect|{{consecutive templates|{{{cookeffect}}}|,|, |||CookEffect ID to page}} }} }}
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}
{{#if: {{{extra|}}}|{{Infobox row||Extra Info:</br>{{{extra}}} }} }}
{{#if: {{{extra|}}}|{{Infobox row||Extra Info:</br>{{{extra}}} }} }}