Jump to content

Template:Recipe: Difference between revisions

From The Petit Planet Wiki
mNo edit summary
ReisuDesign (talk | contribs)
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Template:Recipe/styles.css" />{{#invoke:Recipe|main}}<!--
<includeonly>{{#invoke:Recipe|main}}<!--


-->{{#ifeq:{{lc:{{{type|}}}}}|cooking|<!--
-->{{#ifeq:{{lc:{{{type|}}}}}|cooking|<!--
Line 5: Line 5:
   -->|+templateargs = kitchenware, item_1_quality, item_2_quality, item_3_quality, item_4_quality<!--
   -->|+templateargs = kitchenware, item_1_quality, item_2_quality, item_3_quality, item_4_quality<!--
   -->|item_1 = {{{item_1|}}}; {{{item_1_type_1|}}}; {{{item_1_type_2|}}}<!--
   -->|item_1 = {{{item_1|}}}; {{{item_1_type_1|}}}; {{{item_1_type_2|}}}<!--
  -->|item_1-delimiter = ;<!--
   -->|item_2 = {{{item_2|}}}; {{{item_2_type_1|}}}; {{{item_2_type_2|}}}<!--
   -->|item_2 = {{{item_2|}}}; {{{item_2_type_1|}}}; {{{item_2_type_2|}}}<!--
  -->|item_2-delimiter = ;<!--
   -->|item_3 = {{{item_3|}}}; {{{item_3_type_1|}}}; {{{item_3_type_2|}}}<!--
   -->|item_3 = {{{item_3|}}}; {{{item_3_type_1|}}}; {{{item_3_type_2|}}}<!--
  -->|item_3-delimiter = ;<!--
   -->|item_4 = {{{item_4|}}}; {{{item_4_type_1|}}}; {{{item_4_type_2|}}}<!--
   -->|item_4 = {{{item_4|}}}; {{{item_4_type_1|}}}; {{{item_4_type_2|}}}<!--
  -->|item_4-delimiter = ;<!--
  -->|recipe = {{{item_1|}}}; {{{item_1_type_1|}}}; {{{item_1_type_2|}}}; <!--
            -->{{{item_2|}}}; {{{item_2_type_1|}}}; {{{item_2_type_2|}}}; <!--
-->{{{item_3|}}}; {{{item_3_type_1|}}}; {{{item_3_type_2|}}}; <!--
-->{{{item_4|}}}; {{{item_4_type_1|}}}; {{{item_4_type_2|}}}<!--
  -->|recipe-delimiter = ;<!--
   -->}}<!--
   -->}}<!--
-->}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude>
-->}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude>

Latest revision as of 10:31, 12 September 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Recipe, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Recipe.css.

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

[edit source]

{{Recipe
|type = Cooking/Forging/Alchemy/Processing/Creation
|character = character to use
|time = process duration
|sort = display order of items
|yield = yield amount
|item1 = amount1
|item2 = amount2
|itemX = amountX
}}

  • time - format using the keywords h, m and s to determine hour, minutes, and seconds, respectively. Defaults to m if no keyword is used.
  • sort - determines the order of the recipe, split by semicolons
  • yield - denotes the yield amount. Defaults to 1

Examples

[edit source]

{{Recipe|Stone = 5|Raw Timber = 3|page = Maizeglow Table Lamp|type = Craft}} yields:

Template Data

[edit source]

No description.

Template parameters[Edit template data]

This template has custom formatting.

ParameterDescriptionTypeStatus
No parameters specified