Template talk:Infobox French commune/Archive 3

Demonym
Hey, do you think we could get an entry for demonym within demographics? eg people from Paris are Parisiens, people from Île-de-Sein are called Sénans, etc. Some of them are kind of wacky: people from Wy-dit-Joli-Village = Vicusiens. The French-language commune infobox has it and I think it's useful - in the English articles on communes, I've noticed it mentioned inconsistently in the Demographics section.. Thanks! Wikimandia (talk) 04:07, 25 January 2015 (UTC)
 * It's already available, as population_demonym. Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 15:47, 25 January 2015 (UTC)
 * Well, include that in the commentary. [Done for you.]
 * Better yet, include demonym or just replace the needlessly redundant redundancy of population_demonym with the correct, terser term so people can actually find it.
 * Best, include En_demonym and Fr_demonym, because the people from Paris are not Parisiens in English. They're Parisians. They can display together as "Demonym". Just have a line break and a nonwrapping space before the gloss:
 * — Llywelyn II   01:24, 1 March 2015 (UTC)
 * Also note that currently you treat most of the terms without underscores:  instead of   but that treating "population_demonym" that way breaks the syntax and causes nothing to be displayed. —  Llywelyn II   01:41, 1 March 2015 (UTC)
 * There is no "you"; just "we". HTH. Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 17:06, 28 March 2015 (UTC)
 * There is no "you"; just "we". HTH. Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 17:06, 28 March 2015 (UTC)

Metropolis of Lyon
The new "territorial collectivity" the Metropolis of Lyon has recently been broken off of the Rhône department. It has essentially the same administrative status as a department. This template needs to be updated to reflect this change. The problem, however, is that the departmental code is currently the same for the Metropolis as it is for Rhône, so the current system of determining department using the INSEE code will not work in this case. Liam987 (talk)  13:16, 28 March 2015 (UTC)
 * Red information icon with gradient background.svg Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. -- Red rose64 (talk) 16:19, 28 March 2015 (UTC)

Centre-Val de Loire and Metropolis of Lyon
Two changes w.r.t. local administration: the region Centre has been renamed Centre-Val de Loire per 16 January 2015, and the Metropolis of Lyon has been formed per 1 January 2015, as already mentioned above. I made the following changes in the sandbox, please copy them to the main infobox: |18|28|36|37|41|45 = Centre
 * should be

|18|28|36|37|41|45 = Centre-Val de Loire

And these lines should be added between the list of departments and the part about the arrondissements: | subdivision_type2 =
 * subdivision_name2 =

Thanks. Markussep Talk 09:51, 29 March 2015 (UTC)
 * Yes check.svg Done -- Red rose64 (talk) 13:56, 29 March 2015 (UTC)
 * Thank you! Markussep Talk 14:18, 29 March 2015 (UTC)


 * That is strange, even though I had tested it in the sandbox, the infobox doesn't work as it should: departments aren't shown anymore. I don't understand why, but I think I found a workaround: nested switches. I just tested it in the sandbox, and it works fine there but apparently that's no guarantee for success. So the whole "subdivision2" section needs to be replaced. Markussep Talk 07:59, 30 March 2015 (UTC)
 * It's difficult to follow what you want when there are changes in the sandbox and also huge code blobs in the talk page. Are they the same? I can't tell. Please make sure that the sandbox conforms to what the main template should become, and remove the code blobs above. Remember that Template:Infobox French commune/testcases is available for you to ensure that your proposed changes are correct. -- Red rose64 (talk) 12:00, 30 March 2015 (UTC)
 * Sorry for the trouble, I removed the code. The current sandbox version (time stamp 07:48, 30 March 2015‎) is correct, for all testcases. Markussep Talk 12:09, 30 March 2015 (UTC)
 * Yes check.svg Done -- Red rose64 (talk) 12:17, 30 March 2015 (UTC)


 * It works, thanks! Markussep Talk 13:34, 30 March 2015 (UTC)

