Difference between revisions of "Template:Infobox nutritional value"
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
(One intermediate revision by the same user not shown) | |||
Line 155: | Line 155: | ||
<!-- 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|}}}{{{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|}}}{{{copper_mg|}}}{{{selenium_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=padding-left:0.65em;line-height:1.1em;font-weight:normal;padding-right:0.25em; | ||
Line 164: | Line 164: | ||
| data2 = {{#if:{{{calcium_mg|}}} |{{align|right|({{#expr:{{{calcium_mg}}}/10 round 0}}%)}} {{{calcium_mg}}} mg}} | | data2 = {{#if:{{{calcium_mg|}}} |{{align|right|({{#expr:{{{calcium_mg}}}/10 round 0}}%)}} {{{calcium_mg}}} mg}} | ||
− | | label3 = [[ | + | | label3 = [[Copper in health|Copper]] |
− | | data3 = {{#if:{{{ | + | | data3 = {{#if:{{{copper_mg|}}} |{{align|right|({{#expr:{{{copper_mg}}}/0.02 round 0}}%)}} {{{copper_mg}}} mg}} |
− | | label4 = [[ | + | | label4 = [[Iron#Biological and pathological role|Iron]] |
− | | data4 = {{#if:{{{ | + | | data4 = {{#if:{{{iron_mg|}}} |{{align|right|({{#expr:{{{iron_mg}}}/0.13 round 0}}%)}} {{{iron_mg}}} mg}} |
− | | label5 = [[ | + | | label5 = [[Magnesium in biology|Magnesium]] |
− | | data5 = {{#if:{{{ | + | | data5 = {{#if:{{{magnesium_mg|}}} |{{align|right|({{#expr:{{{magnesium_mg}}}/3.55 round 0}}%)}} {{{magnesium_mg}}} mg}} |
− | | label6 = [[ | + | | label6 = [[Manganese#Biological role|Manganese]] |
− | | data6 = {{#if:{{{ | + | | data6 = {{#if:{{{manganese_mg|}}} |{{align|right|({{#expr:{{{manganese_mg}}}/0.021 round 0}}%)}} {{{manganese_mg}}} mg}} |
− | | label7 = [[ | + | | label7 = [[Phosphorus#Biological role|Phosphorus]] |
− | | data7 = {{#if:{{{ | + | | data7 = {{#if:{{{phosphorus_mg|}}} |{{align|right|({{#expr:{{{phosphorus_mg}}}/7 round 0}}%)}} {{{phosphorus_mg}}} mg}} |
− | | label8 = [[ | + | | label8 = [[Potassium#In diet|Potassium]] |
− | | data8 = {{#if:{{{ | + | | data8 = {{#if:{{{potassium_mg|}}} |{{align|right|({{#expr:{{{potassium_mg}}}/47 round 0}}%)}} {{{potassium_mg}}} mg}} |
− | | label9 = [[Zinc#Biological role|Zinc]] | + | | label9 = [[Selenium in biology|Selenium]] |
− | | | + | | data9 = {{#if:{{{selenium_ug|}}} |{{align|right|({{#expr:{{{selenium_ug}}}/0.7 round 0}}%)}} {{{selenium_ug}}} μg}} |
+ | |||
+ | | label10 = [[Sodium#Biological role|Sodium]] | ||
+ | | data10 = {{#if:{{{sodium_mg|}}} |{{align|right|({{#expr:{{{sodium_mg}}}/15 round 0}}%)}} {{{sodium_mg}}} mg}} | ||
+ | |||
+ | | label11 = [[Zinc#Biological role|Zinc]] | ||
+ | | data11 = {{#if:{{{zinc_mg|}}} |{{align|right|({{#expr:{{{zinc_mg}}}/0.095 round 0}}%)}} {{{zinc_mg}}} mg}} | ||
}} }} | }} }} | ||
Revision as of 12:39, 25 July 2017
| |
Percentages are roughly approximated using US recommendations for adults. |
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |