Template:Recipe/doc

From Coral Island Wiki
Jump to navigation Jump to search
This is the documentation page for Recipe.
It contains usage information, categories, and other content not part of the original template page.
Lua logo.png
This template uses Module:Recipe (edit|hist), a script written in Lua.

This template displays a list of ingredients for a recipe in a similar style to the in-game menus. Categories are automatically created for each ingredient with the format [[Category:Uses item]].

Syntax

{{Recipe
|medium = utensil or machine used
|items = semicolon list of ingredients
|time = process duration if any
|yield = yield amount
}}

  • medium — crafting medium. Defaults to in-menu crafting
  • yield — yield amount. Defaults to 1
  • product — yielded product's name. Defaults to PAGENAME

Examples

{{Recipe
|items = Gold ore*5;Coal
|medium = Furnace
|yield = 3
|time = 24h
|product = Gold bar
}}

yields:

Gold ore.png Gold ore × 5Coal.png Coal × 1
Gold bar.png
×3

{{Recipe
|items = Apple;Wheat flour;Butter//Large butter;Any Honey
|medium = Oven
|product = Apple pie
}}

yields:

Apple.png Apple × 1Wheat flour.png Wheat flour × 1Butter.png Butter × 1 or Large butter.png Large butter × 1File:Any Honey.png Any Honey × 1
Apple pie.png
×1

{{Recipe
|items = Any insect;Strawberry*4/3
|product = Sprinkler II
}}

yields:

Template Data

No description.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
No parameters specified