Template:Category definition: French commune

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]

Generates the standard description for a category defined for a French commune, or for categories of French communes by department or overseas, and categorises it appropriately.

The template automatically sets the following categories: Category:Populated places in France by department or Category:Communes in France by department and other categories by region depending on each department

Usage

{{Category definition: French commune |1= |2= |3= |lat= |long= }}

Template parameters

ParameterDescriptionDefaultStatus
1* for categories of communes by department like Category:Communes in Hauts-de-Seine, write "communes" (no capitalization); emptyoptional
2INSEE code (from COG) of the department. This code matches ISO 3166-2 except for the following cases since 2015 (still not covered by ISO 3166-2 and INSEE for France):
  • for the new departmental collectivity of Rhône (no longer a department), use "69" (the same as its current ISO 3166-2 and INSEE code "69").
  • for the new department of Rhône, use "69D" (like INSEE, no code in ISO 3166-2)
  • for the new Métropole de Lyon, use "69M" (like INSEE, no code in ISO 3166-2)
  • In departments in Corsica (use "2A" or "2B" like in ISO 3166-2 and INSEE COG), this code is also different from the postal code ("20" in both departments).

    For overseas, the 3-digit INSEE code or the 2-letter code from ISO 3166-1 are supported equivalently (their postal codes are sometimes different but also ambiguous to distinguish some of them).
    emptyoptional
    3number of communes in the department (only used for categories of communes by department)emptyoptional
    latlatitude (positive in the Northern hemisphere, WGS84 coordinates in degrees) of some central location in the commune (only used for categories for specific communes: if it's missing, the commune category will be listed in Category:Communes in France, coordinates missing)emptyoptional
    longlongitude (positive in the Eastern hemisphere, WGS84 coordinates in degrees) of some central location in the commune (only used for categories for specific communes: if it's missing, the commune category will be listed in Category:Communes in France, coordinates missing)emptyoptional

    Additional information

    The template is intended to be used in the following namespaces: the Category namespace

    The template is intended to be used by the following user groups: no user group specified

    Placement: At the top of the page

    Relies on:

    • Template:ISO 3166-2/FR/details for data about the current composition in departments by region, for the effective encoded statuses of (metropolitan or overseas) departments, regions and related collectivities, and for data encoding specific French grammatical rules (usage of French definite articles before translated toponyms).
      Note that the composition of newer regions starting in 2016 is not included (and not displayed by this template): some categories by department still need to be categorized in these newer regions after using the current template (in 2016 this will be the reverse, if we want to keep a link from departments to their former regions; this details template for now does not contain data for the newer regions).
    • Template:City for translating toponyms for all locations (communes, departments, regions) and defining a link to the appropriate Wikipedia article in that language.
      Note this it is now protected: to provide translations and links for other locations, you need to create templates whose name match the toponym name (see Category:Multilingual tags: Locations), suffixed if needed for disambiguation (please use the same unambiguous name for such templates as the category created for that location).

    Localization

    To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)