Template talk:Infobox food
Food and drink Template‑class | ||||||||||||||
|
Word Wrap Problems
I used nowrap to protect lines ending in oparen ess cparen from wrapping badly. —Preceding unsigned comment added by 68.49.181.66 (talk) 15:05, 31 August 2008 (UTC)
Suggested Changes
I think the "Approximate Calories per serving :" should be changed to "Approximate energy per serving :" and the template accept both Calories and kilojoules and convert between the two. --121.72.241.142 (talk) 19:57, 6 February 2009 (UTC)
September 2011 changes
After a bit of tinkering, I've rolled back the changes to the image template. The reason I did this is because the changes had caused images to show up incorrectly, i.e. with [[File: showing up before and after them. All the pages currently use the image parameter by passing an [[File:]] or [[Image:]]. To make a change that's in line with the rest of Wiki (image = Myfile.jpg, imagesize = 203px) we'd have to change over all the images everywhere. I suppose an AWB script could be written to do that, but that's a little beyond my skill with AWB. Anyway, I've reverted the changes. — HelloAnnyong (say whaaat?!) 14:59, 24 September 2011 (UTC)
"Origin" heading
For a food like Gulab jamun, whose place of origin is disputed, it doesn't look very good to have the heading "Origin", with "Alternative names" directly beneath it. Can someone suggest and/or implement an improvement? Thanks. Sminthopsis84 (talk) 14:12, 8 February 2013 (UTC)
serving size
I just noticed that the infobox "calories" field has been changed from saying "per serving" to "per 100g serving". Although standardising on 100g is probably a good thing, this unannounced change means any infoboxes that use food-specific non-100g "standard servings" will now contain nonsense values, and worse it will be hard to tell which do and which don't since the original infobox didn't require the serving size to be given. Since changing an infobox template doesn't constitute an edit of the articles that use it, editors of food articles won't have had any alert on their watchlist and won't necessarily know their infobox data need rechecking.
As an example, Genoa Cake is 150kcal "per serving" but 340kcal "per 100g", since a "serving" is normally considered to be 1 slice (1/8 cake). Maybe a new "per 100g" field should be created and the previous one kept as a generic "per serving" one to avoid articles containing screwed up figures. Samatarou (talk) 02:10, 29 November 2013 (UTC)
- you can set the value of
|serving_size=
or leave it blank. we could make the blank default? Frietjes (talk) 23:06, 6 December 2013 (UTC) - I changed it back the old behaviour (no serving size by default). you can use
|serving_size=100 g
for 100 g, but the default is an unspecified serving size as it was before. Frietjes (talk) 23:14, 6 December 2013 (UTC)
Bug?
The instance of the template at Banket (food) is broken; possibly due to a template bug. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:11, 7 December 2013 (UTC)
- fixed. Frietjes (talk) 19:25, 8 December 2013 (UTC)
- You fixed the displayed template by changing
|name={{Lang|nl|Banket}}
to|name=Banket
. However, it should not be necessary to do this; the use of {{lang}} in the name parameter should be catered for. Why do we even need Wikisource and Commons search links in the infobox? I think they should be removed. We have better templates, such as {{Commons category}}. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:35, 8 December 2013 (UTC)- added
|name_lang=
. Frietjes (talk) 16:17, 12 December 2013 (UTC)- Thank you. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:31, 20 December 2013 (UTC)
- added
- You fixed the displayed template by changing
All those horizontal lines
I don't know about those. What do you think about removing (most of) them? Anna Frodesiak (talk) 00:20, 9 December 2013 (UTC)
- Agree. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:31, 20 December 2013 (UTC)
- Truly none of this is necessary. See the sandbox for a revised version which uses proper labels and makes the table far more compact in addition to significantly improving its semantic value. Chris Cunningham (user:thumperward) (talk) 16:41, 5 March 2014 (UTC)
- @Thumperward: Much better, thank you. I do think, though that we should retain "type" above the image ("soup", in the testcase example) - more infoboxes should do this. Can we also get rid of the sister links (see next two sections), then deploy this? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:04, 5 March 2014 (UTC)
- Any particular reason for keeping "type" as a top element, rather than as a standard key-value pair? For the sisterlinks I'd prefer to get an idea of how widely they're used first - this is a significant reworking of the template layout but it's not actually changing much of the content for the sake of an uncontroversial transition. Anyway, the code is deployed now: I'll change the way the type is presented back to how it was if you've got a rationale for it, or you can give it a go yourself (the code is a lot easier to read now). Chris Cunningham (user:thumperward) (talk) 11:20, 10 March 2014 (UTC)
- and we are back to 2012 minus the headers. Frietjes (talk) 18:07, 11 March 2014 (UTC)
- Any particular reason for keeping "type" as a top element, rather than as a standard key-value pair? For the sisterlinks I'd prefer to get an idea of how widely they're used first - this is a significant reworking of the template layout but it's not actually changing much of the content for the sake of an uncontroversial transition. Anyway, the code is deployed now: I'll change the way the type is presented back to how it was if you've got a rationale for it, or you can give it a go yourself (the code is a lot easier to read now). Chris Cunningham (user:thumperward) (talk) 11:20, 10 March 2014 (UTC)
- @Thumperward: Much better, thank you. I do think, though that we should retain "type" above the image ("soup", in the testcase example) - more infoboxes should do this. Can we also get rid of the sister links (see next two sections), then deploy this? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:04, 5 March 2014 (UTC)
- Truly none of this is necessary. See the sandbox for a revised version which uses proper labels and makes the table far more compact in addition to significantly improving its semantic value. Chris Cunningham (user:thumperward) (talk) 16:41, 5 March 2014 (UTC)
Sister links
As mentioned above, I propose that we remove the Wikisource and Commons search links from this infobox. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:32, 20 December 2013 (UTC)
Problem with Wikibooks links
The template creates a link to an assumed name for an article on Wikibooks using the PAGENAME and the Wikibooks Cookbook namespace; however, this will rarely be correct for two part names, e.g. Pumpkin pie as the naming policy on Wikibooks requires title case, thus B:Cookbook:Pumpkin Pie, not B:Cookbook:Pumpkin pie (the latter works only because I recently created a redirect, these are however not common).--Doug.(talk • contribs) 01:15, 27 December 2013 (UTC)
- the solution is probably to have a specific parameter for linking to sister projects, rather than trying to do so automatically. Frietjes (talk) 18:42, 1 January 2014 (UTC)
-
- That would probably be best, but the problem here was that {{wikibooks-inline}} assumes that a second parameter means a sub-page, rather than being the title of the link as I'd assumed. Now fixed. Chris Cunningham (user:thumperward) (talk) 10:53, 17 March 2014 (UTC)
-
- Great, thanks! But it is still a problem as you note at User_talk:Anna_Frodesiak/archive40#Link_redirection_not_working_help_needed the fix doesn't work for Bubble and squeak which links to B:Cookbook:Bubble_and_squeak but should link to B:Cookbook:Bubble_and_Squeak.--Doug.(talk • contribs) 16:48, 25 April 2014 (UTC)
- fixed here. Frietjes (talk) 16:07, 26 April 2014 (UTC)
- Made it into Special:Search format[1] which would fix the case sensitive problem (and also leads the reader to search page if no article exist).···Vanischenu (mc/talk) 07:17, 30 July 2014 (UTC)
- fixed here. Frietjes (talk) 16:07, 26 April 2014 (UTC)
- Great, thanks! But it is still a problem as you note at User_talk:Anna_Frodesiak/archive40#Link_redirection_not_working_help_needed the fix doesn't work for Bubble and squeak which links to B:Cookbook:Bubble_and_squeak but should link to B:Cookbook:Bubble_and_Squeak.--Doug.(talk • contribs) 16:48, 25 April 2014 (UTC)
Commons Link
The link to commons is rubbish. Can we just have a {{Commonscat}}-like link? Railwayfan2005 (talk) 12:35, 22 April 2014 (UTC)
- seems like a good idea. Frietjes (talk) 14:47, 22 April 2014 (UTC)
Country, national cuisine
Some more guidance on when and how to use country, region, and national_cuisine seems necessary. Currently the documentation says that 'country' is "Country of origin of the dish" while 'national_cuisine' is "Cuisine by nationality." Gah? What's the difference? Should 'national cuisine' be used (only?) for dishes strongly associated with a nation?* Should 'country' then be used with the country where something was first served? Or where it's traditionally served? What if the moment or locale of origination is unknown, or known only imprecisely?
The question came up with Peach Melba, whose place of origin is precisely known. The dish was created by Auguste Escoffier, a chef associated with French cuisine, especially haute cuisine, but he first served it at the Savoy Hotel in London. Is 'country' even relevant in that case? (I thought "no", but another editor disagreed, and I don't think either of us is sure we are correct.)
*I could further ask, "What counts as a nation?" The answer to that question seems pertinent to, say bagel, a dish associated with Ashkenazi Jews throughout Europe and North America, though the infobox currently says "country = Poland, region = Central Europe".
Cnilep (talk) 04:29, 9 July 2014 (UTC)
Type parameter not listing in articles
The Type parameter in the infobox is presently not displaying in articles. For example, see Chicken soup, where the type is listed as "Soup" on the edit page, but it's not appearing when viewing the article. The transclusions are a little tricky, so pinging significant contributors User:Vanischenu, User:Sardanaphalus, User:Frietjes to request input here to hopefully correct this problem. NorthAmerica1000 06:22, 9 August 2014 (UTC)
- Fixed the article. Apperently type isn't a field on the infobox, they placed it in course. ///ECGT Mobile | On the Go 06:48, 9 August 2014 (UTC)