Template:Item recipe: Difference between revisions

From Space Station 14 Wiki
(wip)
(param amount → amount multiplier)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#invoke: Item recipe|generate_item_recipe}}</includeonly><noinclude>
--><templatestyles src="Template:Item recipe/styles.css" /><!--
 
# template arguments are all passed to this method
-->{{#invoke: Item recipe|generate_item_recipe}}</includeonly><noinclude>
{{docs|bb=
{{docs|bb=
{{uses lua|Item recipe}}
{{uses lua|Item recipe}}
{{uses template styles}}
{{uses template styles}}
}}
}}
{{item recipe|satchel of holding}}
{{item recipe|bluespace beaker}}
{{item recipe|force gun}}


<templatedata>
<templatedata>
Line 24: Line 16:
},
},
"2": {
"2": {
"label": "Amount",
"label": "Amount multiplier",
"description": "Amount of items to adjust the recipe for.",
"description": "How many times to repeat the recipe? Will adjust the recipe costs, duration and product amounts.",
"type": "number",
"type": "number",
"default": "1",
"default": "1",
Line 41: Line 33:
"example": "lathe"
"example": "lathe"
},
},
"layout": {
"materials only": {
"aliases": [
"mat only"
],
"label": "Materials only mode",
"description": "If set, only the recipe materials will be rendered, as opposed to also rendering both the product and the method by default.",
"type": "boolean",
"default": "0"
},
"materials only layout": {
"aliases": [
"aliases": [
"lay"
"mat only layout"
],
],
"label": "Layout",
"label": "Materials only mode",
"description": "How to layout the recipe?",
"description": "When in materials only mode, how to lay out the materials?",
"type": "line",
"type": "line",
"suggestedvalues": [
"suggestedvalues": [
Line 56: Line 57:
"default": "vertical",
"default": "vertical",
"suggested": true
"suggested": true
},
"materials only": {
"aliases": [
"mat only"
],
"label": "Materials only",
"description": "If set, only the recipe materials will be rendered, as opposed to also rendering both the product and the method by default.",
"type": "boolean",
"default": "0"
}
}
},
},
Line 71: Line 63:
"2",
"2",
"3",
"3",
"layout",
"materials only",
"materials only"
"materials only layout"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 18:54, 16 September 2024

Template documentation
view or edit this documentation about template documentation
Uses Lua module
This template uses Lua module:
Uses template styles
This template uses template styles found in:

Examples

Basic

{{item recipe|small-capacity power cell}}

1 Small-capacity power cell
Autolathe
1 steel0.5 plastic
1 sec.

Non-default recipes

Not all recipes are available by default.

Non-default recipes will have a note attached, specifying the means of getting said recipe.

Researchable recipes

Recipes that need to be researched first to manufacture.

{{item recipe|satchel of holding}}

1 Satchel of holding
Protolathe
This recipe is unlocked by research
20 steel7.5 silver bar1.5 uranium15 plasma
5 sec.

Emagged recipes

Recipes that can only be accessed by EMAGging a machine.

{{item recipe|combat knife|1|autolathe}}

1 Combat knife
Autolathe
This recipe is unlocked by EMAG
2.5 steel1 plastic
2 sec.
Researchable emagged recipes

Recipes that can only be accessed by researching and then EMAGging a machine.

{{item recipe|x-ray cannon|1|protolathe}}

1 X-ray cannon
Protolathe
This recipe is unlocked by researchThis recipe is unlocked by EMAG
15 steel5 glass2.5 plastic1 gold bar
5 sec.
This recipe is unlocked by EMAG after it has been researched

Materials-only mode

Renders only the materials, without header or notes.

{{item recipe|Jaws of life|materials only=1}}

5 glass0.5 plastic10 steel0.5 gold bar3 plasma

Materials-only mode layout

Allows to change how materials are layed out.

Vertical

The default.

Horizontal

{{item recipe|Jaws of life|materials only=1|materials only layout=horizontal}}

5 glass0.5 plastic10 steel0.5 gold bar3 plasma

List of recipes by method

Method Page
autolathe Template:Item recipe/lists of recipes by method/autolathe
protolathe Template:Item recipe/lists of recipes by method/protolathe
uniform printer Template:Item recipe/lists of recipes by method/uniform printer
circuit imprinter Template:Item recipe/lists of recipes by method/circuit imprinter
exosuit fabricator Template:Item recipe/lists of recipes by method/exosuit fabricator
medical techfab Template:Item recipe/lists of recipes by method/medical techfab
biocube fabricator Template:Item recipe/lists of recipes by method/biocube fabricator
security techfab Template:Item recipe/lists of recipes by method/security techfab
ore processor Template:Item recipe/lists of recipes by method/ore processor
industrial ore processor Template:Item recipe/lists of recipes by method/industrial ore processor
sheet-meister 2000 Template:Item recipe/lists of recipes by method/sheet-meister 2000
cutter machine Template:Item recipe/lists of recipes by method/cutter machine
biogenerator Template:Item recipe/lists of recipes by method/biogenerator

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Item1

Item name, ID or alias. Any casing is allowed for name/alias, but not for ID. Do not pass {{item}} here.

Example
lathe
Linerequired
Amount multiplier2

How many times to repeat the recipe? Will adjust the recipe costs, duration and product amounts.

Default
1
Numbersuggested
Method3

Item production method. Use to differentiate between multiple recipes for a single item, if it has multiple.

Suggested values
autolathe protolathe
Example
lathe
Linesuggested
Materials only modematerials only mat only

If set, only the recipe materials will be rendered, as opposed to also rendering both the product and the method by default.

Default
0
Booleanoptional
Materials only modematerials only layout mat only layout

When in materials only mode, how to lay out the materials?

Suggested values
vertical ver horizontal hor
Default
vertical
Linesuggested