Difference between revisions of "Template:Infobox nutritional value"
Jump to navigation
Jump to search
Template documentation[create]
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- | + | -->{{#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- | + | | 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 = [[ | + | | 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 = [[ | + | | 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 recommendations]] for adults.}} {{#if:{{{source_usda|}}}{{{source_USDA|}}} |<br/>{{nowrap|{{small|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 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
| |
Percentages are roughly approximated using US recommendations for adults. |
![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
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. |