Template:Infobox French commune/doc

This infobox is meant for communes (the lowest level of administrative division) in France. This is an empty infobox with all available fields. The contents of the parameter fields, and which are optional, are explained below. This infobox now also supports settlements that are part of a commune, for instance former communes that were merged into a commune nouvelle. See the parameter commune for a manual.

Usage
Delete any unneeded fields when using the full template syntax.



Parameters
Note that the field name is case-sensitive; it should be lower case (apart from INSEE). Some lesser used fields are not discussed (yet) in this overview.

Delete any unneeded fields when using the full template syntax.

Required parameters

 * coordinates
 * arrondissement
 * canton
 * population
 * INSEE

name
English name of location. If this field is not specified, the article name is used.

native name
French name of location. Use only if French name is different from English name (e.g. Dunkirk–Dunkerque). Sometimes used for regional languages, such as Breton and Catalan.

commune status
If you want a sub-banner to appear. Defaults to empty. Can be anything—for example, Paris can use it to describe its status as both a commune and department.

total type
If this is left empty, area and population totals will appear on the same line as the respective title. If you indicate something different (for example, 'commune'), that title will appear as a sub-title for both area and population sections.

image
A representative picture of the location: skyline, notable landmark, etc. The image used should preferably be wider than it is tall, to keep the infobox as compact as possible. The plain image file name should be given, e.g. Vieux port de Marseille 2.jpg.

caption
The caption for this picture (optional).

image flag, image coat of arms, etc.
The official flag and coat of arms of the commune. See the infoboxes of Paris and Marseille for examples.

city motto
The official city motto (probably only applicable for the largest cities).

map, adjustable map
Avoid, except for overseas departments and territories. For locations in metropolitan (=European) France, an automatic map is generated if the coordinates are given in coordinates (see below). For locations in the overseas departments and territories (e.g. French Guiana, New Caledonia, Réunion), this automatic map will give strange results. In these cases, manual location maps ("map", "adjustable map").


 * "map": Specify only the file name of the map image, e.g. "Cayenne.PNG".
 * "adjustable map": Specify the file name of the map image, e.g. "adjustable map=Cayenne.PNG", and the width in the field "map size", e.g. "map size=200px".

coordinates
Required. Geographical coordinates of location. Give location in decimals. Northern hemisphere and eastern hemisphere have positive numbers. The coordinates are used for map calculation. If the coordinates are not available in French or Dutch ("Nederlands") Wikipedia, you can look them up at the website of Lion1906 (you can search by entering the INSEE number or the name of the commune in "Recherche rapide", results under "Informations géographiques", use the numbers labeled "Degrés". Average elevation and area are also given).

INSEE
The INSEE (French national statistics institute) code of the commune. The region and the department to which the location belongs are retrieved using this code and a subtemplate. The INSEE code is also used to provide a link to the census results for the commune. For settlements that are part of a commune, use any number that starts with the department number, for instance the INSEE code of the commune, the former commune, or just the department number (e.g. 77 for a place in Seine-et-Marne). It does not show, but it is used to display the correct region, department and detailed map.

region and department
DEPRECATED: The region and the department to which the location belongs are retrieved using the (required!) INSEE code. The fields "region" and "department" are no longer used.

province
For New Caledonia.

administrative subdivision
For French Polynesia.

arrondissement
Required. The arrondissement to which the location belongs. No wikilinks required. Some overseas locations are not part of an arrondissement. The largest cities (e.g. Paris, Lyon, Marseille) are subdivided into arrondissements themselves. In those cases, use the "subdivisions" field instead.

canton
Required. The canton to which the location belongs. No wikilinks required. Some overseas locations are not part of a canton. Some locations, usually the larger cities, are subdivided into cantons themselves. In those cases, use the "subdivisions" field instead.

intercommunality
Many communes cooperate in an intercommunality.

commune, type
For settlements that are part of a commune. "commune" is the commune the settlement is part of, "type" is the type of settlement, for instance commune déléguée or commune associée. Default type is part.

subdivisions
Some locations, usually the larger cities, are subdivided into arrondissements or cantons. In those cases, fill in something like "subdivisions=9 arrondissements". A link to an article about these subdivisions can also go here.

mayor
The mayor of the commune. The governing period of the mayor (currently 2020–2026) should be given in the field "term". Optionally, the political affiliation of the mayor can be given in the field "party".

area km2
The area of the commune in square kilometres. Don't use a comma for decimal separator, but use a point (12.34 instead of 12,34): commas give bad results in the population density calculation. The template will also calculate the area in square miles.

population
The population of the commune. Don't use thousands separators like points or spaces (e.g. 5.678 or 34 567): they give bad results in the population density calculation. The census year should be given in the field "population date". You can add references and footnotes in the field "population footnotes" (not in "population"). Note: Adding references to commune, urban and metro population numbers 'breaks' the settlement template population density calculations for each respective area. For existing communes (i.e. not former communes) the template France metadata Wikidata should be used, which retrieves the most recent population data from Wikidata. For example: |population            =
 * population date       =
 * population footnotes  =

population_demonym
The adjective describing the people and places of the region. Use the English demonym by default (e.g.,, not "Parisien").

If the French demonym is included, specify the respective languages in full or via language code. Use the correct capitalization common to each respective language. For example: or. Use non-breaking spaces (&amp;nbsp;) or nowrap to prevent unhelpful text-wrapping in these lines. Do not include the feminine form as a separate demonym, but do include it as an alternative style of the French demonym if possible:.

Do not include other languages' demonyms unless they are notable (e.g., Breton names only for Breton places).

time zone
Only use this parameter for places in French Polynesia. For other places the time zone is derived from the INSEE code.

