Template:ItemRecipe: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(add more items)
mNo edit summary
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
<includeonly>{{#switch:{{{1|}}}
          |Mint Chocolate={{IngredientList | Mint, Sugarcane, Butter, Cocoa Bean | {{{2|}}} }}
    |"My Hero" Cookie={{name|Wheat}}<br>{{name|Butter}}<br>{{name|Sweets|link=:Category:Sweets{{!}}Any Sweet}}<!--TODO: Wheat, Butter, Sweets (Cocoa Bean or Vanilla)-->
          |Pumpkin Soup={{IngredientList | Vegetables, Milk, Ginger, Pumpkin | {{{2|}}} }}
    |Apple Pie={{name|Apple}}<br>{{name|Wheat}}<br>{{name|Butter}}
          |Lancetfish Paella={{IngredientList | Lancetfish, Shrimp, Seafood, Tomato, Rice | {{{2|}}} }}
    |Apple Sorbet={{name|Slush Ice}}<br>{{name|Apple}}<br>{{name|Sugarcane}}
          |Bouillabaisse={{IngredientList | Seafood, Seafood, Shrimp, Tomato, Vegetables | {{{2|}}} }}
    |Apple-Cider-Glazed Salmon={{name|Salmon}}<br>{{name|Sugarcane}}<br>{{name|Apple}}
          |Chowder={{IngredientList | Seafood, Milk, Potato, Vegetables | {{{2|}}} }}
    |Arendellian Pickled Herring={{name|Herring}}<br>{{name|Lemon}}<br>{{name|Onion}}<br>{{name|Garlic}}<br>{{name|Spices & Herbs|link=:Category:Spices{{!}}Any Spice}}
          |Hors d'Oeuvres={{IngredientList | Spices | {{{2|}}} }}
    |Aurora's Cake={{name|Wheat}}<br>{{name|Sugarcane}}<br>{{name|Egg}}<br>{{name|Fruit|link=:Category:Fruit{{!}}Any Fruit}}<br>{{name|Milk}}
          |Gazpacho={{IngredientList | Cucumber, Tomato, Onion, Spices | {{{2|}}
    |Baked Carp={{name|Carp}}<br>{{name|Butter}}


<!--
<!--
{{IngredientList | XXXXXX | addCategories }}
There are also optional parameters that can be used:
| addCategories }}
<pre>{{ItemRecipe| <<Meal Name>> | addCategories }}</pre>
add addCategories param to IngredientList
 
Switch to IngredientList template, remove Meals category (automatically added by infobox)


If optional parameters are not provided, the default size=22, the default text label will display, and there will be no link.


Fix order of ingredients to match in-game display, switch to IngredientList template, remove Meals category (automatically added by infobox)
If <code>addCategories</code> is provided, the template will add categories related to the ingredients contained in the Meal to the page (e.g. Fish-Based Meal, Fruit-Based Meal, etc.). It is currently not intended to be used in this way.
-->
-->
==Examples==
<pre>{{ItemRecipe | Pumpkin Soup }}</pre>
results in...


{{ItemRecipe | Pumpkin Soup}}
<!--
'''Regular:'''<br>
'''Regular:'''<br>
{{name|Mint}}<br>
{{name|Mint}}<br>
Line 221: Line 369:
{{ItemRecipe | Pumpkin Soup | noCategories }}
{{ItemRecipe | Pumpkin Soup | noCategories }}


 
-->
 
[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Latest revision as of 19:34, 2 May 2024

Description

This template is used to insert the list of ingredients for a Meal, formatted with the appropriate name or ingredient template. Its intended use is on in tables on pages other than the Meal's page, such as the Cooking page or Ingredient pages.

This template allows us to easily insert and maintain Meal Recipes in multiple locations across the wiki, while still allowing the recipe on the Meal's page to be easily editable by any wiki contributor.

Usage

This template can be used by entering the following onto a relevant page:

{{ItemRecipe | <<Meal Name>>}}

Examples

{{ItemRecipe | Pumpkin Soup }}

results in...

Any Vegetable
Milk
Ginger
Pumpkin