Template:RecipeNew/doc: Difference between revisions
SlyAceZeta (talk | contribs) m (Adding category) |
SlyAceZeta (talk | contribs) (Adding ability to use item name and note that the template uses the page's name by default) |
||
Line 4: | Line 4: | ||
"params": { |
"params": { |
||
"1": { |
"1": { |
||
"label": "Spawn ID", |
"label": "Item Spawn ID/Name", |
||
"description": "The spawn ID of the item", |
"description": "The spawn ID or name 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": { |
Revision as of 01:45, 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/Name | 1 | The spawn ID or name of the item
| String | optional |
Game ID | 2 | The ID of the game, either "SN" or "BZ" without quotes, set to "SN" by default
| String | optional |
Mode | 3 | The template mode to use: "recipe", "uses", or "power" without quotes, set to "recipe" by default
| 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|BZ|uses}}
Lua error in package.lua at line 80: module 'Dev:Arguments' not found.