Template:Nutrition Summary/doc
This is a documentation subpage for Template:Nutrition Summary It may contain usage information, categories and other content that is not part of the original template page. |
This template is deprecated as it is superseded by Template:Nutrition summary new (based on newer 2016 format). New recipes should use the newer template, and existing recipes with the older template should be replaced by newer template. |
Usage
[edit source]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 source]No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Serving size | ServingSize 1 | Serving size of a recipe
| String | required |
Number of servings | Servings 2 | Number of servings in a recipe
| Number | required |
Calories | Cals 3 | Number of calories per serving in a recipe
| Number | required |
Calories from Fat | FatCals 4 | Number of calories from fat per serving in a recipe
| Number | required |
Total Fat | TotalFat 5 | Amount of total fat per serving in a recipe
| String | required |
Saturated Fat | SatFat 6 | Amount of saturated fat per serving in a recipe
| String | required |
Cholesterol | Cholesterol 7 | Amount of cholesterol per serving in a recipe
| String | required |
Sodium | Sodium 8 | Amount of sodium per serving in a recipe
| String | required |
Total Carbohydrates | Carbs 9 | Amount of total carbohydrates per serving in a recipe
| String | required |
Dietary Fiber | Fiber 10 | Amount of dietary fiber per serving in a recipe
| String | required |
Sugars | Sugars 11 | Amount of sugars per serving in a recipe
| String | required |
Protein | Protein 12 | Amount of protein per serving in a recipe
| String | required |
Vitamin A | VitaminA 13 | Amount of vitamin A per serving in a recipe
| String | required |
Vitamin C | VitaminC 14 | Amount of vitamin C per serving in a recipe
| String | required |
Calcium | Calcium 15 | Amount of calcium per serving in a recipe
| String | required |
Iron | Iron 16 | Amount of iron per serving in a recipe
| String | required |