Template:Infobox Recipe/doc: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{documentation}} 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== {| class="wikitable" ! Parameter ! Format ! Usage ! Mandatory? |- | <code>facility</code> | ''Link to facility'' | The name of the facility that is required to create the item; e.g. <code><nowiki>facility = Standard...")
 
No edit summary
Line 49: Line 49:
|-
|-
| <code>mat2qty</code>
| <code>mat2qty</code>
| ''Integer''
| The amount of the material used in the process.

This parameter can be removed if it would be '''1'''
| Yes
|-
| <code>mat3</code>
| ''Exact name of the item''
| The tertiary item used for performing the craft. e.g. <code>Brown Kelp</code> for [[Brown Kelp]]
| Yes
|-
| <code>mat3qty</code>
| ''Integer''
| ''Integer''
| The amount of the material used in the process.
| The amount of the material used in the process.

Revision as of 20:50, 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 = 
|profession = Alchemist
|level = 123
|exp = 9876
|mat1 = Brown Kelp
|mat1qty = 6
|mat2 = Basic Omelette
|mat2qty = 3
|output1 = Fishing Spear
|output1qty = 2
}}
Requirements
Facility Standard Potion Station
ProfessionLevelXP
Alchemist1239876
Raw IngredientQuantityCost
Total Raw cost0Copper
OutputQuantityValue
Fishing Spear224Silver0Copper
Profit24Silver0Copper

Blank infobox

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