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 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>|{{PAGENAME}}</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 = [[Mineral]]s
+
         | header1 = [[Dietary element|Minerals]]
  
         | label2 = [[Calcium#Nutrition|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

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