வார்ப்புரு:Infobox Switzerland municipality/doc
{{Documentation subpage}}
 &lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&gt;
 {{Uses Infobox settlement}}
 {{high-use}}
 {{Uses Wikidata|P1082|P771|P2046}} 
 
 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]]
 
 == 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 [http://www.bfs.admin.ch/bfs/portal/de/index/infothek/nomenklaturen/blank/blank/gem_liste/03.html German] or [http://www.bfs.admin.ch/bfs/portal/fr/index/infothek/nomenklaturen/blank/blank/gem_liste/03.html French]. Look for the Excel file called ''Amtliches Gemeindeverzeichnis der Schweiz - MS-Excel Version'' {{in lang|de}} or ''Répertoire officiel des communes de Suisse - Version MS-Excel'' {{in lang|fr}}.
 
 '''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.
 
 &lt;pre style=&quot;font-size:95%; overflow:auto;&quot;&gt;
 {{Infobox Switzerland municipality
 | subject_name         = &lt;!-- English name of the municipality --&gt;
 | municipality_name    = &lt;!-- Official name of the municipality, not displayed but used to select a map *2--&gt;
 | municipality_type    = &lt;!-- use &quot;former&quot; for municipalities that were merged and no longer exist *1 --&gt;
 | imagepath_flag       = &lt;!-- flag of the municipality, &quot;File:&quot; is included automatically. --&gt;
 | imagepath_coa        = &lt;!-- coat of arms of the municipality, &quot;File:&quot; is included automatically. --&gt;
 | pixel_coa            =
 | image_photo          = &lt;!-- a picture of the municipality, &quot;File:&quot; is included automatically. --&gt;
 | image_caption        = &lt;!-- a caption describing the photo --&gt;
 | snow_image           = &lt;!-- a snow-covered photo of the municipality that will replace the main one for the first four months of the year --&gt;
 | snow_imagecaption    = &lt;!-- a caption describing the snowy picture, will be shown along with it in from January to April --&gt;
 | map                  = &lt;!-- if no other map is found automatically, this will link a map at the bottom of the infobox *2 --&gt;
 | canton               = &lt;!-- English name of the canton without &quot;Canton of&quot; --&gt;
 | iso-code-region      = &lt;!-- ISO 3166-2:CH code, e.g. &quot;CH-SG&quot; for St. Gallen --&gt;
 | district             = &lt;!-- Needs to be linked, if the canton is not subdivided in districts just write &quot;n.a.&quot; --&gt;
 | within_municipality  = &lt;!-- For villages and former municipalities, to specify which municipality they're part of --&gt;
 | coordinates          = &lt;!-- Latitude and longitude. Use {{Coord}}. --&gt;
 | postal_code          = &lt;!-- Postal code(s) assigned to the town. --&gt;
 | municipality_code    = &lt;!-- the four-digit SFOS number. Used to retrieve population figures and to link SFOS statistics, plus additional statistics for a number of cantons *3 --&gt;
 | area                 = &lt;!-- 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) --&gt;
 | elevation            = &lt;!-- in m (no commas or other text) --&gt;
 | elevation_description=
 | population            = &lt;!-- 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 &quot;former&quot;. --&gt;
 | populationof          = &lt;!-- Used if the municipality_code is incorrect, no longer valid or municipality_type is &quot;former&quot;.--&gt;
 | popofyear             = 
 | highest              = &lt;!-- Highest point in the municipality --&gt;
 | highest_m            = &lt;!-- in m (no commas or other text) --&gt;
 | lowest               = &lt;!-- Lowest point in the municipality --&gt;
 | lowest_m             = &lt;!-- in m (no commas or other text) --&gt;
 | position             = &lt;!-- &quot;left&quot; moves the label in the locator map to the left. Useful for cities in the east (e.g. Poschiavo) --&gt;
 | website              = &lt;!-- e.g. www.rapperswil-jona.ch – if none is specified the template will link &quot;subject_name.ch&quot;, which usually works --&gt; 
 | mayor                =
 | mayor_asof           =
 | mayor_party          =
 | mayor_title          =
 | list_of_mayors       =
 | places               = &lt;!-- a list of villages and other places within the municipality, particularly useful for municipalities created through mergers --&gt;
 | demonym              =
 | neighboring_municipalities =
 }}&lt;/pre&gt;
 
 *&lt;nowiki&gt;*&lt;/nowiki&gt;1: When the parameter value is &quot;former&quot;, population and website information are not shown. 
 *&lt;nowiki&gt;*&lt;/nowiki&gt;2: if available, a map corresponding to &quot;Karte Gemeinde 'subject_name' 20XX.png&quot;, where XX is a year between 07 and 12, will be added automatically.
 *&lt;nowiki&gt;*&lt;/nowiki&gt;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 [http://www.bfs.admin.ch/bfs/portal/de/index/themen/02/03/blank/key/01/zustand_und_entwicklung__tabelle.html Arealstatistik Standard - Kantonsdaten nach 4 Hauptbereichen (Area statistics)] for updates
 :[[Template:SFOS2Municipality]] check [http://www.bfs.admin.ch/bfs/portal/de/index/infothek/nomenklaturen/blank/blank/gem_liste/03.html Amtliches Gemeindeverzeichnis (Community Directory)] for changes to SFOS numbers and mergers.
 :[[:Category:Swiss populations data templates|Category:Swiss populations data templates]] check [http://www.pxweb.bfs.admin.ch/Database/German_01%20-%20Bev%C3%B6lkerung/01.2%20-%20Bev%C3%B6lkerungsstand%20und%20-bewegung/01.2%20-%20Bev%C3%B6lkerungsstand%20und%20-bewegung.asp?lang=1&amp;prod=01&amp;secprod=2&amp;openChild=true 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.
 
 {| class=&quot;wikitable plainrowheaders&quot;
 ! [[Template:Infobox Switzerland municipality|Field en:]] !! [[:de:Vorlage:Infobox Ort in der Schweiz|Field de:]] !! [[:fr:Modèle:Infobox Commune de Suisse|Field fr:]]
 |-
 !scope=&quot;row&quot;| subject_name=
 | NAME_ORT= or BILDPFAD_WAPPEN= || nomcommune= or drapeaucommune=
 |-
 !scope=&quot;row&quot;| (municipality_name=)
 | NAME_ORT= || nomcommune=
 |-
 !scope=&quot;row&quot;| (imagepath_flag=)
 | BILDPFAD_Flagge= || drapeaucommune=
 |-
 !scope=&quot;row&quot;| (imagepath_coa=)
 | BILDPFAD_WAPPEN= || blasoncommune=
 |-
 !scope=&quot;row&quot;| (municipality_type=)
 | GEMEINDEART= ||
 |-
 !scope=&quot;row&quot;| canton=
 | KANTON= || canton= or (lien_canton=&amp;#124;affichage_canton=)
 |-
 !scope=&quot;row&quot;| district= (with [[]])
 | BEZIRK= (with [[]]) || district= or (lien_district=&amp;#124;affichage_district=)
 |-
 !scope=&quot;row&quot;| coordinates=
 | BREITENGRAD=&amp;#124;LÄNGENGRAD= || longitude=&amp;#124;latitude=
 |-
 !scope=&quot;row&quot;| postal_code=
 | PLZ= || cp=
 |-
 !scope=&quot;row&quot;| municipal_code=
 | BFS= || no_OFS=
 |-
 !scope=&quot;row&quot;| population=
 | EINWOHNER= || habitants=
 |-
 !scope=&quot;row&quot;| populationof=
 | STAND_EINWOHNER= ||
 |-
 !scope=&quot;row&quot;| (populationdensity=)
 | || densité=
 |-
 !scope=&quot;row&quot;| area=
 | FLÄCHE= || superficie=
 |-
 !scope=&quot;row&quot;| (area_magnitude=)
 | ||
 |-
 !scope=&quot;row&quot;| altitude=
 | HÖHE= || altitude=
 |-
 !scope=&quot;row&quot;| mayor= (with [[]])
 | || syndic/maire=
 |-
 !scope=&quot;row&quot;| website=
 | WEBSITE= || siteweb=
 |-
 !scope=&quot;row&quot;| (map= (with [[]]))
 | BILDPFAD_KARTE= || carte=
 |-
 !scope=&quot;row&quot;| places=
 | || localité=
 |-
 !scope=&quot;row&quot;| neighboring_municipalities=
 | || communeslimitrophes=
 |-
 !scope=&quot;row&quot;| (language=)
 | || langue=
 |-
 !scope=&quot;row&quot;| 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====
 {| class=&quot;wikitable&quot;
 !scope=&quot;col&quot; colspan=&quot;3&quot; | From
 !scope=&quot;col&quot; colspan=&quot;2&quot; | To
 |-
 !scope=&quot;col&quot;| language
 !scope=&quot;col&quot;| field
 !scope=&quot;col&quot;| content
 !scope=&quot;col&quot;| field
 !scope=&quot;col&quot;| content
 |-
 !scope=&quot;row&quot;| de
 | BILDPFAD_WAPPEN= || || imagepath_coa= ||
 |-
 !scope=&quot;row&quot;| de
 | STAND_EINWOHNER= || Dezember 2006 || populationof= || December 2006
 |}
 
 == Microformat ==
 {{UF-hcard-geo}}
 
 == TemplateData ==
 {{template data header}}
 
 == Tracking categories ==
 Hidden tracking/maintenance category implemented in main and supporting templates:
 * {{clc|Pages using infobox Switzerland municipality with an unusual mayor asof}}
 * {{clc|Pages using infobox Switzerland municipality without website}}
 * {{clc|Pages using infobox Switzerland municipality without default 2015 map}}
 * {{clc|Pages using infobox Switzerland municipality without default 2017 map}}
 * {{clc|Pages using infobox Switzerland municipality with unknown parameters}}
 * {{clc|Pages using infobox Switzerland municipality with lat NS or long EW}}
 
 == See also ==
 * [[Wikipedia:Uploading metadata to Wikidata]]
 ; Supporting template
 * [[Template:Infobox Switzerland municipality/map]]
 ; Other languages
 * [[:de:Vorlage:Infobox Ort in der Schweiz]] (see [[:de:Wikipedia:WikiProjekt Schweiz#Gemeinden der Schweiz|WikiProjekt Schweiz#Gemeinden der Schweiz]] and [[:de:Wikipedia:Formatvorlage Ort Schweiz|Formatvorlage Ort Schweiz]])
 * [[:fr:Modèle:Infobox Commune de Suisse]]
 
 &lt;includeonly&gt;{{Sandbox other||
 &lt;!-- Categories below this line, please; interwikis at Wikidata --&gt;
 [[Category:Templates with coordinates fields|{{PAGENAME}}]]
 [[Category:WikiProject Switzerland|*{{PAGENAME}}]]
 [[Category:Switzerland place infobox templates|{{PAGENAME}}]]
 [[Category:Templates that add a tracking category]]