Template:Recipe/doc

From Sun Haven Wiki
Jump to navigation Jump to search

Create a recipe table for items that can be crafted. This template creates hidden "uses" categories on pages, to allow the DPL to create queries and pull together ingredient information for various pages.

Related Templates/Modules:

Syntax

{{Recipe
|product      = Name of item. If left blank will take the {{PAGENAME}}. (optional)
|workbench    = Name of the workbench this recipe is crafted at.
|ingredients  = List of ingredients to make this recipe. Separated by ";". Use * to indicate an amount of an item.
|time         = Time it takes for the recipe to be complete. (e.g 2hr or 20m)
|yield        = If this recipe yields more than one product. (optional)
|recipesource = How to obtain this recipe.
|id           = If there is more than one recipe to craft the item, this must be incremented so each recipe has a unique id. If left blank it will default to "1".
}}

Examples

Wheat Seeds

{{Recipe
|product      = Wheat Seeds
|workbench    = Seed Maker
|ingredients  = Wheat; Mana*8
|time         = 48hr
|yield        = 2}}
Wheat.png Wheat × 1Mana.png Mana × 8
Wheat Seeds.png
×2

Cinnamon Apple Pie

Cinnaberry.png Cinnaberry × 1Apple.png Apple × 1Sugar.png Sugar × 1

 Recipe unlock requirement: Farming level 25