Template:Infobox nutritional value: Difference between revisions

Created page with "{{Infobox | bodyclass = nowrap | 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; | title = {{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}} | image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=235px |alt={{{image_alt|}}} }} | c..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 243: Line 243:
| belowstyle = background:#e0e0e0;padding:0.3em;line-height:1.5em;font-weight:normal;font-size:0.9em
| belowstyle = background:#e0e0e0;padding:0.3em;line-height:1.5em;font-weight:normal;font-size:0.9em
| below = {{#ifexpr:{{#if:{{{noRDA|}}}|0|1}}+{{#if:{{{source|}}}|1|0}} |<!--(i.e. if noRDA hasn't been set and/or any of source has/have been set, then:)
| below = {{#ifexpr:{{#if:{{{noRDA|}}}|0|1}}+{{#if:{{{source|}}}|1|0}} |<!--(i.e. if noRDA hasn't been set and/or any of source has/have been set, then:)
If noRDA HAS been set to ANYTHING BUT NOTHING (e.g. noRDA = 0), then:-->{{#if:{{{noRDA|}}} | |<sup>†</sup>Percentages estimated using [[Reference Daily Intake#Daily Values|US&nbsp;recommendations]] for adults,<ref name="FDADailyValues">{{cite web |title=Daily Value on the Nutrition and Supplement Facts Labels |author=United States Food and Drug Administration |work=FDA |authorlink=Food and Drug Administration |date=2024 |url=https://www.fda.gov/food/nutrition-facts-label/daily-value-nutrition-and-supplement-facts-labels |accessdate=2024-03-28 |archive-date=2024-03-27 |archive-url=https://web.archive.org/web/20240327175201/https://www.fda.gov/food/nutrition-facts-label/daily-value-nutrition-and-supplement-facts-labels |url-status=live }}</ref> except for potassium, which is estimated based on expert recommendation from [[National Academies of Sciences, Engineering, and Medicine|the National Academies]].<ref name="NationalAcademiesPotassium">{{cite web |title=TABLE 4-7 Comparison of Potassium Adequate Intakes Established in This Report to Potassium Adequate Intakes Established in the 2005 DRI Report |page=120 |url=https://www.ncbi.nlm.nih.gov/books/NBK545428/table/tab_4_7/ }} In: {{cite book |doi=10.17226/25353 |title=Dietary Reference Intakes for Sodium and Potassium |date=2019 |pmid=30844154 |isbn=978-0-309-48834-1 |editor-last1=Stallings |editor-last2=Harrison |editor-last3=Oria |editor-first1=Virginia A. |editor-first2=Meghan |editor-first3=Maria |id={{NCBIBook|NBK545428}} |chapter=Potassium: Dietary Reference Intakes for Adequacy |pages=101–124 }}</ref>}}<!--
If noRDA HAS been set to ANYTHING BUT NOTHING (e.g. noRDA = 0), then:-->{{#if:{{{noRDA|}}} | |<sup>†</sup>Percentages estimated using [[Reference Daily Intake#Daily Values|US&nbsp;recommendations]] for adults, except for potassium, which is estimated based on expert recommendation from [[:en:National Academies of Sciences, Engineering, and Medicine|the National Academies]].}}<!--
and/or, if source:-->{{#if:{{{source|}}}<!--
and/or, if source:-->{{#if:{{{source|}}}<!--
-- has been set to ANYTHING:--> | <br/>Source: {{{source}}} }} }}  
-- has been set to ANYTHING:--> | <br/>Source: {{{source}}} }} }}  


}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox nutritional value with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox nutritional value]] with unknown parameter "_VALUE_"|ignoreblank=y| alanine | alcohol | arginine | aspartic acid | belowstyle | betacarotene_ug | caffeine | calcium_mg | caption | carbs | cholesterol | choline_mg | copper_mg | cystine | dextrose | fat | fiber | fibre | float | folate_ug | fructose | glucose | glutamic acid | glycine | histidine | hydroxyproline | image | image_alt | image_size | iron_mg | isoleucine | kcal | kJ | lactose | leucine | lutein_ug | lysine | magnesium_mg | manganese_mg | methionine | monofat | name | niacin_mg | noRDA | note | notes | omega3fat | omega6fat | opt1n | opt1v | opt2n | opt2v | opt3n | opt3v | opt4n | opt4v | pantothenic_mg | phenylalanine | phosphorus_mg | polyfat | potassium_mg | proline | protein | riboflavin_mg | riboflavin_ug | satfat | selenium_ug | serine | serving_size | sodium_mg | source | starch | sucrose | sugars | thiamin_mg | thiamin_ug | threonine | transfat | tryptophan | tyrosine | valine | vitA_asbeta_iu | vitA_iu | vitA_ug | vitB6_mg | vitB6_ug | vitB12_ug | vitC_mg | vitD_iu | vitD_ug | vitE_iu | vitE_mg | vitK_ug | source_USDA | source_usda | source | no_RDA | water | zinc_mg }}<noinclude>{{documentation}}</noinclude>
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox nutritional value with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox nutritional value]] with unknown parameter "_VALUE_"|ignoreblank=y| alanine | alcohol | arginine | aspartic acid | belowstyle | betacarotene_ug | caffeine | calcium_mg | caption | carbs | cholesterol | choline_mg | copper_mg | cystine | dextrose | fat | fiber | fibre | float | folate_ug | fructose | glucose | glutamic acid | glycine | histidine | hydroxyproline | image | image_alt | image_size | iron_mg | isoleucine | kcal | kJ | lactose | leucine | lutein_ug | lysine | magnesium_mg | manganese_mg | methionine | monofat | name | niacin_mg | noRDA | note | notes | omega3fat | omega6fat | opt1n | opt1v | opt2n | opt2v | opt3n | opt3v | opt4n | opt4v | pantothenic_mg | phenylalanine | phosphorus_mg | polyfat | potassium_mg | proline | protein | riboflavin_mg | riboflavin_ug | satfat | selenium_ug | serine | serving_size | sodium_mg | source | starch | sucrose | sugars | thiamin_mg | thiamin_ug | threonine | transfat | tryptophan | tyrosine | valine | vitA_asbeta_iu | vitA_iu | vitA_ug | vitB6_mg | vitB6_ug | vitB12_ug | vitC_mg | vitD_iu | vitD_ug | vitE_iu | vitE_mg | vitK_ug | source_USDA | source_usda | source | no_RDA | water | zinc_mg }}<noinclude>{{documentation}}</noinclude>