postal code
The postal code(s) of the commune.

elevation min m, elevation max m, elevation m
The minimum, maximum, and average elevation of the commune above sea level in metres. The metres will be converted to feet, and both are displayed.

website
The official website of the commune. Please follow the guidelines at WP:LINKS.

Example: Paris



 * Footnotes

TemplateData
{	"params": { "name": { "required": false, "label": "Name", "type": "string", "description": "English name of location", "default": "Article Name" },		"native name": { "required": false, "label": "Native Name", "type": "string", "description": "Native name of the location" },		"commune status": { "required": false, "label": "Commune Status", "type": "string", "description": "Fill to show sub-banner: eg. Type of settlement (City, Commune, Municipality) " },		"total type": { "required": false, "label": "Total Type", "type": "string", "description": "Fill to show Area/Population totals next to 'total type' value below Area/Population in each section line (normally on same line)" },		"image flag": { "required": false, "label": "Image Flag", "type": "wiki-page-name", "description": "Image of the flag of commune" },		"image flag size": { "required": false, "label": "Image flag size", "type": "line", "description": "Size of image of the flag of commune" },		"city motto": { "required": false, "label": "City Motto", "type": "string", "description": "Motto of the city" },		"image": { "required": false, "label": "Image", "type": "wiki-file-name", "description": "Image of the place or any notable landmark" },		"caption": { "required": false, "label": "Caption", "type": "string", "description": "Caption for the image" },		"map": { "required": false, "label": "Map", "type": "wiki-page-name", "description": "For overseas locations, provide an image for the map" },		"timezone": { "required": false, "label": "Timezone", "type": "string", "description": "Timezone of the commune" },		"coordinates": { "required": true, "label": "Coordinates", "type": "string", "description": "Coordinates of the location using °N, °W" },		"arrondissement": { "required": true, "label": "Arrondissement", "type": "string", "description": "The Arrondissement to which the location belongs" },		"intercommunality": { "required": true, "label": "Intercommunality", "type": "string", "description": "Intercommunality of the commune" },		"mayor": { "required": false, "label": "Mayor", "type": "string", "description": "Mayor of the commune" },		"term": { "required": false, "label": "Term", "type": "line", "description": "The governing period of the mayor. Do not add references here, you can add these in the \"mayor\" parameter." },		"elevation m": { "required": false, "label": "Elevation(meters)", "type": "number", "description": "Average elevation of commune above sea level in meters" },		"elevation min m": { "required": false, "label": "Minimum Elevation(meters)", "type": "number", "description": "Minimum elevation of the commune in meters" },		"elevation max m": { "required": false, "label": "Maximum Elevation(meters)", "type": "number", "description": "Maximum elevation of the commune in meters" },		"area km2": { "required": false, "label": "Area (square km)", "type": "number", "description": "Area of the commune in square kilometers" },		"population": { "required": true, "label": "Population", "type": "number", "description": "Population of the commune. For existing communes (i.e. not former communes) the template France metadata Wikidata should be used, which retrieves the most recent population data from Wikidata" },		"population date": { "required": false, "label": "Population Date", "type": "line", "description": "Date (year) on which population was counted" },		"INSEE": { "required": true, "label": "INSEE", "type": "number", "description": "INSEE code for the commune", "aliases": [ "insee" ]		},		"postal code": { "required": false, "label": "Postal code", "type": "number", "description": "Postal Code of the commune" },		"website": { "required": false, "label": "Website", "type": "string", "description": "Official website of the commune" },		"canton": { "label": "Canton", "type": "string" },		"image size": {}, "flag link": { "aliases": [ "flag_link" ]		},		"image coat of arms": { "description": "Image of coat of arms of commune." },		"image coat of arms size": { "description": "Size of image of coat of arms of commune " },		"shield_link": {}, "adjustable map": {}, "map size": {}, "map caption": {}, "province": { "description": "Used for places in New Caledonia", "type": "string" },		"subdivisions entry": {}, "subdivisions": {}, "party": {}, "area footnotes": {}, "urban pop": { "description": "Population of the (inner) urban area (unité urbaine). To be added to the central commune only" },		"urban pop date": {}, "urban area date": {}, "urban area km2": {}, "metro area pop": { "description": "Population of the wider urban area (aire urbaine). To be added to the central commune only" },		"metro area pop date": {}, "metro area date": {}, "metro area km2": {}, "population footnotes": {}, "population ranking": {}, "population demonym": { "aliases": [ "demonym", "population_demonym" ],			"type": "string" },		"demonym": {}, "ethnic": {}, "ethnic date": {}, "time zone": { "aliases": [ "timezone" ],			"description": "Name of the time zone", "deprecated": "Time zones are derived from the INSEE code" },		"utc offset": { "aliases": [ "utc_offset" ],			"description": "Only for French Polynesia, for other places the time zone is derived from the INSEE code" },		"time zone DST": { "aliases": [ "time_zone_DST", "timezone_DST" ],			"type": "string", "deprecated": "Time zones are derived from the INSEE code" },		"utc offset DST": { "aliases": [ "utc_offset_DST" ],			"deprecated": "Time zones are derived from the INSEE code" },		"dialling code": {}, "elevation footnotes": {}, "footnotes": {}, "map dot label": {}, "common name": {}, "department": { "label": "Department", "type": "string", "deprecated": "Unused, remove. Department is derived from INSEE" },		"commune": { "description": "Used for places that are part of a commune", "type": "string" },		"type": { "description": "Used for places that are part of a commune.", "type": "string", "default": "Part" },		"region": { "deprecated": "The region and the department to which the location belongs are retrieved using the (required!) INSEE code." },		"administrative subdivision": { "description": "Used for places in French Polynesia" }	} }