Difference between revisions of "Template:Infobox nutritional value"

From Eat Every Plant
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
(One intermediate revision by the same user not shown)
Line 29: Line 29:
 
         | label4 = [[Dietary fiber]]
 
         | label4 = [[Dietary fiber]]
 
         | data4 = {{{fiber|}}}
 
         | data4 = {{{fiber|}}}
         | label5 = [[Dietary fibre]]
+
         | label5 = [[Dietary fiber|Dietary fibre]]
 
         | data5 = {{{fibre|}}}
 
         | data5 = {{{fibre|}}}
 
     }} }}
 
     }} }}
Line 96: Line 96:
  
 
         | label2 = [[Vitamin A|Vitamin A equiv.]]<!--
 
         | label2 = [[Vitamin A|Vitamin A equiv.]]<!--
                     -->{{#if:{{{betacarotene_ug|}}} |<div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[beta-carotene]]</div>}}<!--
+
                     -->{{#if:{{{betacarotene_ug|}}} |<div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[beta-Carotene]]</div>}}<!--
 
                     -->{{#if:{{{lutein_ug|}}} |<div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[lutein]] [[zeaxanthin]]</div>}}
 
                     -->{{#if:{{{lutein_ug|}}} |<div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[lutein]] [[zeaxanthin]]</div>}}
 
         | data2 = {{#if:{{{vitA_ug|}}} |{{align|right|({{#expr:{{{vitA_ug}}}/8 round 0}}%)}} {{{vitA_ug}}} μg}}<!--
 
         | data2 = {{#if:{{{vitA_ug|}}} |{{align|right|({{#expr:{{{vitA_ug}}}/8 round 0}}%)}} {{{vitA_ug}}} μg}}<!--
Line 106: Line 106:
 
         | data3 = {{#if:{{{vitA_iu|}}} |<!---Following calculation commented out as RAE is the current RDA system and IU gives nonsense percentages: {{align|right|({{#expr:{{{vitA_iu}}}/30 round 0}}%)}}---> {{{vitA_iu}}} IU}}
 
         | data3 = {{#if:{{{vitA_iu|}}} |<!---Following calculation commented out as RAE is the current RDA system and IU gives nonsense percentages: {{align|right|({{#expr:{{{vitA_iu}}}/30 round 0}}%)}}---> {{{vitA_iu}}} IU}}
  
         | label4 = [[Vitamin A]] {{smaller|as}}<br/>[[beta-carotene]]
+
         | label4 = [[Vitamin A]] {{smaller|as}}<br/>[[beta-Carotene]]
 
         | data4 = {{#if:{{{vitA_asbeta_iu|}}} |{{align|right|({{#expr:{{{vitA_asbeta_iu}}}/50 round 0}}%)}} {{{vitA_asbeta_iu}}} IU}}
 
         | data4 = {{#if:{{{vitA_asbeta_iu|}}} |{{align|right|({{#expr:{{{vitA_asbeta_iu}}}/50 round 0}}%)}} {{{vitA_asbeta_iu}}} IU}}
  
Line 124: Line 124:
 
         | data9 = {{#if:{{{vitB6_mg|}}} |{{align|right|({{#expr:{{{vitB6_mg}}}/0.013 round 0}}%)}} {{{vitB6_mg}}} mg}}
 
         | data9 = {{#if:{{{vitB6_mg|}}} |{{align|right|({{#expr:{{{vitB6_mg}}}/0.013 round 0}}%)}} {{{vitB6_mg}}} mg}}
  
         | label10 = [[Folic acid|Folate {{smaller|(B{{lower|0.35em|{{smaller|9}}}})}}]]
+
         | label10 = [[Folate|Folate {{smaller|(B{{lower|0.35em|{{smaller|9}}}})}}]]
 
         | data10 = {{#if:{{{folate_ug|}}} |{{align|right|({{#expr:{{{folate_ug}}}/4 round 0}}%)}} {{{folate_ug}}} μg}}
 
         | data10 = {{#if:{{{folate_ug|}}} |{{align|right|({{#expr:{{{folate_ug}}}/4 round 0}}%)}} {{{folate_ug}}} μg}}
  
Line 159: Line 159:
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;
 
         |datastyle=vertical-align:middle;padding-left:0.65em;line-height:1.1em;
 
         |datastyle=vertical-align:middle;padding-left:0.65em;line-height:1.1em;
         | header1 = [[Dietary element|Minerals]]
+
         | header1 = [[Mineral (nutrient)|Minerals]]
  
 
         | label2 = [[Calcium#Biological and pathological role|Calcium]]
 
         | label2 = [[Calcium#Biological and pathological role|Calcium]]
Line 226: Line 226:
 
| belowclass = wrap
 
| belowclass = wrap
 
| belowstyle = font-size:90%;background:#e0e0e0;padding:0.3em;line-height:1.5em;font-weight:normal;
 
| belowstyle = font-size:90%;background:#e0e0e0;padding:0.3em;line-height:1.5em;font-weight:normal;
| below = {{#ifexpr:{{#if:{{{noRDA|}}}|0|1}}+{{#if:{{{source|}}}{{{source_usda|}}}{{{source_USDA}}}|1|0}} |<!--(i.e. if noRDA hasn't been set and/or any of source/source_usda/source_USDA has/have been set, then:)-->{{#if:{{{noRDA|}}} | |Percentages are roughly approximated using [[Dietary Reference Intake|US&nbsp;recommendations]] for adults.}} {{#if:{{{source_usda|}}}{{{source_USDA|}}} |<br/>{{nowrap|{{small|Source: [http://ndb.nal.usda.gov/ndb/search/list USDA Nutrient Database]}}}} | {{#if:{{{source|}}} | <br/>{{nowrap|{{small|Source: {{{source}}} }}}} }} }} }}
+
| below = {{#ifexpr:{{#if:{{{noRDA|}}}|0|1}}+{{#if:{{{source|}}}{{{source_usda|}}}{{{source_USDA}}}|1|0}} |<!--(i.e. if noRDA hasn't been set and/or any of source/source_usda/source_USDA has/have been set, then:)-->{{#if:{{{noRDA|}}} | |Percentages are roughly approximated using [[Dietary Reference Intake|US&nbsp;recommendations]] for adults.}} {{#if:{{{source_usda|}}}{{{source_USDA|}}} |<br/>{{nowrap|{{small|Source: [https://ndb.nal.usda.gov/ndb/search/list USDA Nutrient Database]}}}} | {{#if:{{{source|}}} | <br/>{{nowrap|{{small|Source: {{{source}}} }}}} }} }} }}
  
 
}}<noinclude>{{documentation}}</noinclude>
 
}}<noinclude>{{documentation}}</noinclude>

Revision as of 01:11, 4 November 2017

{{{name}}}
Percentages are roughly approximated using US recommendations for adults.
Template documentation[create]