ઢાંચો:Nutritionalvalue/doc

વિકિપીડિયામાંથી

ઉદાહરણ[ફેરફાર કરો]

પોષણ મુલ્યો
આહારનું પોષણ મુલ્ય પ્રતિ 100 g (3.5 oz)
શક્તિ2,450 kJ (590 kcal)
કાર્બોદિત પદાર્થો
૨૨ ગ્રામ
કાંજી૮ ગ્રામ
શર્કરા
લેક્ટોઝ
૫ ગ્રામ
૧ ગ્રામ
રેષા૯ ગ્રામ
૫૦ ગ્રામ
સંતૃપ્ત ચરબી૭ ગ્રામ
ટ્રાન્સ૩ ગ્રામ
મોનોસેચ્યુરેટેડ૨૫ ગ્રામ
પોલીસેચ્યુરેટેડ૧૬ ગ્રામ
૧ ગ્રામ
૨ ગ્રામ
૨૪ ગ્રામ
વિટામિનો
વિટામિન એ
(2%)
12 μg
(1%)
120 μg
થાયામીન (બી)
(87%)
1 mg
રીબોફ્લેવીન (બી)
(167%)
2 mg
નાયેસીન (બી)
(3%)
0.5 mg
પેન્ટોથેનિક એસિડ (બી)
(2%)
0.1 mg
વિટામિન બી
(77%)
1 mg
ફૉલેટ (બી)
(0%)
1.5 μg
વિટામિન બી૧૨
(21%)
0.5 μg
વિટામિન સી
(24%)
20 mg
વિટામિન ડી
(67%)
10 μg
વિટામિન ઇ
(33%)
5 mg
વિટામિન કે
(10%)
10 μg
મિનરલ
કેલ્શિયમ
(20%)
200 mg
લોહતત્વ
(38%)
5 mg
મેગ્નેશિયમ
(3%)
10 mg
ફોસ્ફરસ
(7%)
50 mg
પોટેશિયમ
(2%)
80 mg
સોડિયમ
(3%)
40 mg
જસત
(4%)
0.4 mg
અન્ય ઘટકો
પાણી૫ ગ્રામ
આલ્કોહોલ (ethanol)૧ ગ્રામ
કેફિન૨૦ મિલિ ગ્રામ

Footnote text here
  • એકમો
  • μg = માઇક્રોગ્રામ • mg = મિલિગ્રામ
  • IU = આંતરરાષ્ટ્રિય એકમો
ટકાવારી અમેરિકા‍ ‍(USA)ના સંદર્ભમાં પુખ્ત વયના વ્યક્તિ માટે ભલામણ પર આધારિત છે.
સ્ત્રોત: USDA Nutrient Database
{{nutritionalvalue
| name = પોષણ મુલ્યો 
| kJ=2450 
| protein=૨૪ ગ્રામ 
| fat=૫૦ ગ્રામ 
| satfat=૭ ગ્રામ 
| transfat=૩ ગ્રામ 
| monofat = ૨૫ ગ્રામ 
| polyfat = ૧૬ ગ્રામ 
| omega3fat=૧ ગ્રામ 
| omega6fat=૨ ગ્રામ 
| carbs = ૨૨ ગ્રામ 
| starch=૮ ગ્રામ 
| sugars=૫ ગ્રામ 
| lactose=૧ ગ્રામ 
| fiber = ૯ ગ્રામ 
| 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=10 
| phosphorus_mg=50 
| zinc_mg=0.4 
| calcium_mg=200 
| vitB6_mg=1 
| vitB12_ug=0.5 
| water=૫ ગ્રામ 
| alcohol=૧ ગ્રામ 
| caffeine=૨૦ મિલિ ગ્રામ 
| source_usda=૧ 
| 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, 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:

  • Optional footnote: note. (Convenient to indicate serving sizes or edible parts, e.g. 1 banana is 100 to 150 g)
  • 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".
  • 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.

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.

Translations[ફેરફાર કરો]

If you translate this template for use in other language wikipedias, you could consider keeping the English variable names, so that you can simply copy/paste existing tables from English to your language (and back). Or you could make two versions, one using native-language variable names, and the other using the English names.