Template:RecipeNew/doc: Difference between revisions
SlyAceZeta (talk | contribs) (Created page with "==TemplateData== <templatedata> { "params": { "1": { "label": "Spawn ID", "description": "The spawn ID of the item", "example": "fibermesh", "type": "string", "required": true }, "2": { "label": "Game ID", "description": "The ID of the game, either \"SN\" or \"BZ\" without quotes, set to \"SN\" by default", "example": "BZ", "type": "string", "default": "SN" }, "3": { "label": "Mode", "description": "The template mode to use:...") |
SlyAceZeta (talk | contribs) (Adding machine parameter; removing names; removing defaults handled by TemplateData) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
"params": { |
"params": { |
||
"1": { |
"1": { |
||
"label": "Spawn ID", |
"label": "Item Spawn ID", |
||
"description": "The spawn ID of the item", |
"description": "The spawn ID of the item", |
||
"example": "fibermesh", |
"example": "fibermesh", |
||
"type": "string", |
"type": "string", |
||
"default": "Attempts to look up the item using the page name" |
|||
"required": true |
|||
}, |
}, |
||
"2": { |
"2": { |
||
"label": "Game ID", |
"label": "Game ID", |
||
"description": "The ID of the game, either \"SN\" or \"BZ\" without quotes |
"description": "The ID of the game, either \"SN\" or \"BZ\" without quotes", |
||
"example": "BZ", |
"example": "BZ", |
||
"type": "string", |
"type": "string", |
||
Line 19: | Line 19: | ||
"3": { |
"3": { |
||
"label": "Mode", |
"label": "Mode", |
||
"description": "The template mode to use: \"recipe\", \"uses\", or \"power\" without quotes |
"description": "The template mode to use: \"recipe\", \"uses\", or \"power\" without quotes", |
||
"example": "uses", |
"example": "uses", |
||
"type": "string", |
"type": "string", |
||
"default": "recipe" |
"default": "recipe" |
||
}, |
|||
"4": { |
|||
"label": "Machine Spawn ID", |
|||
"description": "The spawn ID of the crafting machine when mode is set to \"uses\"; if set to \"all\", this will output all recipes regardless of machine", |
|||
"example": "fabricator", |
|||
"type": "string", |
|||
"default": "all" |
|||
} |
} |
||
}, |
}, |
||
Line 48: | Line 55: | ||
<pre>{{RecipeNew|fibermesh||uses}}</pre> |
<pre>{{RecipeNew|fibermesh||uses}}</pre> |
||
{{RecipeNew|fibermesh||uses}} |
{{RecipeNew|fibermesh||uses}} |
||
<pre>{{RecipeNew|fibermesh||uses|builder}}</pre> |
|||
{{RecipeNew|fibermesh||uses|builder}} |
|||
<pre>{{RecipeNew|fibermesh|BZ|uses}}</pre> |
<pre>{{RecipeNew|fibermesh|BZ|uses}}</pre> |
||
{{RecipeNew|fibermesh|BZ|uses}} |
{{RecipeNew|fibermesh|BZ|uses}} |
||
<noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 01:51, 23 July 2022
TemplateData
This multi-function template can display a single item's recipe, a single item's power output, or all recipes using a single item.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item Spawn ID | 1 | The spawn ID of the item
| String | optional |
Game ID | 2 | The ID of the game, either "SN" or "BZ" without quotes
| String | optional |
Mode | 3 | The template mode to use: "recipe", "uses", or "power" without quotes
| String | optional |
Machine Spawn ID | 4 | The spawn ID of the crafting machine when mode is set to "uses"; if set to "all", this will output all recipes regardless of machine
| String | optional |
Examples
Single Recipe
{{RecipeNew|fibermesh}}
Lua error in package.lua at line 80: module 'Dev:Arguments' not found.
{{RecipeNew|fibermesh|BZ}}
Lua error in package.lua at line 80: module 'Dev:Arguments' not found.
Power Output
{{RecipeNew|creepvinepiece||power}}
Lua error in package.lua at line 80: module 'Dev:Arguments' not found.
{{RecipeNew|creepvinepiece|BZ|power}}
Lua error in package.lua at line 80: module 'Dev:Arguments' not found.
Uses Ingredient
{{RecipeNew|fibermesh||uses}}
Lua error in package.lua at line 80: module 'Dev:Arguments' not found.
{{RecipeNew|fibermesh||uses|builder}}
Lua error in package.lua at line 80: module 'Dev:Arguments' not found.
{{RecipeNew|fibermesh|BZ|uses}}
Lua error in package.lua at line 80: module 'Dev:Arguments' not found.