Template-protected edit request on 20 August 2015
Change  to   as the commune of Paris is the same as the department of Paris and this causes bold font.

Rob984 (talk) 23:26, 20 August 2015 (UTC)
 * ✅ - I've made a slightly more complicated change so that it stays linked in the example at Template:Infobox French commune/doc and perhaps elsewhere. -- John of Reading (talk) 17:34, 22 August 2015 (UTC)

Template edit request
Hi. At Talk:Meuse (river) it was agreed to move Meuse (river) to Meuse and Meuse to Meuse (department) once the links had been sorted out. The latter move has happened. Could someone please change Meuse in this template to Meuse (department) so we can sort out all the links and finish the moves. Thanks. Bermicourt (talk) 15:45, 24 August 2015 (UTC)
 * ✅ -- John of Reading (talk) 15:53, 24 August 2015 (UTC)

Template edit request
Could someone please change this template so that, although "coordinates_display = inline,title" remains the default, the template will also accept "inline" alone as input in the "coordinates_display" field. Deor (talk) 19:30, 11 October 2015 (UTC) PAGE''' ]]) 15:12, 12 October 2015 (UTC)
 * ✅. The coordinates_display parameter can now be used, but will default to "inline,title" if left blank. --Ahecht ([[User_talk:Ahecht|'''TALK
 * fixed so that "will default to "inline,title" if left blank" Frietjes (talk) 15:54, 8 November 2015 (UTC)

Template edit request
The regional reform (see Regions of France) has come into effect on 1 January 2016, so the infoboxes need to be updated to show the new regions. I made the necessary changes and tested them, see this version of the sandbox. Please copy this to the main infobox. BTW several new regions have provisional (but official) names, these might be changed in October 2016. Markussep Talk 13:21, 5 January 2016 (UTC)
 * Yes check.svg Done I could not see any errors in the sandbox and looking at Regions of France it is a well sourced and supported change so I copied the sandbox version to "live" template. Qed237&#160;(talk) 15:02, 5 January 2016 (UTC)

Error displaying Centre-Val de Loire
On pages like Batilly-en-Puisaye. In the infobox you see Location within Centre region. It should read Location within Centre-Val de Loire. Not sure if this is a more general problem. Thanks for your time. Lonjers (talk) 22:53, 19 January 2016 (UTC)
 * I've changed the "name" parameter at Template:Location map France Centre, but that's not enough to fix the problem. I'm not going to risk renaming that template, since I don't know how it all fits together! -- John of Reading (talk) 07:49, 20 January 2016 (UTC)
 * This has to be changed in Infobox French commune/regmap, I just made the edit request. Markussep Talk 09:32, 20 January 2016 (UTC)
 * It's done. Markussep Talk 14:51, 20 January 2016 (UTC)

Edit request on 30 March 2012
edit protected

Maps are available for two regions now. Please replace the following lines:


 * |04|05|06|13|83|84 =


 * |01|07|26|38|42|69|73|74 =

with:


 * |04|05|06|13|83|84 =


 * |01|07|26|38|42|69|73|74 =

Markussep Talk 20:06, 30 March 2012 (UTC)
 * Done. Sorry about the wait. --Closedmouth (talk) 15:44, 11 April 2012 (UTC)

Please add missing region maps
This template is missing the following region maps:


 * Template:Location map France Aquitaine
 * Template:Location map France Auvergne
 * Template:Location map France Centre
 * Template:Location map France Languedoc-Roussillon
 * Template:Location map France Limousin
 * Template:Location map France Picardy

Therefore, please make the following updates to Template:Infobox French commune/regmap:


 * Replace:
 * With:


 * Replace:
 * With:


 * Replace:
 * With:


 * Replace:
 * With:


 * Replace:
 * With:


 * Replace:
 * With:

To make this easier, I created Template:Infobox French commune/regmap/sandbox which can be copied into Template:Infobox French commune/regmap.

