Template:RecipeNew/doc: Difference between revisions

From Subnautica Wiki
m (Adding category)
(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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Item Spawn ID/Name1

The spawn ID or name of the item

Default
Attempts to look up the item using the page name
Example
fibermesh
Stringoptional
Game ID2

The ID of the game, either "SN" or "BZ" without quotes, set to "SN" by default

Default
SN
Example
BZ
Stringoptional
Mode3

The template mode to use: "recipe", "uses", or "power" without quotes, set to "recipe" by default

Default
recipe
Example
uses
Stringoptional

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.