Template:Infobox French subdivision/doc: Difference between revisions
→Usage: parameters region, department and INSEE |
mNo edit summary |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 7: | Line 7: | ||
== Usage == |
== Usage == |
||
This is a dedicated infobox for administrative divisions of France above the commune level. For communes and former communes please use {{tl|Infobox French commune}}. |
This is a dedicated infobox for administrative divisions of France above the commune level. For communes and former communes please use {{tl|Infobox French commune}}. |
||
⚫ | |||
==Selected parameters== |
|||
⚫ | The parameters "region" and "department" are only needed for subdivisions that lie in more than one department (for instance [[Aix-Marseille-Provence Metropolis]]). For arrondissements and cantons, use the parameter "INSEE" (codes can be found at the [https://www.insee.fr/fr/recherche/recherche-geographique?debut=0 INSEE website]). For [[commune in France#Intercommunality|intercommunalities]] do not use the INSEE code, but fill in the department number (for instance "29" for Finistère) in the "INSEE" field. |
||
The parameter '''"type"''' is the type of subdivision. Currently, the following types are supported: |
|||
⚫ | |||
*"CU" for [[communauté urbaine]] |
|||
*"CA" for [[Agglomeration communities in France|communauté d'agglomération]] |
|||
*"CC" for [[communauté de communes]] |
|||
*"arr" for [[Arrondissements of France|arrondissement]] |
|||
*"arrmun" for [[Municipal arrondissements of France|municipal arrondissement]] |
|||
*"canton" for [[Cantons of France|canton]] |
|||
⚫ | The parameters '''"region"''' and '''"department"''' are only needed for subdivisions that lie in more than one department (for instance [[Aix-Marseille-Provence Metropolis]]). For arrondissements and cantons, use the parameter '''"INSEE"''' (codes can be found at the [https://www.insee.fr/fr/recherche/recherche-geographique?debut=0 INSEE website]). For [[commune in France#Intercommunality|intercommunalities]] do not use the INSEE code, but fill in the department number (for instance "29" for Finistère) in the "INSEE" field. |
||
==TemplateData== |
==TemplateData== |
||
Line 16: | Line 26: | ||
{{TemplateData header|noheader=1}} |
{{TemplateData header|noheader=1}} |
||
<templatedata>{ |
<templatedata>{ |
||
"description": "Infobox for French |
"description": "Infobox for French subdivisions", |
||
"params": { |
"params": { |
||
"disbanded": { |
"disbanded": { |
||
Line 39: | Line 49: | ||
}, |
}, |
||
"area": { |
"area": { |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
"type": "number" |
"type": "number" |
||
}, |
}, |
||
Line 49: | Line 56: | ||
}, |
}, |
||
"image_map": { |
"image_map": { |
||
"aliases": [ |
|||
⚫ | |||
⚫ | |||
"description": "Map image, showing the location within the department or region", |
"description": "Map image, showing the location within the department or region", |
||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
"INSEE": { |
"INSEE": { |
||
"description": "INSEE code of the subdivision, or of the department the subdivision is in", |
"description": "INSEE code of the subdivision (arrondissements and cantons), or of the department the subdivision is in", |
||
"type": "number" |
"type": "number" |
||
}, |
}, |
||
Line 68: | Line 72: | ||
"population_as_of": { |
"population_as_of": { |
||
"aliases": [ |
"aliases": [ |
||
"datepop" |
"datepop", |
||
⚫ | |||
], |
], |
||
"description": "Year of the population number", |
"description": "Year of the population number", |
||
Line 97: | Line 102: | ||
"creation" |
"creation" |
||
] |
] |
||
⚫ | |||
"image_skyline": { |
|||
⚫ | |||
⚫ | |||
⚫ | |||
}, |
|||
"image_caption": { |
|||
"description": "Caption for the image_skyline" |
|||
}, |
|||
"image_shield": {}, |
|||
"image_flag": {}, |
|||
"logo": {}, |
|||
"president": {}, |
|||
"term": { |
|||
"description": "Term of the leader or representative(s)" |
|||
}, |
|||
"website": {}, |
|||
"footnotes": {}, |
|||
"cg": { |
|||
"description": "Conseillers généraux = representatives of a canton in the departmental council" |
|||
}, |
|||
"prefecture": { |
|||
"description": "For arrondissements only. If the seat of the arrondissement is the prefecture of the department, fill in \"y\", otherwise leave empty or omit this parameter" |
|||
}, |
|||
"commune": { |
|||
"label": "commune", |
|||
"description": "Used for arrondissements of the cities of Paris, Marseille and Lyon" |
|||
}, |
|||
"coordinates": {}, |
|||
"population_footnotes": { |
|||
"description": "Use {{France metadata Wikidata|population_footnotes}} for city arrondissements of Paris, Marseille and Lyon. Use {{France metadata Wikidata|population_footnotes2}} for arrondissements and cantons." |
|||
} |
} |
||
}, |
}, |
||
Line 114: | Line 150: | ||
"party", |
"party", |
||
"INSEE", |
"INSEE", |
||
"established_date" |
"established_date", |
||
"image_skyline", |
|||
"image_caption", |
|||
"image_shield", |
|||
"image_flag", |
|||
"logo", |
|||
"president", |
|||
"term", |
|||
"website", |
|||
"footnotes", |
|||
"cg", |
|||
"prefecture", |
|||
"commune", |
|||
"coordinates", |
|||
"population_footnotes" |
|||
] |
] |
||
} |
} |
Latest revision as of 10:51, 21 November 2022
This is a documentation subpage for Template:Infobox French subdivision. It may contain usage information, categories and other content that is not part of the original template page. |
This template is a customized wrapper for {{Infobox settlement}} and as such included in Category:Templates calling Infobox settlement. Any field from {{Infobox settlement}} can work so long as it is added to this template first. It will also emit the same hCard and Geo microformats as {{Infobox settlement}} . Questions? Just ask here or over at Template talk:Infobox settlement. |
This template uses Lua: |
Usage
[edit]This is a dedicated infobox for administrative divisions of France above the commune level. For communes and former communes please use {{Infobox French commune}}.
Selected parameters
[edit]The parameter "type" is the type of subdivision. Currently, the following types are supported:
- "metro" for métropole
- "CU" for communauté urbaine
- "CA" for communauté d'agglomération
- "CC" for communauté de communes
- "arr" for arrondissement
- "arrmun" for municipal arrondissement
- "canton" for canton
The parameters "region" and "department" are only needed for subdivisions that lie in more than one department (for instance Aix-Marseille-Provence Metropolis). For arrondissements and cantons, use the parameter "INSEE" (codes can be found at the INSEE website). For intercommunalities do not use the INSEE code, but fill in the department number (for instance "29" for Finistère) in the "INSEE" field.
TemplateData
[edit]TemplateData documentation used by VisualEditor and other tools
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
See a monthly parameter usage report for Template:Infobox French subdivision in articles based on its TemplateData.
TemplateData for Infobox French subdivision Infobox for French subdivisions
|