Template:Recipe summary/doc

Shortcut:
{{rs}}

UsageEdit

{{recipe summary
| category    = 
| servings    = 
| time        = 
| difficulty  = <!-- Should if provided contain a number between 1 and 5 -->
| image       = 
| energy      = <!-- Should if provided contain the number of calories and cal (can include kJ)-->
| note        = 
}}

ExamplesEdit

Named parameters, All valuesEdit

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


Positional parameters, All valuesEdit

{{recipe summary|Dessert recipes|1-2|40 minutes|3|[[Image:Hamburger_sandwich.jpg|300px]]|100 cal (400 kJ)|Requires specific tools}}

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
Note Requires specific tools


Named parameters, Partial valuesEdit

{{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 parametersEdit

{{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 parametersEdit

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 parametersEdit

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

See alsoEdit