Template:Infobox Swiss town/doc

This is the infobox for articles about specific municipalities of Switzerland. There are more than 2700 articles using it.

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 Swiss town/testcases
 * Template:Infobox Swiss town/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 German or French. Look for the Excel file called "Amtliches Gemeindeverzeichnis der Schweiz - MS-Excel Version" or "Répertoire officiel des communes de Suisse - Version MS-Excel".

NOTE: area is now added automatically thanks to the Swiss area data template. 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.




 * * 1: Used to add the categories Category:Villages in Switzerland, Category:Former municipalities of Switzerland and if the field contains 'former' or Category:Municipalities of Switzerland and  in any other case
 * * 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:Swiss 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.

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:.

Tracking categories
Hidden tracking/aintenance category implemented in main and supporting templates: