Template:Nutrition summary new/doc
This is a documentation subpage for Template:Nutrition summary new It may contain usage information, categories and other content that is not part of the original template page. |
Usage
editThis template shows nutrition facts on recipes. It is based on newer 2016 format of nutrition facts label. Simply enter the nutrients and it will calculate the amount of calories and DV in a serving.
This template is intended to be used in recipes with 4 or more, or single servings. For two- or three-serving recipes, see the double-column template, Template:Nutrition summary new/2c.
This is example of nutrition summary of frozen lasagna.
Nutrition Facts | ||
---|---|---|
4 servings per recipe | ||
Serving size | 1 cup (227g) | |
Amount per serving Calories |
277 | |
% Daily Value* | ||
Total Fat 9g | 12% | |
Saturated Fat 4.5g | 23% | |
Trans Fat 0g | ||
Cholesterol 35mg | 12% | |
Sodium 850mg | 37% | |
Total Carbohydrates 34g | 12% | |
Dietary Fiber 4g | 14% | |
Total Sugars 6g | ||
Includes 0g Added Sugars | 0% | |
Protein 15g | 30% | |
Vitamin D 0mcg | 0% | |
Calcium 320mg | 25% | |
Iron 1.6mg | 9% | |
Potassium 510mg | 11% | |
* The % Daily Value (DV) tells you how much a nutrient in a serving of food contributes to a daily diet. 2,000 calories a day is used for general nutrition advice. |
{{Nutrition summary new |servings =4 |servingsize =1 cup (227g) |totalfat =9 |saturatedfat =4.5 |transfat =0 |cholesterol =35 |sodium =850 |carbohydrates =34 |dietaryfiber =4 |totalsugars =6 |addedsugars =0 |protein =15 |vitamind =0 |calcium =320 |iron =1.6 |potassium =510 }}
The following template is the shorter form:
Nutrition Facts | ||
---|---|---|
4 servings per recipe | ||
Serving size | 1 cup (227g) | |
Amount per serving Calories |
277 | |
% Daily Value* | ||
Total Fat 9g | 12% | |
Saturated Fat 4.5g | 23% | |
Trans Fat 0g | ||
Cholesterol 35mg | 12% | |
Sodium 850mg | 37% | |
Total Carbohydrates 34g | 12% | |
Dietary Fiber 4g | 14% | |
Total Sugars 6g | ||
Includes 0g Added Sugars | 0% | |
Protein 15g | 30% | |
Vitamin D 0mcg | 0% | |
Calcium 320mg | 25% | |
Iron 1.6mg | 9% | |
Potassium 510mg | 11% | |
* The % Daily Value (DV) tells you how much a nutrient in a serving of food contributes to a daily diet. 2,000 calories a day is used for general nutrition advice. |
{{Nutrition summary new|4|1 cup (227g)|9|4.5|0|35|850|34|4|6|0|15|0|320|1.6|510}}
See also
edit
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Number of servings | servings 1 | Number of servings in a recipe
| Number | required |
Serving size | servingsize 2 | Serving size of a recipe
| String | required |
Total Fat | totalfat 3 fat | Amount of total fat per serving in a recipe in grams
| Number | required |
Saturated Fat | saturatedfat 4 saturated satfat | Amount of saturated fat per serving in a recipe in grams
| Number | required |
Trans Fat | transfat 5 | Amount of trans fat per serving in a recipe in grams
| Number | required |
Cholesterol | cholesterol 6 | Amount of cholesterol per serving in a recipe in milligrams
| Number | required |
Sodium | sodium 7 | Amount of sodium per serving in a recipe in milligrams
| Number | required |
Total Carbohydrates | totalcarbohydrates carbohydrates totalcarbs carbs 8 | Amount of total carbohydrates per serving in a recipe in grams
| Number | required |
Dietary Fiber | dietaryfiber 9 fiber dietaryfibre fibre | Amount of dietary fiber per serving in a recipe in grams
| Number | required |
Total Sugars | totalsugars 10 sugars totalsugar sugar | Amount of total sugars per serving in a recipe in grams
| Number | required |
Added Sugars | addedsugars 11 addedsugar | Amount of added sugars per serving in a recipe in grams
| Number | required |
Protein | protein 12 | Amount of protein per serving in a recipe in grams
| Number | required |
Vitamin D | vitamind 13 vitd | Amount of vitamin D per serving in a recipe in micrograms
| Number | required |
Calcium | calcium 14 | Amount of calcium per serving in a recipe in milligrams
| Number | required |
Iron | iron 15 | Amount of iron per serving in a recipe in milligrams
| Number | required |
Potassium | potassium 16 | Amount of potassium per serving in a recipe in milligrams
| Number | required |