Template:Recipe: Difference between revisions

25 bytes added ,  19:56, 13 July 2019
made list separated by line breaks because i think its prettier
(added cargo declare and documentation table)
(made list separated by line breaks because i think its prettier)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=Recipes|RecipeID=String|Ingredients=List (,) of String|Effect=Wikitext|HasPlants=Boolean|HasFungus=Boolean|RecipeText=String}}</noinclude><includeonly>{{#cargo_store:_table=Recipes|RecipeID={{{id|}}}|Ingredients={{{ingredients|}}}|Effect={{{effects|}}}|HasPlants={{{hasplants|no}}}|HasFungus={{{hasfungus|no}}}|RecipeText={{{recipetext|}}}}}</includeonly>
<noinclude>{{#cargo_declare:_table=Recipes|RecipeID=String|Ingredients=List (</br>) of String|Effect=Wikitext|HasPlants=Boolean|HasFungus=Boolean|RecipeText=String}}</noinclude><includeonly>{{#cargo_store:_table=Recipes|RecipeID={{{id|}}}|Ingredients={{{ingredients|}}}|Effect={{{effects|}}}|HasPlants={{{hasplants|no}}}|HasFungus={{{hasfungus|no}}}|RecipeText={{{recipetext|}}}}}</includeonly>
{{#invoke: infobox|infobox
{{#invoke: infobox|infobox
| image = none
| image = none
Line 17: Line 17:
! ingredients
! ingredients
| list of ingredients required.
| list of ingredients required.
| List (,) of string
| List (<nowiki></br></nowiki>) of string
|-
|-
! effects
! effects