Changes

Jump to navigation Jump to search
Line 25: Line 25:  
* <code>nutrition_data_per</code>: <code>100g</code> or <code>serving</code>
 
* <code>nutrition_data_per</code>: <code>100g</code> or <code>serving</code>
 
* <code>serving_size</code>: (optional, but very useful, in particular if the nutrition facts are specified per serving)
 
* <code>serving_size</code>: (optional, but very useful, in particular if the nutrition facts are specified per serving)
* for each nutrient:
+
* For each nutrient:
 
** <code>{nutrient-id}</code> (e.g. <code>saturated-fat</code>, <code>energy-kcal</code>): value for the nutrient, for the size specified in the field  <code>nutrition_data_per</code>. This is a string made of the modifier ("<", ">" or "") and the value without unit ("17.8", "34,7", "< 0.1", etc).
 
** <code>{nutrient-id}</code> (e.g. <code>saturated-fat</code>, <code>energy-kcal</code>): value for the nutrient, for the size specified in the field  <code>nutrition_data_per</code>. This is a string made of the modifier ("<", ">" or "") and the value without unit ("17.8", "34,7", "< 0.1", etc).
 
** <code>{nutrient-id}_unit</code> (e.g. saturated-fat_unit, energy-kcal_unit): the unit of the value passed (e.g. "g", "mg", "kcal", "kJ", "%", "")
 
** <code>{nutrient-id}_unit</code> (e.g. saturated-fat_unit, energy-kcal_unit): the unit of the value passed (e.g. "g", "mg", "kcal", "kJ", "%", "")
72

edits

Navigation menu