-- Zyxw (talk) 17:51, 13 August 2012 (UTC)
 * Yes check.svg Done per sandbox, which had seven extra regions not six - the additional one being Midi-Pyrénées -- Red rose64 (talk) 18:17, 13 August 2012 (UTC)
 * Thanks for the quick turnaround and sorry about leaving out Template:Location map France Midi-Pyrénées in my request. -- Zyxw (talk) 06:34, 14 August 2012 (UTC)

Edit request 20 January 2016
The Centre region has been renamed Centre-Val de Loire. Please change this line:

|18|28|36|37|41|45 =

into:

|18|28|36|37|41|45 =

Markussep Talk 09:31, 20 January 2016 (UTC)


 * Yes check.svg Done Bazj (talk) 11:52, 20 January 2016 (UTC)

Normandy
Someone who can edit protected templates, please, change "Normandy (French region)" to "Normandy (administrative region)". Thanks. --glossologist (talk) 22:55, 21 January 2016 (UTC)

Edit request 27 January 2016
Two regions' articles have been moved: Nord-Pas-de-Calais-Picardie and Normandy. Please change these lines:

|59|62|02|60|80 = Nord-Pas-de-Calais-Picardy

|14|50|61|27|76 = Normandy

into:

|59|62|02|60|80 = Nord-Pas-de-Calais-Picardie

|14|50|61|27|76 = Normandy

Markussep Talk 12:44, 27 January 2016 (UTC)


 * Yes check.svg Done Qed237&#160;(talk)</i> 13:20, 27 January 2016 (UTC)

Edit request 9 June 2016
Below ""

Add
 * utc_offset1             =
 * timezone1_DST     =
 * utc_offset1_DST    =

Don't worry about the documentation as I can edit that.

Thanks,

Rob984 (talk) 09:15, 9 June 2016 (UTC) PAGE''' ]]) 15:40, 9 June 2016 (UTC)
 * I'm wondering about the consistency here. Timezone1 uses "time zone", but timezone1_DST uses "timezone". Similarly, timezone1 uses spaces while the others use underscores. --Ahecht ([[User_talk:Ahecht|<span style="color:#FFF;background:#00f;display:inline-block;padding:1px 1px 0;vertical-align:-0.3em;line-height:1;font-size:50%;text-align:center;">'''TALK
 * Oh, I didn't notice that. I went ahead and changed them all to spaces, including a space between "time" and "zone". Rob984 (talk) 16:51, 9 June 2016 (UTC)

I notice that the code at Infobox French region is a little more elaborate than what's been suggested. | timezone1              = What are your thoughts on this for consistency sake? — Andy W.  ( talk  · ctb) 17:57, 9 June 2016 (UTC)
 * utc_offset1            =
 * timezone1_DST          =
 * utc_offset1_DST        =
 * Only problem is, if there are communes outside of metropolitan France which do not have a spcified time zone already, CET will be shown. At the momment, timezone1 isn't specified for any communes, but I assume you would leave "time zone" as a fall back. Are there a lot of communes outside of metropolitan France? As I think they would have to be checked. Rob984 (talk) 20:18, 9 June 2016 (UTC)
 * Makes sense. I checked Infobox settlement usage by other templates. Most leave it blank or don't offer customization. If we want to pipe new params, I suggest timezone, utc_offset, timezone_DST, and utc_offset_DST, with underscores. (Off topic: I think Infobox French region could have left off the "1" suffixes, but definitely don't change them because it'll break pages) — Andy W.  ( talk  · ctb) 21:04, 9 June 2016 (UTC)
 * We can base the timezone off of the first two digits of the INSEE code, as is done elsewhere in the template:

