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 3: | Line 3: | ||
| bodystyle = {{#if:{{{float|}}} |float:{{#switch:{{{float|}}} |left=left;margin-left:0;margin-right:1.0em |center=none;margin-left:auto;margin-right:auto |right=right |none=none}};}} | | bodystyle = {{#if:{{{float|}}} |float:{{#switch:{{{float|}}} |left=left;margin-left:0;margin-right:1.0em |center=none;margin-left:auto;margin-right:auto |right=right |none=none}};}} | ||
| titlestyle = white-space:normal; padding-bottom:0.15em; | | titlestyle = white-space:normal; padding-bottom:0.15em; | ||
− | | title = {{{name<includeonly>|{{ | + | | title = {{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}} |
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=235px |alt={{{image_alt|}}} }} | | image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=235px |alt={{{image_alt|}}} }} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
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 = [[Dietary element|Minerals]] |
− | | label2 = [[Calcium# | + | | label2 = [[Calcium#Biological and pathological role|Calcium]] |
| 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 = [[Iron#Biological role|Iron]] | + | | label3 = [[Iron#Biological and pathological role|Iron]] |
| data3 = {{#if:{{{iron_mg|}}} |{{align|right|({{#expr:{{{iron_mg}}}/0.13 round 0}}%)}} {{{iron_mg}}} mg}} | | data3 = {{#if:{{{iron_mg|}}} |{{align|right|({{#expr:{{{iron_mg}}}/0.13 round 0}}%)}} {{{iron_mg}}} mg}} | ||
Revision as of 15:47, 9 July 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. |