Template:Infobox food is permanently
protected from editing because it is a
heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by
consensus, editors may use {{
edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's
documentation to add usage notes or
categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the
talk page for discussing improvements to the
Infobox food template. |
|
Archives: 1Auto-archiving period: 180 days |
This template does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||
|
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)
As the number of Calories depends entirely on the portion size, why do we have this listed? It seems like a worthless parameter. I think it should be removed from the template. Wikipedia is not a menu. IronGargoyle ( talk) 12:32, 3 September 2019 (UTC)
Not sure why/when this started happening... but somehow the cookbook search link always appears now. For example on Keledoş. I don't think that should be the case unless there's a parameter for 'cookbook' called, right? effeiets anders 04:48, 13 September 2020 (UTC)
Could the "for example" in name_italics's description please be moved to the front of the example sentence, in order to avoid dubious wording? 8ya ( talk • contribs) 14:38, 5 June 2021 (UTC) Also it looks like, at least in the editing preview, that using name-italics doesn't actually change anything 8ya ( talk • contribs) 14:43, 5 June 2021 (UTC)
Does anyone know why 'country' appears as 'place of origin' on the wiki page? For older foods, 'place of origin' seems a more accurate description. Halbared ( talk) 08:54, 22 June 2021 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Very small request, and not really that important but could someone add in the usage section, for the last element, "no_recipes", a space before the equal sign? Just for consistency with all the other elements. Thanks AdrianHObradors ( talk) 10:12, 31 May 2022 (UTC)
{{
edit template-protected}}
is usually not required for edits to the documentation or categories of templates using a
documentation subpage. Use the 'edit' link at the top of the green "Template documentation" box to edit the documentation subpage. –
Jonesey95 (
talk)
13:54, 31 May 2022 (UTC)
It's come up before, and I'd like to formally request a way to suppress the automatic cookbook link. (I wish there were a way external links could be red.) Better to miss a few opportunities for a real link than to habitually mislead readers by pointing them to nonexistent pages on a sister project. I experienced this myself as a reader—from Sacchettoni, but I'm sure there are many examples. -- BDD ( talk) 00:33, 25 June 2022 (UTC)
cookbook
.) Most template usages have a useless link appear which dumps the user onto the page of a failed Wikibook search. -
R. S. Shaw (
talk)
06:30, 27 June 2022 (UTC)|cookbook=
to override and force a link. You can also use |no_recipe=
to suppress it entirely. —
hike395 (
talk)
05:02, 1 August 2022 (UTC)The existence of the country parameter is a perennial source of nationalistic food fights all over Wikipedia, and is unhelpful in the majority of cases, where food items predate modern country boundaries. The label for the parameter was changed to Place of origin way back in 2009. It's long past time that an alternate parameter name was made available and preferred over country. I suggest place_of_origin, reflecting the label. The old name can be retained as an alternate parameter name for compatibility, or it can be deprecated and systematically replaced. -- Paul_012 ( talk) 01:47, 19 August 2022 (UTC)
Also, national_cuisine could be replaced with associated_cuisine, as it only needs to link to a Fooian cuisine article, and there are such articles (e.g. Mediterranean cuisine, Cajun cuisine) whose scope isn't strictly national. -- Paul_012 ( talk) 01:50, 19 August 2022 (UTC)
|place_of_origin=
as well as |associated_cuisine=
. —
hike395 (
talk)
13:36, 22 August 2022 (UTC)This
edit request to
Template: Infobox food has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Under the Parameter definitions, for place of origin, please state that it typically means country of origin in parenthesis. 2600:100C:A210:2BB2:D065:41F0:97B6:9328 ( talk) 21:38, 10 January 2023 (UTC)
{{
Edit template-protected}}
template. This parameter has been populated with a variety of place names. See
the Template Data monthly report (scroll to place_of_origin and click "Click to show") for a list. –
Jonesey95 (
talk)
21:58, 10 January 2023 (UTC)This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change:
Disclaimer: I am not fluent in Template syntax.
Currently, both the parameters "creator" and "creators" are accepted. However, when only "creators" is specified, the check for unknown parameters still shows an error, claiming "creators" is not a known parameter.
I am guessing (not being familiar with the unknown parameters check), that this is due to "creators" not being listed in the call to
{{#invoke:check for unknown parameters...
I suppose adding "creators" to the list of parameter names will fix this (but once again, I don't know how this code handles "both parameters are supported" type parameters).
Diff:
Old:
{{#invoke:check for unknown parameters|check
|unknown={{main other|[[Category:Pages using infobox food with unknown parameters|_VALUE_]]}}
|preview=unknown parameter "_VALUE_"
|alt|alternate name|alternate_name|associated_cuisine|belowstyle|calories|calories_ref|caption|carbohydrate|commons|cookbook|country
|course|creator|fat|glycemic_index|image|image_alt|image_size|main_ingredient|maxtime|minor_ingredient|mintime
|name|name_italics|name_lang|national_cuisine|no_commons|no_recipes|other|place_of_origin|protein|qid|region|served|serving_size
|similar_dish|time1|time2|type|variations|year}}
New:
{{#invoke:check for unknown parameters|check
|unknown={{main other|[[Category:Pages using infobox food with unknown parameters|_VALUE_]]}}
|preview=unknown parameter "_VALUE_"
|alt|alternate name|alternate_name|associated_cuisine|belowstyle|calories|calories_ref|caption|carbohydrate|commons|cookbook|country
|course|creator|creators|fat|glycemic_index|image|image_alt|image_size|main_ingredient|maxtime|minor_ingredient|mintime
|name|name_italics|name_lang|national_cuisine|no_commons|no_recipes|other|place_of_origin|protein|qid|region|served|serving_size
|similar_dish|time1|time2|type|variations|year}}
RudolfSchreier ( talk) 09:33, 12 January 2023 (UTC)
Done — hike395 ( talk) 12:13, 12 January 2023 (UTC)
Should this template use
| image_upright =
instead of
| image_size =
Or could we allow both? I'm wondering because of what I'm reading at MOS:IMAGESIZE. Valereee ( talk) 14:47, 13 May 2024 (UTC)
|image_upright=
. There are 2,951 articles using |image_size=
, so it should continue to be supported for now but use should be deprecated.
Plantdrew (
talk)
16:24, 13 May 2024 (UTC)
|image_upright=
to this template, and start going through articles to change the use of |image_size=
to |image_upright=
(and maybe insert a hidden comment that image-size should not be used?) so that we can remove it sometime in the future?
Valereee (
talk)
16:29, 13 May 2024 (UTC)
|image_size=
as deprecated at
Template:Infobox food/TemplateData. We should add |image_upright=
to this template. 16:43, 13 May 2024 (UTC)
Plantdrew (
talk)
16:43, 13 May 2024 (UTC)
|upright=
or |image_upright=
. Default value is now |upright=1
—
hike395 (
talk)
17:17, 13 May 2024 (UTC)
Template:Infobox food is permanently
protected from editing because it is a
heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by
consensus, editors may use {{
edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's
documentation to add usage notes or
categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the
talk page for discussing improvements to the
Infobox food template. |
|
Archives: 1Auto-archiving period: 180 days |
This template does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||
|
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)
As the number of Calories depends entirely on the portion size, why do we have this listed? It seems like a worthless parameter. I think it should be removed from the template. Wikipedia is not a menu. IronGargoyle ( talk) 12:32, 3 September 2019 (UTC)
Not sure why/when this started happening... but somehow the cookbook search link always appears now. For example on Keledoş. I don't think that should be the case unless there's a parameter for 'cookbook' called, right? effeiets anders 04:48, 13 September 2020 (UTC)
Could the "for example" in name_italics's description please be moved to the front of the example sentence, in order to avoid dubious wording? 8ya ( talk • contribs) 14:38, 5 June 2021 (UTC) Also it looks like, at least in the editing preview, that using name-italics doesn't actually change anything 8ya ( talk • contribs) 14:43, 5 June 2021 (UTC)
Does anyone know why 'country' appears as 'place of origin' on the wiki page? For older foods, 'place of origin' seems a more accurate description. Halbared ( talk) 08:54, 22 June 2021 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Very small request, and not really that important but could someone add in the usage section, for the last element, "no_recipes", a space before the equal sign? Just for consistency with all the other elements. Thanks AdrianHObradors ( talk) 10:12, 31 May 2022 (UTC)
{{
edit template-protected}}
is usually not required for edits to the documentation or categories of templates using a
documentation subpage. Use the 'edit' link at the top of the green "Template documentation" box to edit the documentation subpage. –
Jonesey95 (
talk)
13:54, 31 May 2022 (UTC)
It's come up before, and I'd like to formally request a way to suppress the automatic cookbook link. (I wish there were a way external links could be red.) Better to miss a few opportunities for a real link than to habitually mislead readers by pointing them to nonexistent pages on a sister project. I experienced this myself as a reader—from Sacchettoni, but I'm sure there are many examples. -- BDD ( talk) 00:33, 25 June 2022 (UTC)
cookbook
.) Most template usages have a useless link appear which dumps the user onto the page of a failed Wikibook search. -
R. S. Shaw (
talk)
06:30, 27 June 2022 (UTC)|cookbook=
to override and force a link. You can also use |no_recipe=
to suppress it entirely. —
hike395 (
talk)
05:02, 1 August 2022 (UTC)The existence of the country parameter is a perennial source of nationalistic food fights all over Wikipedia, and is unhelpful in the majority of cases, where food items predate modern country boundaries. The label for the parameter was changed to Place of origin way back in 2009. It's long past time that an alternate parameter name was made available and preferred over country. I suggest place_of_origin, reflecting the label. The old name can be retained as an alternate parameter name for compatibility, or it can be deprecated and systematically replaced. -- Paul_012 ( talk) 01:47, 19 August 2022 (UTC)
Also, national_cuisine could be replaced with associated_cuisine, as it only needs to link to a Fooian cuisine article, and there are such articles (e.g. Mediterranean cuisine, Cajun cuisine) whose scope isn't strictly national. -- Paul_012 ( talk) 01:50, 19 August 2022 (UTC)
|place_of_origin=
as well as |associated_cuisine=
. —
hike395 (
talk)
13:36, 22 August 2022 (UTC)This
edit request to
Template: Infobox food has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Under the Parameter definitions, for place of origin, please state that it typically means country of origin in parenthesis. 2600:100C:A210:2BB2:D065:41F0:97B6:9328 ( talk) 21:38, 10 January 2023 (UTC)
{{
Edit template-protected}}
template. This parameter has been populated with a variety of place names. See
the Template Data monthly report (scroll to place_of_origin and click "Click to show") for a list. –
Jonesey95 (
talk)
21:58, 10 January 2023 (UTC)This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change:
Disclaimer: I am not fluent in Template syntax.
Currently, both the parameters "creator" and "creators" are accepted. However, when only "creators" is specified, the check for unknown parameters still shows an error, claiming "creators" is not a known parameter.
I am guessing (not being familiar with the unknown parameters check), that this is due to "creators" not being listed in the call to
{{#invoke:check for unknown parameters...
I suppose adding "creators" to the list of parameter names will fix this (but once again, I don't know how this code handles "both parameters are supported" type parameters).
Diff:
Old:
{{#invoke:check for unknown parameters|check
|unknown={{main other|[[Category:Pages using infobox food with unknown parameters|_VALUE_]]}}
|preview=unknown parameter "_VALUE_"
|alt|alternate name|alternate_name|associated_cuisine|belowstyle|calories|calories_ref|caption|carbohydrate|commons|cookbook|country
|course|creator|fat|glycemic_index|image|image_alt|image_size|main_ingredient|maxtime|minor_ingredient|mintime
|name|name_italics|name_lang|national_cuisine|no_commons|no_recipes|other|place_of_origin|protein|qid|region|served|serving_size
|similar_dish|time1|time2|type|variations|year}}
New:
{{#invoke:check for unknown parameters|check
|unknown={{main other|[[Category:Pages using infobox food with unknown parameters|_VALUE_]]}}
|preview=unknown parameter "_VALUE_"
|alt|alternate name|alternate_name|associated_cuisine|belowstyle|calories|calories_ref|caption|carbohydrate|commons|cookbook|country
|course|creator|creators|fat|glycemic_index|image|image_alt|image_size|main_ingredient|maxtime|minor_ingredient|mintime
|name|name_italics|name_lang|national_cuisine|no_commons|no_recipes|other|place_of_origin|protein|qid|region|served|serving_size
|similar_dish|time1|time2|type|variations|year}}
RudolfSchreier ( talk) 09:33, 12 January 2023 (UTC)
Done — hike395 ( talk) 12:13, 12 January 2023 (UTC)
Should this template use
| image_upright =
instead of
| image_size =
Or could we allow both? I'm wondering because of what I'm reading at MOS:IMAGESIZE. Valereee ( talk) 14:47, 13 May 2024 (UTC)
|image_upright=
. There are 2,951 articles using |image_size=
, so it should continue to be supported for now but use should be deprecated.
Plantdrew (
talk)
16:24, 13 May 2024 (UTC)
|image_upright=
to this template, and start going through articles to change the use of |image_size=
to |image_upright=
(and maybe insert a hidden comment that image-size should not be used?) so that we can remove it sometime in the future?
Valereee (
talk)
16:29, 13 May 2024 (UTC)
|image_size=
as deprecated at
Template:Infobox food/TemplateData. We should add |image_upright=
to this template. 16:43, 13 May 2024 (UTC)
Plantdrew (
talk)
16:43, 13 May 2024 (UTC)
|upright=
or |image_upright=
. Default value is now |upright=1
—
hike395 (
talk)
17:17, 13 May 2024 (UTC)