Template:Infobox Recipe/doc: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 83: Line 83:
<pre>
<pre>
{{Infobox Recipe
{{Infobox Recipe
|facility =
|facility = Preparation Table
|profession = Alchemist
|profession = Chef
|level = 123
|level = 14
|exp = 9876
|exp = 76
|mat1 = Brown Kelp
|mat1 = Valent Leek
|mat1qty = 6
|mat1qty = 1
|mat2 = Basic Omelette
|mat2 = Raw Chicken
|mat2qty = 3
|mat2qty = 1
|mat3 = Pastry
|output1 = Fishing Spear
|output1qty = 2
|mat3qty = 1
|output1 = Basic Raw Chicken and Leek Pie
|output1qty = 1
}}
}}
</pre>
</pre>


{{Infobox Recipe
{{Infobox Recipe
|facility = Standard Potion Station
|facility = Preparation Table
|profession = Alchemist
|profession = Chef
|level = 123
|level = 14
|exp = 9876
|exp = 76
|mat1 = Brown Kelp
|mat1 = Valent Leek
|mat1qty = 6
|mat1qty = 1
|mat2 = Basic Omelette
|mat2 = Raw Chicken
|mat2qty = 3
|mat2qty = 1
|mat3 = Pastry
|output1 = Fishing Spear
|output1qty = 2
|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

This is a documentation subpage for Template:Infobox Recipe.
It contains usage information, categories, and other content that is not part of the original template page.
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

Standard Potion Station

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
ProfessionLevelXP
Chef1476
Raw IngredientQuantityCost
Total Raw cost0Copper
OutputQuantityValue
Basic Raw Chicken and Leek Pie10Copper
Profit0Copper

Blank infobox

{{Infobox Recipe
|facility = 
|profession = 
|level = 
|exp = 
|mat1 = 
|mat1qty = 
|mat2 = 
|mat2qty = 
|mat3 = 
|mat3qty =
|output1 = 
|output1qty = 
}}