| timezone1              = PAGE''' ]]) 16:22, 10 June 2016 (UTC)
 * utc_offset1            =
 * timezone1_DST          =
 * utc_offset1_DST        =
 * --Ahecht ([[User_talk:Ahecht|<span style="color:#FFF;background:#00f;display:inline-block;padding:1px 1px 0;vertical-align:-0.3em;line-height:1;font-size:50%;text-align:center;">'''TALK


 * Clever idea. I notice the use of underscores and spaces for parameter names is slightly inconsistent throughout the template (for example "flag_link" and "image flag size"). Most parameter names use spaces, which means we are not currently matching the parameter names used for Infobox Settlement, but that isn't a problem I don't think. So I reckon sticking with spaces, rather than underscores, is preferred (such as in documentation). And I advise changing any parameter names like "flag_link" to spaces (with fall back of course). Rob984 (talk) 12:37, 11 June 2016 (UTC)
 * Looks like flag_link is the only inconsistency actually. Rob984 (talk) 12:38, 11 June 2016 (UTC)
 * Sandbox is updated with Ahecht's suggestion. See the testcases page. Also added flag link as an alias for inter-param consistency. We're good to sync if there are no objections. — Andy W. ( talk  · ctb) 16:09, 11 June 2016 (UTC)
 * Not at all. Thanks guys. Rob984 (talk) 17:12, 11 June 2016 (UTC)
 * Synced. Update the doc as necessary, thanks! Ping if there are any issues. — Andy W. ( talk  · ctb) 17:26, 11 June 2016 (UTC)

Edit request 9 August 2016
One department's article has been moved (2 years ago): Moselle. Please change this line:

|57 = Moselle

into:

|57 = Moselle

Markussep Talk 09:59, 9 August 2016 (UTC)
 * ✅ -- John of Reading (talk) 10:18, 9 August 2016 (UTC)
 * Thanks! Markussep Talk 12:43, 9 August 2016 (UTC)

Edit request: update regions
Could this template please be updated to reflect the new names of the French regions? As you may know, some of the regions changed names, and some now have different territories as well as new names. The names of the pre-2016 regions are still displaying in infoboxes. For an example, see Roubaix: the region name shown with the map is Nord-Pas-de-Calais, but that region combined into the new region of Hauts-de-France. I'd appreciate a ping with any reply. Thanks. --Auntof6 (talk) 07:37, 11 October 2016 (UTC)
 * Red information icon with gradient background.svg Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. &mdash; Martin (MSGJ · talk) 08:23, 11 October 2016 (UTC)
 * , ping per request &mdash; Martin (MSGJ · talk) 08:24, 11 October 2016 (UTC)

Edit request 11 October 2016
Several regions of France have been renamed officially at the end of September. Therefore the following part has to be modified (see sandbox): |67|68|08|10|51|52|54|55|57|88 = Alsace-Champagne-Ardenne-Lorraine |24|33|40|47|64|19|23|87|16|17|79|86 = Aquitaine-Limousin-Poitou-Charentes |03|15|43|63|01|07|26|38|42|69|73|74 = Auvergne-Rhône-Alpes |22|29|35|56 = Brittany |21|58|71|89|25|39|70|90 = Bourgogne-Franche-Comté |18|28|36|37|41|45 = Centre-Val de Loire |2A|2B = Corsica |75|77|78|91|92|93|94|95 = Île-de-France |11|30|34|48|66|09|12|31|32|46|65|81|82 = Languedoc-Roussillon-Midi-Pyrénées |59|62|02|60|80 = Nord-Pas-de-Calais-Picardie |14|50|61|27|76 = Normandy |44|49|53|72|85 = Pays de la Loire |04|05|06|13|83|84 = Provence-Alpes-Côte d'Azur into: |03|15|43|63|01|07|26|38|42|69|73|74 = Auvergne-Rhône-Alpes |22|29|35|56 = Brittany |21|58|71|89|25|39|70|90 = Bourgogne-Franche-Comté |18|28|36|37|41|45 = Centre-Val de Loire |2A|2B = Corsica |67|68|08|10|51|52|54|55|57|88 = Grand Est |75|77|78|91|92|93|94|95 = Île-de-France |59|62|02|60|80 = Nord-Pas-de-Calais-Picardie |14|50|61|27|76 = Normandy |24|33|40|47|64|19|23|87|16|17|79|86 = Nouvelle-Aquitaine |11|30|34|48|66|09|12|31|32|46|65|81|82 = Occitanie |44|49|53|72|85 = Pays de la Loire |04|05|06|13|83|84 = Provence-Alpes-Côte d'Azur Markussep Talk 15:38, 11 October 2016 (UTC)
 * Unrelated question, what about Nord-Pas-de-Calais-Picardie? (This isn't a navbox, but I'm wondering if it makes sense to make it a direct link?) — Andy W.  ( talk  · ctb) 16:33, 11 October 2016 (UTC)
 * Made an additional update, believe this was one of the regions left out during the correction — Andy W.  ( talk  · ctb) 17:22, 11 October 2016 (UTC)
 * Yes check.svg Done — Andy W.  ( talk  · ctb) 18:17, 11 October 2016 (UTC)
 * Ah yes, I missed Hauts-de-France, thanks for spotting that! Markussep Talk 08:32, 12 October 2016 (UTC)

