Difference between revisions of "Template:Infobox nutritional value/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
m (comment headings)
imported>Sardanaphalus
(prepared for main template by removing <includeonly>s and <noinclude>s)
Line 13: Line 13:
  
 
<!--------------------------------- Serving ----------------------------------->
 
<!--------------------------------- Serving ----------------------------------->
| header1 = {{#if:{{{carbs<includeonly>|</includeonly>}}}{{{fat|}}}{{{protein|}}}{{{serving_size|}}} |Nutritional value per {{{serving_size|{{convert|100|g|abbr=on}}}}} }}
+
| header1 = {{#if:{{{carbs|}}}{{{fat|}}}{{{protein|}}}{{{serving_size|}}} |Nutritional value per {{{serving_size|{{convert|100|g|abbr=on}}}}} }}
  
 
<!--------------------------------- Energy ------------------------------------>
 
<!--------------------------------- Energy ------------------------------------>
 
| label5 = <div style="background:#e0e0e0;padding:0.15em 0.25em;">[[Food energy|Energy]]</div>
 
| label5 = <div style="background:#e0e0e0;padding:0.15em 0.25em;">[[Food energy|Energy]]</div>
| data5 = {{#if:{{{kJ<includeonly>|</includeonly>}}}{{{kcal|}}}
+
| data5 = {{#if:{{{kJ|}}}{{{kcal|}}} |<div style="background:#e0e0e0;padding:0.15em 0.25em;white-space:nowrap;"><noinclude>(kJ{{\}}kcal)</noinclude><!--
          | <div style="background:#e0e0e0;padding:0.15em 0.25em;white-space:nowrap;"><noinclude>(kJ{{\}}kcal)</noinclude><!--
+
            --><includeonly>{{#if:{{{kJ|}}} |{{convert|{{{kJ}}}|kJ|kcal|abbr=on}} |{{#if:{{{kcal|}}}|{{convert|{{{kcal}}}|kcal|kJ|abbr=on}}}} }}</includeonly></div> }}
              --><includeonly>{{#if:{{{kJ|}}} |{{convert|{{{kJ}}}|kJ|kcal|abbr=on}} |{{#if:{{{kcal|}}}|{{convert|{{{kcal}}}|kcal|kJ|abbr=on}}}} }}</includeonly>
 
            </div> }}
 
  
 
<!------------------------------ Carbohydrates -------------------------------->
 
<!------------------------------ Carbohydrates -------------------------------->
 
| data7 =
 
| data7 =
     {{#if:{{{carbs<includeonly>|</includeonly>}}}{{{starch|}}}{{{sugars|}}}{{{lactose|}}}{{{fiber|}}}{{{fibre|}}}
+
     {{#if:{{{carbs|}}}{{{starch|}}}{{{sugars|}}}{{{lactose|}}}{{{fiber|}}}{{{fibre|}}}
 
     | {{Infobox |child=yes
 
     | {{Infobox |child=yes
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
Line 30: Line 28:
 
         | label1 = <div style="position:relative;left:-0.65em;">'''[[Carbohydrate]]s'''</div>
 
         | label1 = <div style="position:relative;left:-0.65em;">'''[[Carbohydrate]]s'''</div>
 
         | data1 = {{#if:{{{carbs|}}} |<div style="position:relative;left:-0.65em;">{{{carbs}}}</div>
 
         | data1 = {{#if:{{{carbs|}}} |<div style="position:relative;left:-0.65em;">{{{carbs}}}</div>
                   | {{#if:{{{starch<includeonly>|</includeonly>}}}{{{sugars|}}}{{{lactose|}}}{{{fiber|}}}{{{fibre|}}} |&thinsp;}} }}
+
                   | {{#if:{{{starch|}}}{{{sugars|}}}{{{lactose|}}}{{{fiber|}}}{{{fibre|}}} |&thinsp;}} }}
 
         | label2 = [[Starch]]
 
         | label2 = [[Starch]]
         | data2 = {{{starch|<noinclude>&thinsp;</noinclude>}}}
+
         | data2 = {{{starch|}}}
         | label3 = [[Sugar]]s {{#if:{{{lactose<includeonly>|</includeonly>}}}
+
         | label3 = [[Sugar]]s   {{#if:{{{lactose|}}} |<div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[lactose]]</div>}}
                              | <div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[lactose]]</div> }}
+
         | data3 = {{{sugars|}}} {{#if:{{{lactose|}}} |<div style="padding-left:0.65em;padding-top:0.25em;">{{{lactose}}}</div>}}
         | data3 = {{{sugars|<noinclude>&thinsp;</noinclude>}}}<!--
 
                    -->{{#if:{{{lactose|}}} |<div style="padding-left:0.65em;padding-top:0.25em;">{{{lactose}}}</div>}}
 
 
         | label4 = [[Dietary fiber]]
 
         | label4 = [[Dietary fiber]]
         | data4 = {{{fiber|<noinclude>&thinsp;</noinclude>}}}
+
         | data4 = {{{fiber|}}}
 
         | label5 = [[Dietary fibre]]
 
         | label5 = [[Dietary fibre]]
         | data5 = {{{fibre|<noinclude>&thinsp;</noinclude>}}}
+
         | data5 = {{{fibre|}}}
 
     }} }}
 
     }} }}
  
 
<!----------------------------------- Fat ------------------------------------->
 
<!----------------------------------- Fat ------------------------------------->
 
| data9 =
 
| data9 =
     {{#if:{{{fat<includeonly>|</includeonly>}}}{{{satfat|}}}{{{transfat|}}}{{{monofat|}}}{{{polyfat|}}}{{{omega3fat|}}}{{{omega6fat|}}}
+
     {{#if:{{{fat|}}}{{{satfat|}}}{{{transfat|}}}{{{monofat|}}}{{{polyfat|}}}{{{omega3fat|}}}{{{omega6fat|}}}
 
     | {{Infobox |child=yes
 
     | {{Infobox |child=yes
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
Line 51: Line 47:
 
         | label1 = <div style="position:relative;left:-0.65em;">'''[[Fat]]'''</div>
 
         | label1 = <div style="position:relative;left:-0.65em;">'''[[Fat]]'''</div>
 
         | data1 = {{#if:{{{fat|}}} |<div style="position:relative;left:-0.65em;">{{{fat}}}</div>
 
         | data1 = {{#if:{{{fat|}}} |<div style="position:relative;left:-0.65em;">{{{fat}}}</div>
                   | {{#if:{{{satfat<includeonly>|</includeonly>}}}{{{transfat|}}}{{{monofat|}}}{{{polyfat|}}}{{{omega3fat|}}}{{{omega6fat|}}} |&thinsp;}} }}
+
                   | {{#if:{{{satfat|}}}{{{transfat|}}}{{{monofat|}}}{{{polyfat|}}}{{{omega3fat|}}}{{{omega6fat|}}} |&thinsp;}} }}
 
         | label2 = [[Saturated fat|Saturated]]
 
         | label2 = [[Saturated fat|Saturated]]
         | data2 = {{{satfat|<noinclude>&thinsp;</noinclude>}}}
+
         | data2 = {{{satfat|}}}
 
         | label3 = [[Trans fat|Trans]]
 
         | label3 = [[Trans fat|Trans]]
         | data3 = {{{transfat|<noinclude>&thinsp;</noinclude>}}}
+
         | data3 = {{{transfat|}}}
 
         | label4 = [[Monounsaturated fat|Monounsaturated]]
 
         | label4 = [[Monounsaturated fat|Monounsaturated]]
         | data4 = {{{monofat|<noinclude>&thinsp;</noinclude>}}}
+
         | data4 = {{{monofat|}}}
 
         | label5 = [[Polyunsaturated fat|Polyunsaturated]]<!--
 
         | label5 = [[Polyunsaturated fat|Polyunsaturated]]<!--
                     -->{{#if:{{{omega3fat<includeonly>|</includeonly>}}}
+
                     -->{{#if:{{{omega3fat|}}} |<div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[Omega-3 fatty acid|omega‑3]]</div>}}<!--
                        | <div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[Omega-3 fatty acid|omega‑3]]</div> }}<!--
+
                     -->{{#if:{{{omega6fat|}}} |<div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[Omega-6 fatty acid|omega‑6]]</div>}}
                     -->{{#if:{{{omega6fat<includeonly>|</includeonly>}}}
+
         | data5 = {{{polyfat|}}}<!--
                        | <div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[Omega-6 fatty acid|omega‑6]]</div> }}
+
                     -->{{#if:{{{omega3fat|}}} |<div style="padding-left:0.65em;padding-top:0.25em;">{{{omega3fat}}}</div>}}<!--
         | data5 = {{{polyfat|<noinclude>&thinsp;</noinclude>}}}<!--
+
                     -->{{#if:{{{omega6fat|}}} |<div style="padding-left:0.65em;padding-top:0.25em;">{{{omega6fat}}}</div>}}
                     -->{{#if:{{{omega3fat|}}} |<div style="padding-left:0.65em;padding-top:0.25em;">{{{omega3fat}}}</div> }}<!--
 
                     -->{{#if:{{{omega6fat|}}} |<div style="padding-left:0.65em;padding-top:0.25em;">{{{omega6fat}}}</div> }}
 
 
     }} }}
 
     }} }}
  
 
<!--------------------------------- Protein ----------------------------------->
 
<!--------------------------------- Protein ----------------------------------->
 
| data11 =
 
| data11 =
     {{#if:{{{protein<includeonly>|</includeonly>}}}{{{tryptophan|}}}{{{threonine|}}}{{{isoleucine|}}}{{{leucine|}}}{{{lysine|}}}{{{methionine|}}}{{{cystine|}}}{{{phenylalanine|}}}{{{tyrosine|}}}{{{valine|}}}{{{arginine|}}}{{{histidine|}}}{{{alanine|}}}{{{aspartic acid|}}}{{{glutamic acid|}}}{{{glycine|}}}{{{proline|}}}{{{serine|}}}{{{hydroxyproline|}}}
+
     {{#if:{{{protein|}}}{{{tryptophan|}}}{{{threonine|}}}{{{isoleucine|}}}{{{leucine|}}}{{{lysine|}}}{{{methionine|}}}{{{cystine|}}}{{{phenylalanine|}}}{{{tyrosine|}}}{{{valine|}}}{{{arginine|}}}{{{histidine|}}}{{{alanine|}}}{{{aspartic acid|}}}{{{glutamic acid|}}}{{{glycine|}}}{{{proline|}}}{{{serine|}}}{{{hydroxyproline|}}}
 
     | {{Infobox |child=yes
 
     | {{Infobox |child=yes
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
Line 76: Line 70:
 
         | label1 = <div style="position:relative;left:-0.65em;">'''[[Protein (nutrient)|Protein]]'''</div>
 
         | label1 = <div style="position:relative;left:-0.65em;">'''[[Protein (nutrient)|Protein]]'''</div>
 
         | data1 = {{#if:{{{protein|}}} |<div style="position:relative;left:-0.65em;">{{{protein}}}</div>
 
         | data1 = {{#if:{{{protein|}}} |<div style="position:relative;left:-0.65em;">{{{protein}}}</div>
                   | {{#if:{{{tryptophan<includeonly>|</includeonly>}}}{{{threonine|}}}{{{isoleucine|}}}{{{leucine|}}}{{{lysine|}}}{{{methionine|}}}{{{cystine|}}}{{{phenylalanine|}}}{{{tyrosine|}}}{{{valine|}}}{{{arginine|}}}{{{histidine|}}}{{{alanine|}}}{{{aspartic acid|}}}{{{glutamic acid|}}}{{{glycine|}}}{{{proline|}}}{{{serine|}}}{{{hydroxyproline|}}} |&thinsp;}} }}
+
                   | {{#if:{{{tryptophan|}}}{{{threonine|}}}{{{isoleucine|}}}{{{leucine|}}}{{{lysine|}}}{{{methionine|}}}{{{cystine|}}}{{{phenylalanine|}}}{{{tyrosine|}}}{{{valine|}}}{{{arginine|}}}{{{histidine|}}}{{{alanine|}}}{{{aspartic acid|}}}{{{glutamic acid|}}}{{{glycine|}}}{{{proline|}}}{{{serine|}}}{{{hydroxyproline|}}} |&thinsp;}} }}
         | label2=[[Tryptophan]]      |data2={{{tryptophan|<noinclude>&thinsp;</noinclude>}}}
+
         | label2=[[Tryptophan]]      |data2={{{tryptophan|}}}
         | label3=[[Threonine]]      |data3={{{threonine|<noinclude>&thinsp;</noinclude>}}}
+
         | label3=[[Threonine]]      |data3={{{threonine|}}}
         | label4=[[Isoleucine]]      |data4={{{isoleucine|<noinclude>&thinsp;</noinclude>}}}
+
         | label4=[[Isoleucine]]      |data4={{{isoleucine|}}}
         | label5=[[Leucine]]        |data5={{{leucine|<noinclude>&thinsp;</noinclude>}}}
+
         | label5=[[Leucine]]        |data5={{{leucine|}}}
         | label6=[[Lysine]]          |data6={{{lysine|<noinclude>&thinsp;</noinclude>}}}
+
         | label6=[[Lysine]]          |data6={{{lysine|}}}
         | label7=[[Methionine]]      |data7={{{methionine|<noinclude>&thinsp;</noinclude>}}}
+
         | label7=[[Methionine]]      |data7={{{methionine|}}}
         | label8=[[Cystine]]        |data8={{{cystine|<noinclude>&thinsp;</noinclude>}}}
+
         | label8=[[Cystine]]        |data8={{{cystine|}}}
         | label9=[[Phenylalanine]]  |data9={{{phenylalanine|<noinclude>&thinsp;</noinclude>}}}
+
         | label9=[[Phenylalanine]]  |data9={{{phenylalanine|}}}
         | label10=[[Tyrosine]]      |data10={{{tyrosine|<noinclude>&thinsp;</noinclude>}}}
+
         | label10=[[Tyrosine]]      |data10={{{tyrosine|}}}
         | label11=[[Valine]]        |data11={{{valine|<noinclude>&thinsp;</noinclude>}}}
+
         | label11=[[Valine]]        |data11={{{valine|}}}
         | label12=[[Arginine]]      |data12={{{arginine|<noinclude>&thinsp;</noinclude>}}}
+
         | label12=[[Arginine]]      |data12={{{arginine|}}}
         | label13=[[Histidine]]      |data13={{{histidine|<noinclude>&thinsp;</noinclude>}}}
+
         | label13=[[Histidine]]      |data13={{{histidine|}}}
         | label14=[[Alanine]]        |data14={{{alanine|<noinclude>&thinsp;</noinclude>}}}
+
         | label14=[[Alanine]]        |data14={{{alanine|}}}
         | label15=[[Aspartic acid]]  |data15={{{aspartic acid|<noinclude>&thinsp;</noinclude>}}}
+
         | label15=[[Aspartic acid]]  |data15={{{aspartic acid|}}}
         | label16=[[Glutamic acid]]  |data16={{{glutamic acid|<noinclude>&thinsp;</noinclude>}}}
+
         | label16=[[Glutamic acid]]  |data16={{{glutamic acid|}}}
         | label17=[[Glycine]]        |data17={{{glycine|<noinclude>&thinsp;</noinclude>}}}
+
         | label17=[[Glycine]]        |data17={{{glycine|}}}
         | label18=[[Proline]]        |data18={{{proline|<noinclude>&thinsp;</noinclude>}}}
+
         | label18=[[Proline]]        |data18={{{proline|}}}
         | label19=[[Serine]]        |data19={{{serine|<noinclude>&thinsp;</noinclude>}}}
+
         | label19=[[Serine]]        |data19={{{serine|}}}
         | label20=[[Hydroxyproline]] |data20={{{hydroxyproline|<noinclude>&thinsp;</noinclude>}}}
+
         | label20=[[Hydroxyproline]] |data20={{{hydroxyproline|}}}
 
     }} }}
 
     }} }}
  
Line 101: Line 95:
 
<!--    Calculated values are averages for males and females aged 19-30      -->
 
<!--    Calculated values are averages for males and females aged 19-30      -->
 
| data15 =
 
| data15 =
     {{#if:{{{vitA_ug<includeonly>|</includeonly>}}}{{{betacarotene_ug|}}}{{{lutein_ug|}}}{{{vitA_iu|}}}{{{vitA_asbeta_iu|}}}{{{thiamin_mg|}}}{{{riboflavin_mg|}}}{{{niacin_mg|}}}{{{pantothenic_mg|}}}{{{vitB6_mg|}}}{{{folate_ug|}}}{{{vitB12_ug|}}}{{{choline_mg|}}}{{{vitC_mg|}}}{{{vitD_ug|}}}{{{vitD_iu|}}}{{{vitE_mg|}}}{{{vitE_iu|}}}{{{vitK_ug|}}}
+
     {{#if:{{{vitA_ug|}}}{{{betacarotene_ug|}}}{{{lutein_ug|}}}{{{vitA_iu|}}}{{{vitA_asbeta_iu|}}}{{{thiamin_mg|}}}{{{riboflavin_mg|}}}{{{niacin_mg|}}}{{{pantothenic_mg|}}}{{{vitB6_mg|}}}{{{folate_ug|}}}{{{vitB12_ug|}}}{{{choline_mg|}}}{{{vitC_mg|}}}{{{vitD_ug|}}}{{{vitD_iu|}}}{{{vitE_mg|}}}{{{vitE_iu|}}}{{{vitK_ug|}}}
 
     | {{Infobox |child=yes |headerstyle=text-align:left;
 
     | {{Infobox |child=yes |headerstyle=text-align:left;
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
Line 108: Line 102:
  
 
         | label2 = [[Vitamin A|Vitamin A equiv.]]<!--
 
         | label2 = [[Vitamin A|Vitamin A equiv.]]<!--
                     -->{{#if:{{{betacarotene_ug<includeonly>|</includeonly>}}}
+
                     -->{{#if:{{{betacarotene_ug|}}} |<div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[beta-carotene]]</div>}}<!--
                        | <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<includeonly>|</includeonly>}}}
+
         | data2 = {{#if:{{{vitA_ug|}}} |{{align|right|({{#expr:{{{vitA_ug}}}/8 round 0}}%)}} {{{vitA_ug}}} μg}}<!--
                        | <div style="padding-left:0.65em;padding-top:0.25em;font-weight:normal;">[[lutein]] [[zeaxanthin]]</div> }}
+
                    -->{{#if:{{{betacarotene_ug|}}} |<div style="padding-left:0.65em;padding-top:0.25em;"><!--
         | data2 = {{#if:{{{vitA_ug<includeonly>|</includeonly>}}}
+
                          -->{{align|right|({{#expr:{{{betacarotene_ug}}}/108.0 round 0}}%)}}{{{betacarotene_ug}}} μg</div> }}<!--
                  | {{align|right|(<includeonly>{{#expr:{{{vitA_ug}}}/8 round 0}}</includeonly>%)}} <includeonly>{{{vitA_ug}}}</includeonly> μg}}<!--
+
                    -->{{#if:{{{lutein_ug|}}} |<div style="padding-left:0.65em;padding-top:0.25em;">{{{lutein_ug}}} μg</div>}}
              -->{{#if:{{{betacarotene_ug<includeonly>|</includeonly>}}}
 
                  |   <div style="padding-left:0.65em;padding-top:0.25em;"><!--
 
                        -->{{align|right|(<includeonly>{{#expr:{{{betacarotene_ug}}}/108.0 round 0}}</includeonly>%)}}<!--
 
                        --><includeonly>{{{betacarotene_ug}}}</includeonly> μg<!--
 
                    --></div> }}<!--
 
              -->{{#if:{{{lutein_ug<includeonly>|</includeonly>}}}
 
                  | <div style="padding-left:0.65em;padding-top:0.25em;"><includeonly>{{{lutein_ug}}}</includeonly> μg</div> }}
 
  
 
         | label3 = [[Vitamin A]]
 
         | label3 = [[Vitamin A]]
         | data3 = {{#if:{{{vitA_iu<includeonly>|</includeonly>}}}
+
         | 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}}
                  | <!---Following is commented out as RAE is the current RDA system and IU gives nonsense percentages:
 
                    {{align|right|(<includeonly>{{#expr:{{{vitA_iu}}}/30 round 0}}</includeonly>%)}}
 
                      ----> <includeonly>{{{vitA_iu}}}</includeonly> IU}}
 
  
 
         | label4 = {{longitem|line-height:1.05em|[[Vitamin A]] {{smaller|as}}<br/>[[beta-carotene]]}}
 
         | label4 = {{longitem|line-height:1.05em|[[Vitamin A]] {{smaller|as}}<br/>[[beta-carotene]]}}
         | data4 = {{#if:{{{vitA_asbeta_iu<includeonly>|</includeonly>}}}
+
         | data4 = {{#if:{{{vitA_asbeta_iu|}}} |{{align|right|({{#expr:{{{vitA_asbeta_iu}}}/50 round 0}}%)}} {{{vitA_asbeta_iu}}} IU}}
                  | {{align|right|(<includeonly>{{#expr:{{{vitA_asbeta_iu}}}/50 round 0}}</includeonly>%)}} <includeonly>{{{vitA_asbeta_iu}}}</includeonly> IU}}
 
  
 
         | label5 = [[Thiamine|Thiamine {{smaller|(B{{lower|0.35em|{{smaller|1}}}})}}]]
 
         | label5 = [[Thiamine|Thiamine {{smaller|(B{{lower|0.35em|{{smaller|1}}}})}}]]
         | data5 = {{#if:{{{thiamin_mg<includeonly>|</includeonly>}}}
+
         | data5 = {{#if:{{{thiamin_mg|}}} |{{align|right|({{#expr:{{{thiamin_mg}}}/0.0115 round 0}}%)}} {{{thiamin_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{thiamin_mg}}}/0.0115 round 0}}</includeonly>%)}} <includeonly>{{{thiamin_mg}}}</includeonly> mg}}
 
  
 
         | label6 = [[Riboflavin|Riboflavin {{smaller|(B{{lower|0.35em|{{smaller|2}}}})}}]]
 
         | label6 = [[Riboflavin|Riboflavin {{smaller|(B{{lower|0.35em|{{smaller|2}}}})}}]]
         | data6 = {{#if:{{{riboflavin_mg<includeonly>|</includeonly>}}}
+
         | data6 = {{#if:{{{riboflavin_mg|}}} |{{align|right|({{#expr:{{{riboflavin_mg}}}/0.012 round 0}}%)}} {{{riboflavin_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{riboflavin_mg}}}/0.012 round 0}}</includeonly>%)}} <includeonly>{{{riboflavin_mg}}}</includeonly> mg}}
 
  
 
         | label7 = [[Niacin|Niacin {{smaller|(B{{lower|0.35em|{{smaller|3}}}})}}]]
 
         | label7 = [[Niacin|Niacin {{smaller|(B{{lower|0.35em|{{smaller|3}}}})}}]]
         | data7 = {{#if:{{{niacin_mg<includeonly>|</includeonly>}}}
+
         | data7 = {{#if:{{{niacin_mg|}}} |{{align|right|({{#expr:{{{niacin_mg}}}/0.15 round 0}}%)}} {{{niacin_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{niacin_mg}}}/0.15 round 0}}</includeonly>%)}} <includeonly>{{{niacin_mg}}}</includeonly> mg}}
 
  
 
         | label8 = {{longitem|line-height:1.1em|[[Pantothenic acid|{{allow wrap|Pantothenic acid&nbsp;{{smaller|(B{{lower|0.35em|{{smaller|5}}}})}}}}]]}}
 
         | label8 = {{longitem|line-height:1.1em|[[Pantothenic acid|{{allow wrap|Pantothenic acid&nbsp;{{smaller|(B{{lower|0.35em|{{smaller|5}}}})}}}}]]}}
         | data8 = {{#if:{{{pantothenic_mg<includeonly>|</includeonly>}}}
+
         | data8 = {{#if:{{{pantothenic_mg|}}} |{{align|right|({{#expr:{{{pantothenic_mg}}}/0.05 round 0}}%)}} {{{pantothenic_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{pantothenic_mg}}}/0.05 round 0}}</includeonly>%)}} <includeonly>{{{pantothenic_mg}}}</includeonly> mg}}
 
  
 
         | label9 = [[Vitamin B6|Vitamin B{{lower|0.3em|{{resize|75%|6}}}}]]
 
         | label9 = [[Vitamin B6|Vitamin B{{lower|0.3em|{{resize|75%|6}}}}]]
         | data9 = {{#if:{{{vitB6_mg<includeonly>|</includeonly>}}}
+
         | data9 = {{#if:{{{vitB6_mg|}}} |{{align|right|({{#expr:{{{vitB6_mg}}}/0.013 round 0}}%)}} {{{vitB6_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{vitB6_mg}}}/0.013 round 0}}</includeonly>%)}} <includeonly>{{{vitB6_mg}}}</includeonly> mg}}
 
  
 
         | label10 = [[Folic acid|Folate {{smaller|(B{{lower|0.35em|{{smaller|9}}}})}}]]
 
         | label10 = [[Folic acid|Folate {{smaller|(B{{lower|0.35em|{{smaller|9}}}})}}]]
         | data10 = {{#if:{{{folate_ug<includeonly>|</includeonly>}}}
+
         | data10 = {{#if:{{{folate_ug|}}} |{{align|right|({{#expr:{{{folate_ug}}}/4 round 0}}%)}} {{{folate_ug}}} μg}}
                    | {{align|right|(<includeonly>{{#expr:{{{folate_ug}}}/4 round 0}}</includeonly>%)}} <includeonly>{{{folate_ug}}}</includeonly> μg}}
 
  
 
         | label11 = [[Vitamin B12|Vitamin B{{lower|0.3em|{{resize|75%|12}}}}]]
 
         | label11 = [[Vitamin B12|Vitamin B{{lower|0.3em|{{resize|75%|12}}}}]]
         | data11 = {{#if:{{{vitB12_ug<includeonly>|</includeonly>}}}
+
         | data11 = {{#if:{{{vitB12_ug|}}} |{{align|right|({{#expr:{{{vitB12_ug}}}/0.024 round 0}}%)}} {{{vitB12_ug}}} μg}}
                    | {{align|right|(<includeonly>{{#expr:{{{vitB12_ug}}}/0.024 round 0}}</includeonly>%)}} <includeonly>{{{vitB12_ug}}}</includeonly> μg}}
 
  
 
         | label12 = [[Choline]]
 
         | label12 = [[Choline]]
         | data12 = {{#if:{{{choline_mg<includeonly>|</includeonly>}}}
+
         | data12 = {{#if:{{{choline_mg|}}} |{{align|right|({{#expr:{{{choline_mg}}}/4.9 round 0}}%)}} {{{choline_mg}}} mg}}
                    | {{align|right|(<includeonly>{{#expr:{{{choline_mg}}}/4.9 round 0}}</includeonly>%)}} <includeonly>{{{choline_mg}}}</includeonly> mg}}
 
  
 
         | label13 = [[Vitamin C]]
 
         | label13 = [[Vitamin C]]
         | data13 = {{#if:{{{vitC_mg<includeonly>|</includeonly>}}}
+
         | data13 = {{#if:{{{vitC_mg|}}} |{{align|right|({{#expr:{{{vitC_mg}}}/0.83 round 0}}%)}} {{{vitC_mg}}} mg}}
                    | {{align|right|(<includeonly>{{#expr:{{{vitC_mg}}}/0.83 round 0}}</includeonly>%)}} <includeonly>{{{vitC_mg}}}</includeonly> mg}}
 
  
 
         | label14 = [[Vitamin D]]
 
         | label14 = [[Vitamin D]]
         | data14 = {{#if:{{{vitD_ug<includeonly>|</includeonly>}}}
+
         | data14 = {{#if:{{{vitD_ug|}}} |{{align|right|({{#expr:{{{vitD_ug}}}/0.15 round 0}}%)}} {{{vitD_ug}}} μg}}
                    | {{align|right|(<includeonly>{{#expr:{{{vitD_ug}}}/0.15 round 0}}</includeonly>%)}} <includeonly>{{{vitD_ug}}}</includeonly> μg}}
 
  
 
         | label15 = [[Vitamin D]]
 
         | label15 = [[Vitamin D]]
         | data15 = {{#if:{{{vitD_iu<includeonly>|</includeonly>}}}
+
         | data15 = {{#if:{{{vitD_iu|}}} |{{align|right|({{#expr:{{{vitD_iu}}}/6 round 0}}%)}} {{{vitD_iu}}} IU}}
                    | {{align|right|(<includeonly>{{#expr:{{{vitD_iu}}}/6 round 0}}</includeonly>%)}} <includeonly>{{{vitD_iu}}}</includeonly> IU}}
 
  
 
         | label16 = [[Vitamin E]]
 
         | label16 = [[Vitamin E]]
         | data16 = {{#if:{{{vitE_mg<includeonly>|</includeonly>}}}
+
         | data16 = {{#if:{{{vitE_mg|}}} |{{align|right|({{#expr:{{{vitE_mg}}}/0.15 round 0}}%)}} {{{vitE_mg}}} mg}}
                    | {{align|right|(<includeonly>{{#expr:{{{vitE_mg}}}/0.15 round 0}}</includeonly>%)}} <includeonly>{{{vitE_mg}}}</includeonly> mg}}
 
  
 
         | label17 = [[Vitamin E]]
 
         | label17 = [[Vitamin E]]
         | data17 = {{#if:{{{vitE_iu<includeonly>|</includeonly>}}}
+
         | data17 = {{#if:{{{vitE_iu|}}} |{{align|right|({{#expr:{{{vitE_iu}}}/0.3 round 0}}%)}} {{{vitE_iu}}} IU}}
                    | {{align|right|(<includeonly>{{#expr:{{{vitE_iu}}}/0.3 round 0}}</includeonly>%)}} <includeonly>{{{vitE_iu}}}</includeonly> IU}}
 
  
 
         | label18 = [[Vitamin K]]
 
         | label18 = [[Vitamin K]]
         | data18 = {{#if:{{{vitK_ug<includeonly>|</includeonly>}}}
+
         | data18 = {{#if:{{{vitK_ug|}}} |{{align|right|({{#expr:{{{vitK_ug}}}/1.05 round 0}}%)}} {{{vitK_ug}}} μg}}
                    | {{align|right|(<includeonly>{{#expr:{{{vitK_ug}}}/1.05 round 0}}</includeonly>%)}} <includeonly>{{{vitK_ug}}}</includeonly> μg}}
 
 
     }} }}
 
     }} }}
  
Line 192: Line 161:
 
<!--    Calculated values are averages for males and females aged 19-30      -->
 
<!--    Calculated values are averages for males and females aged 19-30      -->
 
| data20 =
 
| data20 =
     {{#if:{{{calcium_mg<includeonly>|</includeonly>}}}{{{iron_mg|}}}{{{magnesium_mg|}}}{{{manganese_mg|}}}{{{phosphorus_mg|}}}{{{potassium_mg|}}}{{{sodium_mg|}}}{{{zinc_mg|}}}
+
     {{#if:{{{calcium_mg|}}}{{{iron_mg|}}}{{{magnesium_mg|}}}{{{manganese_mg|}}}{{{phosphorus_mg|}}}{{{potassium_mg|}}}{{{sodium_mg|}}}{{{zinc_mg|}}}
 
     | {{Infobox |child=yes |headerstyle=text-align:left;
 
     | {{Infobox |child=yes |headerstyle=text-align:left;
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
Line 199: Line 168:
  
 
         | label2 = [[Calcium#Nutrition|Calcium]]
 
         | label2 = [[Calcium#Nutrition|Calcium]]
         | data2 = {{#if:{{{calcium_mg<includeonly>|</includeonly>}}}
+
         | data2 = {{#if:{{{calcium_mg|}}} |{{align|right|({{#expr:{{{calcium_mg}}}/10 round 0}}%)}} {{{calcium_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{calcium_mg}}}/10 round 0}}</includeonly>%)}} <includeonly>{{{calcium_mg}}}</includeonly> mg}}
 
  
 
         | label3 = [[Iron#Biological role|Iron]]
 
         | label3 = [[Iron#Biological role|Iron]]
         | data3 = {{#if:{{{iron_mg<includeonly>|</includeonly>}}}
+
         | data3 = {{#if:{{{iron_mg|}}} |{{align|right|({{#expr:{{{iron_mg}}}/0.13 round 0}}%)}} {{{iron_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{iron_mg}}}/0.13 round 0}}</includeonly>%)}} <includeonly>{{{iron_mg}}}</includeonly> mg}}
 
  
 
         | label4 = [[Magnesium in biology|Magnesium]]
 
         | label4 = [[Magnesium in biology|Magnesium]]
         | data4 = {{#if:{{{magnesium_mg<includeonly>|</includeonly>}}}
+
         | data4 = {{#if:{{{magnesium_mg|}}} |{{align|right|({{#expr:{{{magnesium_mg}}}/3.55 round 0}}%)}} {{{magnesium_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{magnesium_mg}}}/3.55 round 0}}</includeonly>%)}} <includeonly>{{{magnesium_mg}}}</includeonly> mg}}
 
  
 
         | label5 = [[Manganese#Biological role|Manganese]]
 
         | label5 = [[Manganese#Biological role|Manganese]]
         | data5 = {{#if:{{{manganese_mg<includeonly>|</includeonly>}}}
+
         | data5 = {{#if:{{{manganese_mg|}}} |{{align|right|({{#expr:{{{manganese_mg}}}/0.021 round 0}}%)}} {{{manganese_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{manganese_mg}}}/0.021 round 0}}</includeonly>%)}} <includeonly>{{{manganese_mg}}}</includeonly> mg}}
 
  
 
         | label6 = [[Phosphorus#Biological role|Phosphorus]]
 
         | label6 = [[Phosphorus#Biological role|Phosphorus]]
         | data6 = {{#if:{{{phosphorus_mg<includeonly>|</includeonly>}}}
+
         | data6 = {{#if:{{{phosphorus_mg|}}} |{{align|right|({{#expr:{{{phosphorus_mg}}}/7 round 0}}%)}} {{{phosphorus_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{phosphorus_mg}}}/7 round 0}}</includeonly>%)}} <includeonly>{{{phosphorus_mg}}}</includeonly> mg}}
 
  
 
         | label7 = [[Potassium#In diet|Potassium]]
 
         | label7 = [[Potassium#In diet|Potassium]]
         | data7 = {{#if:{{{potassium_mg<includeonly>|</includeonly>}}}
+
         | data7 = {{#if:{{{potassium_mg|}}} |{{align|right|({{#expr:{{{potassium_mg}}}/47 round 0}}%)}} {{{potassium_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{potassium_mg}}}/47 round 0}}</includeonly>%)}} <includeonly>{{{potassium_mg}}}</includeonly> mg}}
 
  
 
         | label8 = [[Sodium#Biological role|Sodium]]
 
         | label8 = [[Sodium#Biological role|Sodium]]
         | data8 = {{#if:{{{sodium_mg<includeonly>|</includeonly>}}}
+
         | data8 = {{#if:{{{sodium_mg|}}} |{{align|right|({{#expr:{{{sodium_mg}}}/15 round 0}}%)}} {{{sodium_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{sodium_mg}}}/15 round 0}}</includeonly>%)}} <includeonly>{{{sodium_mg}}}</includeonly> mg}}
 
  
 
         | label9 = [[Zinc#Biological role|Zinc]]
 
         | label9 = [[Zinc#Biological role|Zinc]]
         | data9 = {{#if:{{{zinc_mg<includeonly>|</includeonly>}}}
+
         | data9 = {{#if:{{{zinc_mg|}}} |{{align|right|({{#expr:{{{zinc_mg}}}/0.095 round 0}}%)}} {{{zinc_mg}}} mg}}
                  | {{align|right|(<includeonly>{{#expr:{{{zinc_mg}}}/0.095 round 0}}</includeonly>%)}} <includeonly>{{{zinc_mg}}}</includeonly> mg}}
 
 
     }} }}
 
     }} }}
  
 
<!--------------------- Water / Alcohol / Caffeine / etc ---------------------->
 
<!--------------------- Water / Alcohol / Caffeine / etc ---------------------->
 
| data25 =
 
| data25 =
     {{#if:{{{water<includeonly>|</includeonly>}}}{{{alcohol|}}}{{{caffeine|}}}{{{opt1v|}}}{{{opt2v|}}}{{{opt3v|}}}{{{opt4v|}}}
+
     {{#if:{{{water|}}}{{{alcohol|}}}{{{caffeine|}}}{{{opt1v|}}}{{{opt2v|}}}{{{opt3v|}}}{{{opt4v|}}}
 
     | {{Infobox |child=yes |headerstyle=text-align:left;
 
     | {{Infobox |child=yes |headerstyle=text-align:left;
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
 
         |labelstyle=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em;{{{labelstyle|}}}
Line 239: Line 200:
 
         | header1 = Other constituents
 
         | header1 = Other constituents
 
         | label2 = [[Water]]
 
         | label2 = [[Water]]
         | data2 = {{{water|<noinclude>&thinsp;</noinclude>}}}
+
         | data2 = {{{water|}}}
 
         | label3 = {{longitem|line-height:1.0em|[[Ethanol|{{allow wrap|Alcohol {{smaller|{{nobold|(ethanol)}}}}}}]]}}
 
         | label3 = {{longitem|line-height:1.0em|[[Ethanol|{{allow wrap|Alcohol {{smaller|{{nobold|(ethanol)}}}}}}]]}}
         | data3 = {{{alcohol|<noinclude>&thinsp;</noinclude>}}}
+
         | data3 = {{{alcohol|}}}
 
         | label4 = [[Caffeine]]
 
         | label4 = [[Caffeine]]
         | data4 = {{{caffeine|<noinclude>&thinsp;</noinclude>}}}
+
         | data4 = {{{caffeine|}}}
 
         <!-----------(configurable entries)-------------->
 
         <!-----------(configurable entries)-------------->
 
         | label11={{{opt1n|}}} |data11={{{opt1v|}}}
 
         | label11={{{opt1n|}}} |data11={{{opt1v|}}}
Line 252: Line 213:
  
 
<!----------------------------- Notes / below --------------------------------->
 
<!----------------------------- Notes / below --------------------------------->
| data30 =
+
| data30 = {{#if:{{{notes|}}}{{{note|}}}
  {{#if:{{{notes<includeonly>|</includeonly>}}}{{{note|}}}
+
            | <hr/><div class="wrap" style="font-size:90%;padding:0.3em;line-height:1.2em;{{{belowstyle|}}}">{{{notes|}}}{{{note|}}}</div> }}
    | <hr/><div class="wrap" style="font-size:90%;padding:0.2em 0.25em 0.3em;line-height:1.25em;{{{belowstyle|}}}"><!--
 
            -->{{{notes<includeonly>|</includeonly>}}}{{{note|}}}</div> }}
 
  
 
| data31 = <div class="plainlist" style="font-size:90%;background:#e0e0e0;padding:0.15em;line-height:1.25em;">
 
| data31 = <div class="plainlist" style="font-size:90%;background:#e0e0e0;padding:0.15em;line-height:1.25em;">
Line 264: Line 223:
  
 
| belowclass = wrap
 
| belowclass = wrap
| belowstyle = font-size:90%;background:#e0e0e0;padding:0.15em 0.3em 0.3em;line-height:1.25em;font-weight:normal;
+
| belowstyle = font-size:90%;background:#e0e0e0;padding:0.3em;line-height:1.2em;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 recommendations]] for adults.}} {{#if:{{{source_usda|}}}{{{source_USDA|}}} |<br/>{{nowrap|{{small|Source: [http://ndb.nal.usda.gov/ndb/search/list USDA Nutrient Database]}}}} }} }}
 
| 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 recommendations]] for adults.}} {{#if:{{{source_usda|}}}{{{source_USDA|}}} |<br/>{{nowrap|{{small|Source: [http://ndb.nal.usda.gov/ndb/search/list USDA Nutrient Database]}}}} }} }}
  
 
}}
 
}}

Revision as of 07:42, 29 April 2014

{{{name}}}
Percentages are roughly approximated using US recommendations for adults.