Lompat ke isi

Templat:Nilai nutrisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Revisi sejak 25 Maret 2008 11.25 oleh IVP (bicara | kontrib) (coppas dari en)
(beda) ← Revisi sebelumnya | Revisi terkini (beda) | Revisi selanjutnya → (beda)


Example

Foonuts
Nilai khasiat per 100 g (3.527 oz)
Tenaga 590 kcal   2450 kJ
Karbohidrat     22 g
- Kanji  8 g
- Gula  5 g
  - Laktosa 1 g  
- Serat diet  9 g  
Lemak50 g
- tak tepu  7 g
- trans  3 g
- monotaktepu  25 g  
- politaktepu  16 g  
  - lemak omega-3 1 g  
  - lemak omega-6 2 g  
Protein 24 g
Air5 g
Alkohol1 g
Kafeina20 mg
Vitamin A  12 μg1%
Tiamina (Vit. B1)  1 mg  77%
Riboflavin (Vit. B2)  2 mg  133%
Niasin (Vit. B3)  0.5 mg  3%
Asid pantotenik (B5)  0.1 mg 2%
Vitamin B6  1 mg77%
Folik asid (Vit. B9)  1.5 μg 0%
Vitamin B12  0.5 μg  21%
Vitamin C  20 mg33%
Vitamin D  10 μg200%
Vitamin E  5 mg33%
Vitamin K  10 μg10%
Ferum  5 mg40%
Fosforus  50 mg7%
Kalium  80 mg  2%
Kalsium  200 mg20%
Magnesium  10 mg3% 
Natrium  40 mg3%
Zink  0.4 mg4%
Footnote text here

{{nutritionalvalue| 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 | 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=10 | 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}}

Explanation

  • Required variables: name, kJ, carbs, fat, protein. Supply units (except for kJ which is in kJ).
  • Optional variables: sugars, lactose, satfat, transfat, monofat, polyfat, omega3fat, omega6fat, fiber, fibre, starch, water, alcohol, caffeine. Supply units (normally g).
  • Optional freeformat variables (name and value): opt1n, opt1v, etc. up to opt4n and 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):

  • Optional minerals (in mg): calcium_mg, iron_mg, phosphorus_mg, magnesium_mg, sodium_mg, potassium_mg, zinc_mg
  • Optional vitamins (in mg, μg, or international units): vitA_ug, 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:

  • Optional footnote: note
  • Optional data source: source, or as a flag: source_usda=1 for the USDA database
  • Optional suppression of RDA explanation: noRDA=1
  • Optional flags: right=1 (table will be floating on the right)

Further remarks:

  • According to convention, there should be a space between the number and the unit: "14 g" and not "14g".
  • 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.

Template editing

Don't put linebreaks into the template around the {{#if:...}} parser functions, because they will end up as linebreaks above the table.

Maybe someone can do this in wikitable format rather than raw HTML, if you know how to combine that with the {{#if: }} conditionals. Please experiment in Template:NutritionalvalueTest to prevent breaking article pages.

See also