Template:Nutrition Summary/doc

Usage

edit

This template allows to display nutrition facts in recipes.

NUTRITION FACTS 
Serving Size: 1 cup (250 g)
Servings Per Recipe: 4
Amount per serving
Calories 290
Calories from fat 110
Total Fat 12 g
Saturated Fat 4 g
Cholesterol 60 mg
Sodium 400 mg
Total Carbohydrates 30 g
Dietary Fiber 4 g
Sugars 6 g
Protein 15 g
Vitamin A 30%
Vitamin C 20%
Calcium 50%
Iron 20%
{{Nutrition Summary
|ServingSize          =1 cup (250 g)
|Servings             =4
|Cals                 =290
|FatCals              =110
|TotalFat             =12 g
|SatFat               =4 g
|Cholesterol          =60 mg
|Sodium               =400 mg
|Carbs                =30 g
|Fiber                =4 g
|Sugars               =6 g
|Protein              =15 g
|VitaminA             =30%
|VitaminC             =20%
|Calcium              =50%
|Iron                 =20%
}}

This template can be expressed in shortened form:

NUTRITION FACTS 
Serving Size: 1 cup (250 g)
Servings Per Recipe: 4
Amount per serving
Calories 290
Calories from fat 110
Total Fat 12 g
Saturated Fat 4 g
Cholesterol 60 mg
Sodium 400 mg
Total Carbohydrates 30 g
Dietary Fiber 4 g
Sugars 6 g
Protein 15 g
Vitamin A 30%
Vitamin C 20%
Calcium 50%
Iron 20%
{{Nutrition Summary|1 cup (250 g)|4|290|110|12 g|4 g|60 mg|400 mg|30 g|4 g|6 g|15 g|30%|20%|50%|20%}}

See also

edit

No description.

Template parameters

ParameterDescriptionTypeStatus
Serving sizeServingSize 1

Serving size of a recipe

Example
1 cup (250 g)
Stringrequired
Number of servingsServings 2

Number of servings in a recipe

Example
4
Numberrequired
CaloriesCals 3

Number of calories per serving in a recipe

Example
100
Numberrequired
Calories from FatFatCals 4

Number of calories from fat per serving in a recipe

Example
50
Numberrequired
Total FatTotalFat 5

Amount of total fat per serving in a recipe

Example
10 g
Stringrequired
Saturated FatSatFat 6

Amount of saturated fat per serving in a recipe

Example
5 g
Stringrequired
CholesterolCholesterol 7

Amount of cholesterol per serving in a recipe

Example
50 mg
Stringrequired
SodiumSodium 8

Amount of sodium per serving in a recipe

Example
500 mg
Stringrequired
Total CarbohydratesCarbs 9

Amount of total carbohydrates per serving in a recipe

Example
20 g
Stringrequired
Dietary FiberFiber 10

Amount of dietary fiber per serving in a recipe

Example
5 g
Stringrequired
SugarsSugars 11

Amount of sugars per serving in a recipe

Example
5 g
Stringrequired
ProteinProtein 12

Amount of protein per serving in a recipe

Example
10 g
Stringrequired
Vitamin AVitaminA 13

Amount of vitamin A per serving in a recipe

Example
30%
Stringrequired
Vitamin CVitaminC 14

Amount of vitamin C per serving in a recipe

Example
30%
Stringrequired
CalciumCalcium 15

Amount of calcium per serving in a recipe

Example
30%
Stringrequired
IronIron 16

Amount of iron per serving in a recipe

Example
30%
Stringrequired