แม่แบบ:คุณค่าทางโภชนาการ

{{{name}}}
ประมาณร้อยละคร่าว ๆ โดยใช้การแนะนำของสหรัฐสำหรับผู้ใหญ่
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

This is the {{คุณค่าทางโภชนาการ}} infobox template.

วิธีใช้ แก้

{{คุณค่าทางโภชนาการ
 | name     =
 | kJ       =
 | carbs    =
 | fat      =
 | protein  =
 | note =
}}
  • ช่องที่ต้องการ - |name=, |kJ=, |carbs=, |fat=, |protein=. You must state the units that are being used, except for kJ which is in kilo Joules. E.g. |fat= 3 g, the units are usually expressed in grams (g).
    • หมายเหตุ - 1 kJ = 4.2 calories (kCal).
  • ช่องตัวเลือก - |sugars=, |lactose=, |satfat=, |transfat=, |monofat=, |polyfat=, |omega3fat=, |omega6fat=, |fiber=, |starch=, |water=, |alcohol= and |caffeine=. Again, you must state the units that are being used.
  • Contributor defined fields - Additional fields can be added using the |opt1n= and |opt1v= fields, where n is for name and v is for value. Up to four optional fields are supported, |opt1n= & |opt1v= up to |opt4n= & |opt4v=.
The following optional variables are converted into percentages of RDA (taken as averages for males and females aged 25-50 years from the USDA 2000 recommendation)
  • Minerals (in mg) - |calcium_mg=, |iron_mg=, |phosphorus_mg=, |magnesium_mg=, |manganese_mg=, |sodium_mg=, |potassium_mg=, |zinc_mg=
  • Vitamins (in mg, μg, or international units) - |vitA_ug=, |betacarotene_ug= (subcategory of vitamin A!), |thiamin_mg= (Vit. B1), |riboflavin_mg= (Vit. B2), |niacin_mg= (Vit. B3), |pantothenic_mg= (pantothenic acid), |vitB6_mg=, |folate_ug=, |vitB12_ug=, |vitC_mg=, |vitD_ug=, |vitD_iu= (in IU), |vitE_mg=, |vitK_ug=.
Other optional variables and flags
  • Footnote - |note= a convenient way to indicate serving sizes or edible parts, e.g. 1 banana is 100 to 150 g or other information.
  • Data source - |source= sets the source of the information used in the template.
    • USDA - |source_usda= a "yes" in this field will automatically set the source as the USDA database.
  • Suppression of RDA explanation - |noRDA = a value of "yes" will suppress the USDA recommenced daily value that is automatically assigned as part of several fields.
  • Location - |right = - a value of "yes" will cause the table to appear on the right side of the article.
Additional notes
  • According to convention, there should be a space between the number and the unit: "14 g" and not "14g".
  • Don't specify numbers in too many decimals. Food is often very variable; the USDA tables provide a standard deviation as an indication for how accurate the number is. If it says 1.2345 g with a standard deviation of 0.08 g, then 1.2 g is the highest accuracy worth mentioning.
  • Splitting up components that are present in trace amounts is not very meaningful (e.g. 1.5 g fats of which 0.5 g unsaturated).
  • The author of the template recommendeds to include only vitamins and minerals for which this product is considered to be a major source, in order to prevent clogging up the article with a huge table. As a guideline:
    • staple foods: an amount that provides 10,000 kJ should provide well over 100% of the RDI.
    • meats and such: same, but for 4,000 kJ.
    • vegetables, other low-calorie solid food, fruits: same, but for 400 g.
    • other products: use an amount that one could reasonably eat on a daily basis.

Nutritional values can be found e.g. in the USDA National Nutrient Database. Note that fibers are counted as carbohydrates.

ตัวอย่าง แก้

Foonuts
คุณค่าทางโภชนาการต่อ 100 กรัม (3.5 ออนซ์)
พลังงาน2,450 กิโลจูล (590 กิโลแคลอรี)
22 g
แป้ง8 g
น้ำตาล 5 g
1 g
ใยอาหาร9 g
50 g
อิ่มตัว7 g
ทรานส์3 g
ไม่อิ่มตัวมีพันธะคู่เดี่ยว25 g
ไม่อิ่มตัวมีพันธะคู่หลายคู่16 g
1 g
2 g
24 g
วิตามิน
วิตามินเอ
(2%)
12 μg
(1%)
120 μg
ไทอามีน (บี1)
(87%)
1 มก.
ไรโบเฟลวิน (บี2)
(167%)
2 มก.
ไนอาซิน (บี3)
(3%)
0.5 มก.
(2%)
0.1 มก.
วิตามินบี6
(77%)
1 มก.
โฟเลต (บี9)
(0%)
1.5 μg
วิตามินบี12
(21%)
0.5 μg
วิตามินซี
(24%)
20 มก.
วิตามินดี
(67%)
10 μg
วิตามินอี
(33%)
5 มก.
วิตามินเค
(10%)
10 μg
แร่ธาตุ
แคลเซียม
(20%)
200 มก.
เหล็ก
(38%)
5 มก.
แมกนีเซียม
(3%)
10 มก.
แมงกานีส
(57%)
1.2 มก.
ฟอสฟอรัส
(7%)
50 มก.
โพแทสเซียม
(2%)
80 มก.
โซเดียม
(3%)
40 มก.
สังกะสี
(4%)
0.4 มก.
องค์ประกอบอื่น
น้ำ5 g
แอลกอฮอล์ (เอธานอล)1 g
คาเฟอีน20 mg

Footnote text here
ประมาณร้อยละคร่าว ๆ โดยใช้การแนะนำของสหรัฐสำหรับผู้ใหญ่
แหล่งที่มา: USDA FoodData Central
{{คุณค่าทางโภชนาการ
 | name = Foonuts
 | kJ = 2450
 | protein = 24 g
 | fat = 50 g
 | satfat = 7 g
 | transfat = 3 g
 | monofat = 25 g
 | polyfat = 16 g
 | omega3fat = 1 g
 | omega6fat = 2 g
 | carbs = 22 g
 | starch = 8 g
 | sugars = 5 g
 | lactose = 1 g
 | fibre = 9 g
 | sodium_mg = 40
 | potassium_mg = 80
 | vitA_ug = 12
 | betacarotene_ug = 120
 | vitC_mg = 20
 | thiamin_mg = 1
 | riboflavin_mg = 2
 | niacin_mg = 0.5
 | pantothenic_mg = 0.1
 | folate_ug = 1.5
 | vitD_ug = 10
 | vitE_mg = 5
 | vitK_ug = 10
 | iron_mg = 5
 | magnesium_mg = 1.2
 | manganese_mg = 1.2
 | phosphorus_mg = 50
 | zinc_mg = 0.4
 | calcium_mg = 200
 | vitB6_mg = 1
 | vitB12_ug = 0.5
 | water = 5 g
 | alcohol = 1 g
 | caffeine = 20 mg
 | source_usda = 1
 | note  = Footnote text here
 | right = yes
}}

will generate

Template editing แก้

This is a complex template that is used by over 150 articles as of October 2008. Breaking this template will cause problems in all those articles, so please use {{nutritionalvalue/sandbox}} for experimenting with the layout.

In the HTML version: don't put line breaks into the template around the {{#if:...}} parser functions, because they will end up as line breaks above the table.

ดูเพิ่ม แก้