Template talk:Infobox nutritional value

From Wikipedia, the free encyclopedia
Jump to: navigation, search


Why isn't there a parameter for copper? Sasata (talk) 19:52, 12 September 2011 (UTC)

I don't know the answer either, but there is also missing the parameter for fluoride and selenium. —Götz (talk) 20:34, 21 April 2014 (UTC)
Zefr and I recently encountered this as well. We even tried manually entering in Copper on the kiwifruit page to no avail. Who is responsible for making/editing the nutritional box infocode? I agree that this needs to be redone to allow for other essential micronutrients such as copper and selenium to be displayed. TylerDurden8823 (talk) 18:39, 4 July 2017 (UTC)
Note that I had formatted the opt info incorrectly, but the value still does not compute %DV at kiwifruit. --Zefr (talk) 18:47, 4 July 2017 (UTC)
As I mentioned here, the %DV isn't coded for the |optX= parameters. That would require a change in how the template operates. Primefac (talk) 18:53, 4 July 2017 (UTC)
So, who's responsible for that? It's unclear to me who made this template and is responsible for any revisions or updates to it. TylerDurden8823 (talk) 20:23, 4 July 2017 (UTC)
Anyone who knows what they're doing, I suppose. The template is only semi-protected, but I'd rather not see just anyone fiddling about with the code. I'm happy to make any uncontroversial changes, so feel free to list out specifically what you would like changed/amended/added/etc and I'll see what I can do. Primefac (talk) 01:52, 5 July 2017 (UTC)
I'd like the template to either auto-populate other essential micronutrients so the listed profiles are more comprehensive (e.g., copper and selenium) or be able to manually add those in on the tables. I didn't tinker with the template precisely because I don't know how to do it without messing it up so I'll defer that to people who are more familiar with it such as yourself. I don't think there's any controversy about simply having a more comprehensive list of essential micronutrients displayed in the nutrition tables. TylerDurden8823 (talk) 03:00, 5 July 2017 (UTC)
I agree that is the objective and only copper and selenium calculated to %DV are needed in the template. --Zefr (talk) 03:06, 5 July 2017 (UTC)
So...anyone who understands how to fix this template willing to assist with making these revisions? TylerDurden8823 (talk) 04:00, 12 July 2017 (UTC)
From the discussion above, I assumed Primefac was going to work on the template to enable copper and selenium to be included in the standard infobox. What is the process, timeline and solution? --Zefr (talk) 14:23, 12 July 2017 (UTC)

────────────────────────────────────────────────────────────────────────────────────────────────────While I have a background in and am familiar with the subject material, looking up the things that you want changing is not high on my priority list. If you tell me what you want changed and how you want it changed, and it is unlikely to be contentious, I'm happy to make the change. For example, "Copper should be included in the metals, RDA is X mg". Primefac (talk) 19:17, 12 July 2017 (UTC)

Copper should be included in the metals, RDA is 2 mg. Selenium should be included in the metals, RDA is 70 ug. Source for reference DV amounts. Thanks for the help. --Zefr (talk) 19:38, 12 July 2017 (UTC)
 Done. Copper is |copper_mg= and selenium is |selenium_ug=. Primefac (talk) 19:58, 13 July 2017 (UTC)

contradiction in %DV with nutritiondata.com[edit]

There is significant differences in %DV values for many items such as rice, wheat, pigeon pea etc when compared to those in nutritiondata.com. Both claim USDA as their source.! — Preceding unsigned comment added by Vwalvekar (talkcontribs) 05:05, 3 August 2015 (UTC)

Automatic calorie calculator, omega-9, ash and fiber...[edit]

Hi, I think this nutritional value infobox is good, but, I would like to request some additional functionality to it, if it's possible. First, it should have an automatic calorie calculator (and that goes for kilojoule as well), and if fiber is to be featured under carbohydrates (as in "total carbohydrates"), it should calculate fiber calories separately, because they don't provide the same energy content (1.91 kcal for 1 g fiber). Fat should be 8.84 kcal per 1 g fat, and protein and carbs should be 4.06 kcal per each 1 g. Second, it should also include omega-9 (under monounsaturated), although that's optional since it's not an essential nutrient, but still useful to know, because too much omega-9 can be harmful. And also, ash would be helpful too, because it already includes support for water, so it would be useful to know how much is water and how much is ash. The reason why I think this template should automatically calculate calories, is because USDA quite often lists the wrong energy amounts. See for example discussion here. With that said, if these features are to be implemented, it should discard the kJ and kcal tags and just calculate calories automatically by default, based on the input of macronutrients alone. HempFan (talk) 23:36, 21 May 2016 (UTC)

Thank you for your message on my talk page. Changing the calculation of energy content is technically possible, but as pointed out in the discussion you're referring to, there is the issue of original research and personal opinions creeping into these tables. I don't really want to get involved in such a discussion, so I'll just give you my advice: find out how exactly (and why) the USDA calculates the numbers in their database from the raw analysis. I'm sure that they have good reasons for doing it the way they do it, even if you don't agree. Then, find a reliable/established source for a supposedly better calculation method. Propose how you would, unambiguously and automatically, convert the USDA values into the "new" values. Then discuss your proposal.
Regarding extra lines for omega-9 and ash: I don't think there are objections to adding those as optional data lines. Work out the details in the sandbox, then update the template, and add the omega-9 data to the articles where the template is used.
Han-Kwang (t) 10:04, 22 May 2016 (UTC)
Okay, I'll try adding omega-9 and ash; I had a look at the source yesterday, and while a bit complicated, it looks like I could do it, but I'll ask for your help if I screw up, deal? As for the calories, it really should be automatic, and I understand the original research argument, but the issue here is that many nutrition websites (and even food manufacturers for that matter), don't follow the proper standard for measuring calories, which is as I posted above, 4.06 for carbs and protein, 8.84 for fat and 1.91 for fiber (to the extent fiber calories are measured, depending on if it's soluble or insoluble fiber). As it is right now, the template automatically converts kcal to kJ and vice versa (by the way, 1 kcal is 4.184 kJ, and not 4.2; this should be corrected, but I'm not sure where or how to do it), and so, by that alone, if we were to follow the "original research" argument as argued in the sesame talk page, this template then arguably violates WP:OR. Personally I think such strict adherence to WP:OR policy is a bit misguiding as far as facts are concerned, and USDA, while a reliable source, definitely has issues in how they report the energy values of the food products they've analyzed. It could of course be that the reported kcal/kJ content on USDA actually is the correct part, and the macronutrients listed is the part which contains the inaccuracies, but it's more likely that they've simply miscalculated the total energy content based on their own criteria. I don't know what kind of nutrition standards the USDA follows, but again, the energy reported there in various food entries, are simply inaccurate, and I think this is problematic. I'll email USDA and ask them what's up. HempFan (talk) 10:39, 22 May 2016 (UTC)

Needs to be collapsible[edit]

The template clearly has a useful function but it can take up a very large amount of screen space, and in particular it occupies a great length on the right hand side, making image, diagram and table placement difficult. It would be very helpful if the template could have a parameter to allow it to be collapsed where necessary. Chiswick Chap (talk) 08:10, 21 April 2017 (UTC)