Template:Recipe: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#invoke:Recipe|main}}</includeonly>")
 
No edit summary
 
Line 1: Line 1:
<includeonly>{{#invoke:Recipe|main}}</includeonly>
<includeonly>{{#invoke:Recipe|main}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude>

Latest revision as of 07:07, 30 January 2024

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.
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