Template:Recipe: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(added cargo declare and documentation table) |
||
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> | |||
{{#invoke: infobox|infobox | {{#invoke: infobox|infobox | ||
| image = none | | image = none | ||
Line 5: | Line 6: | ||
{{infobox row |Ingredients|{{{ingredients}}} }} | {{infobox row |Ingredients|{{{ingredients}}} }} | ||
{{infobox row |Effect|{{{effects}}} }} | {{infobox row |Effect|{{{effects}}} }} | ||
{{infobox row |Has Plants|{{{hasplants| | {{infobox row |Has Plants|{{{hasplants|no}}} }} | ||
{{infobox row |Has Fungus|{{{hasfungus| | {{infobox row |Has Fungus|{{{hasfungus|no}}} }} | ||
}}<noinclude>[[Category:Templates]]</noinclude> | }}{{#if: {{{recipetext|}}}|{{Qud quote|{{{recipetext}}}}}}}<noinclude>[[Category:Templates]] | ||
{| class="wikitable" | |||
! id | |||
| the cs file that holds the recipe data. | |||
| String | |||
|- | |||
! ingredients | |||
| list of ingredients required. | |||
| List (,) of string | |||
|- | |||
! effects | |||
| the effect. just the decription is fine. | |||
| string | |||
|- | |||
! hasplants | |||
| defaults to no | |||
| yes/no | |||
|- | |||
! hasfungus | |||
| defaults to no | |||
| yes/no | |||
|- | |||
! recipetext | |||
| the RecipeText in factions.xml aka what you ask for the faction member to teach you. | |||
| String | |||
|}</noinclude> |
Revision as of 19:51, 13 July 2019
This template defines the table "Recipes". View table.
Recipe
ID
|
{{{id}}} |
---|---|
Ingredients
|
{{{ingredients}}} |
Effect
|
{{{effects}}} |
Has Plants
|
no |
Has Fungus
|
no |
id | the cs file that holds the recipe data. | String |
---|---|---|
ingredients | list of ingredients required. | List (,) of string |
effects | the effect. just the decription is fine. | string |
hasplants | defaults to no | yes/no |
hasfungus | defaults to no | yes/no |
recipetext | the RecipeText in factions.xml aka what you ask for the faction member to teach you. | String |