Difference between revisions of "Template:Infobox French place"
imported>TerraCyprus m (TerraCyprus moved page Template:Infobox French subdivision to Template:Infobox French place: use "place" as is done by Australian place (since 2006) and UK place (since 2007)) |
imported>Markussep (population_footnotes) |
||
| Line 184: | Line 184: | ||
| population_total = {{{pop|{{{population<includeonly>|</includeonly>}}}}}} | | population_total = {{{pop|{{{population<includeonly>|</includeonly>}}}}}} | ||
| population_as_of = {{{year|{{{datepop|{{{population_as_of<includeonly>|</includeonly>}}}}}}}}} | | population_as_of = {{{year|{{{datepop|{{{population_as_of<includeonly>|</includeonly>}}}}}}}}} | ||
| + | | population_footnotes = {{{population_footnotes<includeonly>|</includeonly>}}} | ||
| population_density_km2 = {{formatnum: {{round|{{#expr: {{formatnum:{{{pop|{{{population<includeonly>|</includeonly>}}}}}}|R}}/{{formatnum:{{{area<includeonly>|</includeonly><noinclude>|100</noinclude>}}}|R}}round 0 }}|0}} }} | | population_density_km2 = {{formatnum: {{round|{{#expr: {{formatnum:{{{pop|{{{population<includeonly>|</includeonly>}}}}}}|R}}/{{formatnum:{{{area<includeonly>|</includeonly><noinclude>|100</noinclude>}}}|R}}round 0 }}|0}} }} | ||
| blank_name_sec2 = {{<includeonly>safesubst:</includeonly>#switch: {{{type<includeonly>|</includeonly>}}} | | blank_name_sec2 = {{<includeonly>safesubst:</includeonly>#switch: {{{type<includeonly>|</includeonly>}}} | ||
| Line 198: | Line 199: | ||
-->{{<includeonly>safesubst:</includeonly>#ifeq: {{<includeonly>safesubst:</includeonly>#expr: {{<includeonly>safesubst:</includeonly>#expr: {{{pop|{{{population|0}}} }}} round 0 }} = {{{pop|{{{population|0}}} }}} }} | 0 | {{ns0|[[Category:Pages using infobox French subdivision with unknown parameters|P]]}} | }}<!-- Assign to maintenance category if decimal point is used in population as a thousands divider | -->{{<includeonly>safesubst:</includeonly>#ifeq: {{<includeonly>safesubst:</includeonly>#expr: {{<includeonly>safesubst:</includeonly>#expr: {{{pop|{{{population|0}}} }}} round 0 }} = {{{pop|{{{population|0}}} }}} }} | 0 | {{ns0|[[Category:Pages using infobox French subdivision with unknown parameters|P]]}} | }}<!-- Assign to maintenance category if decimal point is used in population as a thousands divider | ||
-->{{<includeonly>safesubst:</includeonly>#ifeq: {{<includeonly>safesubst:</includeonly>str find|{{{pop|{{{population|1234}}}}}}| }} | -1 | | {{ns0|[[Category:Pages using infobox French subdivision with unknown parameters|P]]}} }}<!-- Assign to maintenance category if space is used in population as a thousands divider | -->{{<includeonly>safesubst:</includeonly>#ifeq: {{<includeonly>safesubst:</includeonly>str find|{{{pop|{{{population|1234}}}}}}| }} | -1 | | {{ns0|[[Category:Pages using infobox French subdivision with unknown parameters|P]]}} }}<!-- Assign to maintenance category if space is used in population as a thousands divider | ||
| − | -->{{<includeonly>safesubst:</includeonly>#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox French subdivision with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox French subdivision]] with unknown parameter "_VALUE_"|ignoreblank=y| area | capital | cg | creation | datepop | department | disbanded | established_date | footnotes | image | image_caption | image_flag | image_map | image_shield | image_skyline | INSEE | logo | map_caption | name | nbcomm | party | pop | population | population_as_of | prefecture | president | region | seat | term | type | website | year | + | -->{{<includeonly>safesubst:</includeonly>#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox French subdivision with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox French subdivision]] with unknown parameter "_VALUE_"|ignoreblank=y| area | capital | cg | creation | datepop | department | disbanded | established_date | footnotes | image | image_caption | image_flag | image_map | image_shield | image_skyline | INSEE | logo | map_caption | name | nbcomm | party | pop | population | population_as_of | population_footnotes | prefecture | president | region | seat | term | type | website | year |
}}<noinclude>{{documentation}}</noinclude> | }}<noinclude>{{documentation}}</noinclude> | ||
Revision as of 12:18, 23 September 2020
[[Category:Template:Pagetype with short description]]
Script error: No such module "If empty". | |
|---|---|
| [[File:{{{image_skyline}}}|270x320px|{{{image_caption}}}]] {{{image_caption}}} | |
[[File:{{{image_flag}}}|100px|border|Flag of {{{name}}}]] Flag [[File:{{{image_shield}}}|100px|Coat of arms of {{{name}}}]] Coat of arms | |
| [[File:{{{image_map}}}|270x320px|{{{map_caption}}}]] {{{map_caption}}} | |
| Country | France |
| Region | {{{region}}} |
| Department | {{{department}}} |
| No. of communes | {{{nbcomm}}} |
| Seat | {{{seat}}} |
| Area | |
| • Total | 100 km2 (Template:Round sq mi) |
| Population ({{{population_as_of}}}){{{population_footnotes}}} | |
| • Total | {{{population}}} |
| Script error: No such module "If empty". | |
| Script error: No such module "If empty". | |
| Website | {{{website}}} |
[[Category:Infobox templates|Template:Remove first word]]Template:Ns0Template:Ns0
Template:Uses Infobox settlement
| This template uses Lua: |
Usage
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
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
- "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
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See the monthly parameter usage report for this template.
TemplateData for Infobox French place Infobox for French arrondissements
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The above documentation is transcluded from Template:Infobox French place/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |