Jump to content

Template:Infobox nutritional value: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
top: drop font size on footnote
collapsing vitamins and minerals because this often takes up a very large amount of space on the invoked page; if anyone can figure out how to make the header align left to match everything else that would be great
Line 90: Line 90:
<!-- Calculated values are averages for males and females aged 19-30 -->
<!-- Calculated values are averages for males and females aged 19-30 -->
<!-- Added March 2024 {{#iferror: {{#expr: XXX }} | –}} for all expressions used to calculate DV% to show, as if an error occurs, such as if the value of the vitamin/mineral is a range (e.g. 2–4) or expression like <20 then an error would occur in the calculation, instead show “–%” instead of the giant red error-->
<!-- Added March 2024 {{#iferror: {{#expr: XXX }} | –}} for all expressions used to calculate DV% to show, as if an error occurs, such as if the value of the vitamin/mineral is a range (e.g. 2–4) or expression like <20 then an error would occur in the calculation, instead show “–%” instead of the giant red error-->
{{collapsed infobox section begin|Vitamins and minerals}}| data15 =
| data15 =
{{#if:{{{vitA_ug|}}}{{{betacarotene_ug|}}}{{{lutein_ug|}}}{{{vitA_iu|}}}{{{vitA_asbeta_iu|}}}{{{thiamin_mg|}}}{{{thiamin_ug|}}}{{{riboflavin_mg|}}}{{{riboflavin_ug|}}}{{{niacin_mg|}}}{{{pantothenic_mg|}}}{{{vitB6_mg|}}}{{{vitB6_ug|}}}{{{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|}}}{{{thiamin_ug|}}}{{{riboflavin_mg|}}}{{{riboflavin_ug|}}}{{{niacin_mg|}}}{{{pantothenic_mg|}}}{{{vitB6_mg|}}}{{{vitB6_ug|}}}{{{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;
Line 195: Line 195:
| label11 = [[Zinc#Biological role|Zinc]]
| label11 = [[Zinc#Biological role|Zinc]]
| data11 = {{#if:{{{zinc_mg|}}} |{{align|right|{{#iferror:{{#expr:{{{zinc_mg}}}/0.11 round 0}}|–}}%}} {{{zinc_mg}}} mg}}
| data11 = {{#if:{{{zinc_mg|}}} |{{align|right|{{#iferror:{{#expr:{{{zinc_mg}}}/0.11 round 0}}|–}}%}} {{{zinc_mg}}} mg}}
}} }}
}} }}{{collapsed infobox section end}}


<!--------------------- Water / Alcohol / Caffeine / etc ---------------------->
<!--------------------- Water / Alcohol / Caffeine / etc ---------------------->

Revision as of 00:28, 11 August 2024

{{{name}}}
Vitamins and minerals
Percentages estimated using US recommendations for adults,[1] except for potassium, which is estimated based on expert recommendation from the National Academies.[2]