Edit request 12 October 2016
Location maps for the new regions are available now. Therefore the subtemplate Infobox French commune/regmap has to be replaced with the version in the Infobox French commune/regmap/sandbox. I also made the maps slightly narrower (from 270 to 264 pixels) so they fit the infobox better. Markussep Talk 12:58, 12 October 2016 (UTC)
 * Yes check.svg Done &mdash; Martin (MSGJ · talk) 20:03, 12 October 2016 (UTC)
 * Thanks! Markussep Talk 08:06, 13 October 2016 (UTC)

Density calculation
I am wondering why the density calculation is so imprecise. Take for instance Embrun, Hautes-Alpes. For a population of 6,123 inhabitants and an area of 36.39 km2 the given density is 170 i/km2, instead of 168 i/km2. How come? Carlotm (talk) 10:54, 29 November 2016 (UTC)
 * infobox settlement uses a precision of 2 digits for the population density. Frietjes (talk) 17:01, 28 December 2016 (UTC)

INSEE link
The French statistics office INSEE completely revised its website, and as a consequence the automatic link in this infobox to the statistical data sheet of the commune (for instance http://www.insee.fr/fr/themes/tableau_local.asp?ref_id=POP&millesime=2010&nivgeo=COM&codgeo=13101) doesn't work anymore. IMO the best alternative is https://www.insee.fr/fr/statistiques/1405599?geo=COM-13101. So the code line


 * | postal_code            =

should become


 * | postal_code            =

I've tested it in the sandbox, and it works for most communes, unfortunately not for Mayotte, New Caledonia, French Polynesia and some other overseas territories (but the current link does not work for them either). Markussep Talk 10:57, 9 March 2017 (UTC)
 * Yes check.svg Done I just copied the one line over; I didn't swap out the whole revised version in the sandbox. It seems to have worked. And we can't help it if they continue to handle their overseas possessions poorly... StevenJ81 (talk) 16:38, 13 March 2017 (UTC)

Warnings of "unknown parameters"
Greetings and felicitations. When editing the Lieudieu article, the following are displayed:

Warning: Page using Template:Infobox French commune with unknown parameter "department" (this message is shown only in preview).

Warning: Page using Template:Infobox French commune with unknown parameter "region" (this message is shown only in preview).

This despite the fact that those fields are displayed in the infobox. Would someone please be so kind as to diagnose and fix the problem(s)? —DocWatson42 (talk) 07:24, 16 May 2017 (UTC)
 * The template documentation says those parameters are deprecated, and the template code works them out for itself by looking at the INSEE code. So these warnings are correct, and the parameters can be removed from the article. -- John of Reading (talk) 07:49, 16 May 2017 (UTC)


 * Thanks! I've made the appropriate edit. —DocWatson42 (talk) 07:52, 16 May 2017 (UTC)

Brittany regmap
Please replace:
 * with

to fix the fact that every Breton place (e.g. Ushant) is apparently located in the center of Brittany per the dropdown map in the infobox. It looks like missed one in this edit. Storkk (talk) 15:59, 6 August 2017 (UTC)


 * Yes check.svg Done — MRD 2014  Talk • Edits 02:05, 7 August 2017 (UTC)

Please implement a population footnotes field for citations
Basically the same as area footnotes. See Paris. So that instead of:


 * Population (2013 )2

We can have:


 * Population (2013)2

Also for area footnotes, could the preceding space be removed? Eg:


 * Area1

to


 * Area1

Thanks,

Rob984 (talk) 13:16, 23 July 2017 (UTC)
 * Rob984, it should work now. Frietjes (talk) 13:59, 7 August 2017 (UTC)

Template edits 2018-03-12

 * I have added department and region to the whitelist of Module:Check for unknown parameters. The two values are automatically derived by INSEE, so their presence is idle. But it appears that they are present in 22.000 articles each, filling up  (was 23,228).
 * I have added demonym as synonym next to parameter population demonym (it now shows). Today demonym is present in 1400 articles, so this is the easy way.
 * I have removed parameter km² (unused; synonym for area_km2). I think it not a good idea to introduce an off-character, while we do not use that anywhere else (we don't create parameter area_km²).
 * I've updated TemplateData, also to improve the monthly report.
 * And this remarkable note: when previewing the live template without the &lt;includeonly> tag (test for typo's and uneven brackets etc.), I saw an error message from the expr: caculator (plus two in the infobox showing). Clewarly no harm in mainspace, but maybe it better be prevented not ignored.
 * -DePiep (talk) 00:34, 12 March 2018 (UTC)

Time zone & UTC DST not working
The template emits erroneous output if parameters time zone DST and utc offset DST are used. I suspect an OR pipe is missing between the 4th and the 5th sets of brackets in the treatment of those parameters. Further, the defaults for utc offset and utc offset DST ought to be "+01:00" and "+02:00" (sans quotes), respectively, not "+1" and "+2". -- Michael Bednarek (talk) 12:51, 25 November 2018 (UTC)
 * Red information icon with gradient background.svg Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. Izno (talk) 14:54, 25 November 2018 (UTC)
 * Michael Bednarek, thank you for finding the typos. should be fixed now. Frietjes (talk) 18:35, 25 November 2018 (UTC)
 * Frietjes, thank you for fixing both. -- Michael Bednarek (talk) 01:43, 26 November 2018 (UTC)

Please disambiguate Marne
Please disambiguate Marne → Marne (department) following its page move, as I have done in the sandbox. Certes (talk) 16:32, 5 January 2019 (UTC)
 * Done. Dekimasu よ! 16:43, 5 January 2019 (UTC)

Template-protected edit request on 11 March 2019
Please replace the current version of the infobox with the current sandbox version. This will add the possibility to use this infobox for settlements that are part of a commune, including former communes. It adds a caption and line showing wich commune it is part of, and hides the INSEE code (but uses the INSEE code, or the department code instead, to get the correct region, department and map). See test case 6 for a demonstration of this new functionality. This edit changes


 * | settlement_type =

into:


 * | settlement_type =

and


 * | postal_code_type = INSEE/Postal code
 * | postal_code =

into:


 * | postal_code_type =


 * postal_code =

and adds:
 * | subdivision_type6      =
 * | subdivision_name6      =

The field "type" can be used to describe the status of the settlement, for instance "commune déléguée". It defaults to "part". Markussep Talk 10:24, 11 March 2019 (UTC)
 * Yes check.svg Done -- / Alex /<sub style="color:#008">21  13:15, 12 March 2019 (UTC)
 * Thanks! Markussep Talk 13:39, 12 March 2019 (UTC)
 * Ah, I see I have to add the fields "commune" and "type" to the list of known parameters for Module:Check for unknown parameters. I did it in the sandbox just now, could you update that too? Markussep Talk 13:46, 12 March 2019 (UTC)
 * Yes check.svg Done -- / Alex /<sub style="color:#008">21  13:58, 12 March 2019 (UTC)
 * Thanks again! Markussep Talk 13:59, 12 March 2019 (UTC)