Template:RecipeNew/doc: Difference between revisions

From Subnautica Wiki
(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:...")
 
(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, set to \"SN\" by default",
"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, set to \"recipe\" by default",
"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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Item Spawn ID1

The spawn ID 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

Default
SN
Example
BZ
Stringoptional
Mode3

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

Default
recipe
Example
uses
Stringoptional
Machine Spawn ID4

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

Default
all
Example
fabricator
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||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.