Template:Food: Difference between revisions

38 bytes removed ,  00:43, 25 July 2023
preserved into uses object id instead of page name for clarity
m (consecutive link template no longer needed here)
(preserved into uses object id instead of page name for clarity)
 
(6 intermediate revisions by 3 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 102: Line 102:
{{#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|}}}{{#if: {{{extra|}}}|{{Infobox row|Extra|<p>{{{extra}}}</p>}} }} }}  
{{#if: {{{extra|}}}|{{Infobox row||Extra Info:</br>{{{extra}}} }} }}
}}
}}
{{#if: {{{desc|}}} | {{Qud look |text={{{desc}}}|title={{{title|{{PAGENAME}} }}} }} }}
{{#if: {{{desc|}}} | {{Qud look |text={{{desc}}}|title={{{title|{{PAGENAME}} }}} }} }}
{{#if: {{{eatdesc|}}} | {{Qud quote notxml|{{{eatdesc}}}|upon consuming }} }}{{#if:{{{categories|}}}|[[Category:{{{categories}}}]] }}
{{#if: {{{eatdesc|}}} | {{Qud quote notxml|{{{eatdesc}}}|upon consuming }} }}{{#if:{{{categories|}}}|[[Category:{{{categories}}}]] }}
</includeonly>
</includeonly>