قالب:جدول مدينة سويسرية
| This template is used on many pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page قبل تنفيذهم. |
population (P1082) (see uses)
NO LABEL (P771) (see uses)
area (P2046) (see uses)
This is the infobox for articles about specific municipalities of Switzerland.
For a sample use, see Aarau.
Tests for updates
Before updating the infobox, please try the updates first on the test version at
- Template:Infobox Switzerland municipality/testcases
- Template:Infobox Switzerland municipality/testcases2
Usage
{{{subject_name}}}
{{{native_name}}} {{{other_name}}} | |
|---|---|
| [[File:{{{image_photo}}}|250px|{{{image_caption}}}]] {{{image_caption}}} | |
|
[[File:{{{imagepath_flag}}}|100x100px|border|علم {{{subject_name}}}]] Flag [[File:{{{imagepath_coa}}}|100x100px|درع {{{subject_name}}}]] Coat of arms | |
| خطأ لوا في وحدة:Location_map على السطر 612: Unable to find the specified location map definition: "Module:Location map/data/Canton of &" does not exist. | |
| Coordinates: {{{coordinates}}} | |
| البلد | سويسرا |
| الكانتون | [[كانتون {{{canton}}}|{{{canton}}}]] |
| المقاطعة | {{{district}}} |
| البلدية | {{{within_municipality}}} |
| Government | |
| • العمدة | {{{mayor_title}}}[[{{{list_of_mayors}}}| (list)]] {{{mayor}}} {{{mayor_party}}} (as of {{{mayor_asof}}}) |
| Area | |
• Total | {{{area}}} كم² (Formatting error: invalid input when rounding ميل²) |
| Elevation ({{{elevation_description}}}) | {{{elevation}}} m (Formatting error: invalid input when rounding ft) |
| Highest elevation ({{{highest}}}) | {{{highest_m}}} m (Formatting error: invalid input when rounding ft) |
| Lowest elevation ({{{lowest}}}) | {{{lowest_m}}} m (Formatting error: invalid input when rounding ft) |
| Population ({{{populationof}}}) | |
• Total | {{{population}}} |
| Demonym | {{{demonym}}} |
| Time zone | UTC+01:00 (CET) |
| • Summer (DST) | UTC+02:00 (CEST) |
| Postal code | {{{postal_code}}} |
| SFOS number | {{{municipality_code}}} |
| ISO 3166 code | {{{iso-code-region}}} |
| Localities | {{{places}}} |
| Surrounded by | {{{neighboring_municipalities}}} |
| Website | {{{website}}} |
Blank template
NOTE: population figures, year and month of the population estimate and a population reference are now added automatically thanks to the templates from Category:Swiss populations data templates. For former municipalities (villages); use either the population from before the merger, N/A or leave the population field blank. The current list of recognized municipalities can be found at the Swiss Federal Statistical Office in either German or French. Look for the Excel file called Amtliches Gemeindeverzeichnis der Schweiz - MS-Excel Version (in ألمانية) or Répertoire officiel des communes de Suisse - Version MS-Excel (in فرنسية).
NOTE: area is added automatically from Template:Switzerland area data. The area field is still retained in the template as a backup in case the template returns an error. Editing the area will have no effect unless the SFOS number is incorrect or the municipality_type is set to former.
{{Infobox Switzerland municipality
| subject_name = <!-- English name of the municipality -->
| native_name = <!-- Settlement name in local language(s), if different from the English name -->
| native_name_lang = <!-- ISO 639-1 code e.g. "fr" for French -->
| other_name =
| municipality_type = <!-- use "former" for municipalities that were merged and no longer exist *1 -->
| imagepath_flag = <!-- flag of the municipality, "File:" is included automatically. -->
| imagepath_coa = <!-- coat of arms of the municipality, "File:" is included automatically. -->
| image_photo = <!-- A picture of the municipality, "File:" is included automatically. -->
| image_caption = <!-- A caption describing the photo -->
| coordinates = <!-- Latitude and longitude. Use {{Coord}}. -->
| position = <!-- "left" moves the label in the locator map to the left. Useful for cities in the east (e.g. Poschiavo) -->
| canton = <!-- English name of the canton without "Canton of" -->
| district = <!-- Needs to be linked; if the canton is not subdivided in districts just write "n.a." -->
| within_municipality = <!-- For villages and former municipalities, to specify which municipality they're part of -->
| mayor =
| mayor_asof =
| mayor_party =
| mayor_title =
| list_of_mayors =
| area = <!-- Used if the municipality_code is incorrect, no longer valid or municipality_type is former. Area, in km2. XXX.XX (no commas or other text) -->
| elevation = <!-- In m (no commas or other text) -->
| elevation_description =
| highest = <!-- Highest point in the municipality -->
| highest_m = <!-- In m (no commas or other text) -->
| lowest = <!-- Lowest point in the municipality -->
| lowest_m = <!-- In m (no commas or other text) -->
| population = <!-- This parameter must be here to create the POPULATION field in the infobox. However, it is only used if the municipality_code is incorrect, no longer valid or municipality_type is "former". -->
| populationof = <!-- Used if the municipality_code is incorrect, no longer valid or municipality_type is "former".-->
| demonym =
| postal_code = <!-- Postal code(s) assigned to the town. -->
| municipality_code = <!-- The four-digit SFOS number. Used to retrieve population figures and to link SFOS statistics, plus additional statistics for a number of cantons *3 -->
| iso-code-region = <!-- ISO 3166-2:CH code, e.g. "CH-SG" for St. Gallen -->
| places = <!-- a list of villages and other places within the municipality, particularly useful for municipalities created through mergers -->
| neighboring_municipalities =
| website = <!-- e.g. www.rapperswil-jona.ch – if none is specified the template will link "subject_name.ch", which usually works -->
}}
- *1: When the parameter value is "former", population and website information are not shown.
- *2: if available, a map corresponding to "Karte Gemeinde 'subject_name' 20XX.png", where XX is a year between 07 and 12, will be added automatically.
- *3: additional statistics are available for municipalities in Canton of Lucerne, Canton of Neuchatel, Ticino, Vaud.
Errors
Any articles with errors caused by incorrect information in the infobox will appear in Category:Swiss populations data templates/Failure.
Yearly updates
This template draws data from several sources. These data include the SFOS numbers, population and area. Some of these values will change on a yearly basis.
- Template:Switzerland area data check Arealstatistik Standard - Kantonsdaten nach 4 Hauptbereichen (Area statistics) for updates
- Template:SFOS2Municipality check Amtliches Gemeindeverzeichnis (Community Directory) for changes to SFOS numbers and mergers.
- Category:Swiss populations data templates check Swiss Federal Statistical Office - STAT-TAB online database and update for each canton.
Fields
Many infoboxes have been converted from the German or the French language Wikipedia. The following table lists fields that are (or used to be) equivalent.
| Field en: | Field de: | Field fr: |
|---|---|---|
| subject_name= | NAME_ORT= or BILDPFAD_WAPPEN= | nomcommune= or drapeaucommune= |
| (imagepath_flag=) | BILDPFAD_Flagge= | drapeaucommune= |
| (imagepath_coa=) | BILDPFAD_WAPPEN= | blasoncommune= |
| (municipality_type=) | GEMEINDEART= | |
| canton= | KANTON= | canton= or (lien_canton=|affichage_canton=) |
| district= (with [[]]) | BEZIRK= (with [[]]) | district= or (lien_district=|affichage_district=) |
| coordinates= | BREITENGRAD=|LÄNGENGRAD= | longitude=|latitude= |
| postal_code= | PLZ= | cp= |
| municipal_code= | BFS= | no_OFS= |
| population= | EINWOHNER= | habitants= |
| populationof= | STAND_EINWOHNER= | |
| (populationdensity=) | densité= | |
| area= | FLÄCHE= | superficie= |
| (area_magnitude=) | ||
| altitude= | HÖHE= | altitude= |
| mayor= (with [[]]) | syndic/maire= | |
| website= | WEBSITE= | siteweb= |
| places= | localité= | |
| neighboring_municipalities= | communeslimitrophes= | |
| (language=) | langue= | |
| demonym= | nom/gentilé= |
Fields with names listed in parentheses are not currently displayed in this template and might never be, but they are assigned a name to facilitate conversion from fr: and de:.
Conversions
| From | To | |||
|---|---|---|---|---|
| language | field | content | field | content |
| de | BILDPFAD_WAPPEN= | imagepath_coa= | ||
| de | STAND_EINWOHNER= | Dezember 2006 | populationof= | December 2006 |
Microformat
The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
hCard uses HTML classes including:
- "adr"
- "county-name"
- "fn"
- "label"
- "locality"
- "nickname"
- "note"
- "org"
- "region"
- "street-address"
- "vcard"
Geo is produced by calling {{coord}}, and uses HTML classes:
- "geo"
- "latitude"
- "longitude"
Please do not rename or remove these classes.
When giving coordinates, please don't be overly precise.
TemplateData
See the monthly error report for this template.
TemplateData for جدول مدينة سويسرية
Tracking categories
Hidden tracking/maintenance category implemented in main and supporting templates:
- Category:Pages using infobox Switzerland municipality with an unusual mayor asof (16) (explanation needed)
- Category:Pages using infobox Switzerland municipality without website (1)
- Category:Pages using infobox Switzerland municipality with unknown parameters (25)
- Category:Pages using infobox Switzerland municipality with conflicting parameters (0)
See also
- Other languages
- de:Vorlage:Infobox Ort in der Schweiz (see WikiProjekt Schweiz#Gemeinden der Schweiz and Formatvorlage Ort Schweiz)
- fr:Modèle:Infobox Commune de Suisse
لا وصف.
| وسيط | وصف | نوع | حالة | |
|---|---|---|---|---|
| Subject name | subject_name | English name of the municipality. | غير معروف | اختياري |
| Municipality type | municipality_type | Use "former" for municipalities that were merged and no longer exist | غير معروف | اختياري |
| Image | image_photo | Photo of the location. | غير معروف | اختياري |
| Image caption | image_caption | Caption for the image used. Should describe its relevance to the page. | غير معروف | اختياري |
| Image size | imagesize | Specified size of the image, in pixels. Upright is preferred to pixel specification for accessibility reasons. | غير معروف | اختياري |
| Flag image | imagepath_flag | Flag of the municipality, "File:" is included automatically. | غير معروف | اختياري |
| Coat of arms | imagepath_coa | Coat of arms of the municipality, "File:" is included automatically. | غير معروف | اختياري |
| coordinates | coordinates | Latitude and longitude. Use {{Coord}} | غير معروف | اختياري |
| Canton | canton | English name of the canton, without "Canton of". | غير معروف | اختياري |
| Label position | position | "Left" moves the label in the locator map to the left. Useful for cities in the east (e.g. Poschiavo) | غير معروف | اختياري |
| ISO Code | iso-code-region | ISO 3166-2:CH code
| غير معروف | اختياري |
| municipality_code | municipality_code | دون وصف | غير معروف | اختياري |
| Population count | population | دون وصف | غير معروف | اختياري |
| coordinates_footnotes | coordinates_footnotes | دون وصف | غير معروف | اختياري |
| district | district | دون وصف | غير معروف | اختياري |
| Within municipality | within_municipality | For villages and former municipalities, to specify which municipality they're part of. | غير معروف | اختياري |
| executive_name | executive_name | دون وصف | غير معروف | اختياري |
| executive_number_of_members | executive_number_of_members | دون وصف | غير معروف | اختياري |
| executive_members_list | executive_members_list | دون وصف | غير معروف | اختياري |
| mayor_title | mayor_title | دون وصف | غير معروف | اختياري |
| list_of_mayors | list_of_mayors | دون وصف | غير معروف | اختياري |
| mayor | mayor | دون وصف | غير معروف | اختياري |
| mayor_party | mayor_party | دون وصف | غير معروف | اختياري |
| mayor_asof | mayor_asof | دون وصف | غير معروف | اختياري |
| parliament_name | parliament_name | دون وصف | غير معروف | اختياري |
| parliament_number_of_members | parliament_number_of_members | دون وصف | غير معروف | اختياري |
| parliament_since | parliament_since | دون وصف | غير معروف | اختياري |
| parliament_presidents_list | parliament_presidents_list | دون وصف | غير معروف | اختياري |
| Area | area | Used if the municipality_code is incorrect, no longer valid or municipality_type is former. Area, in km2. XXX.XX (no commas or other text) | غير معروف | اختياري |
| Area source | area_source | Source for the area. | غير معروف | اختياري |
| elevation | elevation | دون وصف | غير معروف | اختياري |
| altitude | altitude | دون وصف | غير معروف | اختياري |
| elevation_description | elevation_description | دون وصف | غير معروف | اختياري |
| altitude_description | altitude_description | دون وصف | غير معروف | اختياري |
| Highest point | highest | Highest point in the place | غير معروف | اختياري |
| High point (metres) | highest_m | Highest point in metres (no commas or other text) | غير معروف | اختياري |
| Lowest point | lowest | Lowest point in the place | غير معروف | اختياري |
| Lowest point (metres) | lowest_m | Lowest point in metres (no commas or other text) | غير معروف | اختياري |
| populationof | populationof | دون وصف | غير معروف | اختياري |
| demonym | demonym | دون وصف | غير معروف | اختياري |
| demonyms | demonyms | دون وصف | غير معروف | اختياري |
| postal_code | postal_code | دون وصف | غير معروف | اختياري |
| places | places | دون وصف | غير معروف | اختياري |
| neighboring_municipalities | neighboring_municipalities | دون وصف | غير معروف | اختياري |
| Twin towns | twintowns | Any other places that have a twin or sister town agreement with it. | غير معروف | اختياري |
| Website | website | If the location has an official website. | غير معروف | اختياري |
| popofyear | popofyear | دون وصف | غير معروف | اختياري |
| The above documentation is transcluded from قالب:جدول مدينة سويسرية/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |