Template:Recipe summary/doc

From Recidemia
Jump to: navigation, search

Examples[edit]

Named parameters, All values[edit]

{{recipe summary|
| category    = Dessert recipes
| servings    = 1-2
| time        = 30 minutes
| rating      = 3
| energy      = 100 Cal (400 kJ)
| image       = [[Image:Hamburger_sandwich.jpg|300px]]
}}
Recipe summary/doc
Hamburger sandwich.jpg
Category: Dessert recipes
Servings: 1-2
Energy: 100 Cal (400 kJ)
Time: 30 minutes
Difficulty: Medium


Positional parameters, All values[edit]

{{recipe summary|Dessert recipes|1-2|30 minutes|3|[[Image:Hamburger_sandwich.jpg|300px]]|100 Cal (400 kJ)}}

Note that some parameters should not have any newlines or spaces around them when using positional parameters as it will break the template.

Recipe summary/doc
Hamburger sandwich.jpg
Category: Dessert recipes
Servings: 1-2
Energy: 100 Cal (400 kJ)
Time: 40 minutes
Difficulty: Medium


Named parameters, Partial values[edit]

{{recipe summary|
| category    = Dessert recipes
| servings    = 1-2
| time        = 30 minutes
| image       = [[Image:Hamburger_sandwich.jpg|300px]]
}}
Recipe summary/doc
Hamburger sandwich.jpg
Category: Dessert recipes
Servings: 1-2
Time: 30 minutes


Positional parameters, Partial values, Subsequent positional parameters[edit]

{{recipe summary|Dessert recipes|1-2|30 minutes||[[Image:Hamburger_sandwich.jpg|300px]]||}}</nowiki>
Recipe summary/doc
Hamburger sandwich.jpg
Category: Dessert recipes
Servings: 1-2
Time: 30 minutes


Positional parameters, Partial values, No subsequent parameters[edit]

If you do not need later positional parameters, you can omit the "|"s.

{{recipe summary|Dessert recipes|1-2|30 minutes}}
Recipe summary/doc
Category: Dessert recipes
Servings: 1-2
Time: 30 minutes


Positional parameters, Partial values, Named subsequent parameters[edit]

As above, if you do not need later positional parameters, you can omit the "|"s. You may wish to include these via named parameters for clarity or brevity:

{{recipe summary|Dessert recipes|1-2|30 minutes|image=[[Image:Hamburger_sandwich.jpg|300px]]}}
Recipe summary/doc
Hamburger sandwich.jpg
Category: Dessert recipes
Servings: 1-2
Time: 30 minutes