Template:Infobox Recipe/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
The Gaffer (talk | contribs) No edit summary |
The Gaffer (talk | contribs) No edit summary |
||
Line 83: | Line 83: | ||
<pre> |
<pre> |
||
{{Infobox Recipe |
{{Infobox Recipe |
||
|facility = |
|facility = Preparation Table |
||
|profession = |
|profession = Chef |
||
|level = |
|level = 14 |
||
|exp = |
|exp = 76 |
||
|mat1 = |
|mat1 = Valent Leek |
||
|mat1qty = |
|mat1qty = 1 |
||
|mat2 = |
|mat2 = Raw Chicken |
||
|mat2qty = |
|mat2qty = 1 |
||
|mat3 = Pastry |
|||
|output1 = Fishing Spear |
|||
| |
|mat3qty = 1 |
||
|output1 = Basic Raw Chicken and Leek Pie |
|||
|output1qty = 1 |
|||
}} |
}} |
||
</pre> |
</pre> |
||
{{Infobox Recipe |
{{Infobox Recipe |
||
|facility = |
|facility = Preparation Table |
||
|profession = |
|profession = Chef |
||
|level = |
|level = 14 |
||
|exp = |
|exp = 76 |
||
|mat1 = |
|mat1 = Valent Leek |
||
|mat1qty = |
|mat1qty = 1 |
||
|mat2 = |
|mat2 = Raw Chicken |
||
|mat2qty = |
|mat2qty = 1 |
||
|mat3 = Pastry |
|||
|output1 = Fishing Spear |
|||
| |
|mat3qty = 1 |
||
|output1 = Basic Raw Chicken and Leek Pie |
|||
|output1qty = 1 |
|||
}} |
}} |
||
Line 120: | Line 124: | ||
|mat2 = |
|mat2 = |
||
|mat2qty = |
|mat2qty = |
||
|mat3 = |
|||
|mat3qty = |
|||
|output1 = |
|output1 = |
||
|output1qty = |
|output1qty = |
Revision as of 20:55, 9 November 2024
Template:Infobox Recipe invokes function _main in Module:Infobox Recipe using Lua.
The Infobox Recipe template is used to show the details of a recipe step in item articles, such as a potion mixture or adding a cooking ingredient. It can also be used to display the experience gained for item creation.
Parameters
Parameter | Format | Usage | Mandatory? |
---|---|---|---|
facility
|
Link to facility | The name of the facility that is required to create the item; e.g. facility = Standard Potion Station will display
|
Yes |
profession
|
profession name | The profession in which experience is gained, or which has a level requirement, for creating the item | Yes |
level
|
Integer | The level required in the profession to create the item. | Yes |
exp
|
number | The amount of experience gained for performing the action. | Yes |
mat1
|
Exact name of the item | The primary item used for performing the craft. e.g. Brown Kelp for Brown Kelp
|
Yes |
mat1qty
|
Integer | The amount of the material used in the process.
This parameter can be removed if it would be 1 |
Yes |
mat2
|
Exact name of the item | The secondary item used for performing the craft. e.g. Brown Kelp for Brown Kelp
|
Yes |
mat2qty
|
Integer | The amount of the material used in the process.
This parameter can be removed if it would be 1 |
Yes |
mat3
|
Exact name of the item | The tertiary item used for performing the craft. e.g. Brown Kelp for Brown Kelp
|
Yes |
mat3qty
|
Integer | The amount of the material used in the process.
This parameter can be removed if it would be 1 |
Yes |
output1
|
Exact name of the item | The item created by performing the craft. e.g. Brown Kelp for Brown Kelp
|
Yes |
output1qty
|
Integer | The amount of the output created in the process. | No |
Example
This is an example that uses random values just to display the functionality of the template.
{{Infobox Recipe |facility = Preparation Table |profession = Chef |level = 14 |exp = 76 |mat1 = Valent Leek |mat1qty = 1 |mat2 = Raw Chicken |mat2qty = 1 |mat3 = Pastry |mat3qty = 1 |output1 = Basic Raw Chicken and Leek Pie |output1qty = 1 }}
Requirements | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Facility | Preparation Table | |||||||||||
Profession | Level | XP | ||||||||||
Chef | 14 | 76 | ||||||||||
Raw Ingredient | Quantity | Cost | ||||||||||
Total Raw cost | 0 | |||||||||||
Output | Quantity | Value | ||||||||||
Basic Raw Chicken and Leek Pie | 1 | 0 | ||||||||||
Profit | 0 |
Blank infobox
{{Infobox Recipe |facility = |profession = |level = |exp = |mat1 = |mat1qty = |mat2 = |mat2qty = |mat3 = |mat3qty = |output1 = |output1qty = }}