Template:Swiss populations sub/doc

This template displays the total municipal or district populations for two or more municipalities or districts, from Swiss population data. It only supports up to 20 municipalities. This template was created to provide total populations of sub-district level organization. Because there is an easy way to access municipal and district level populations, but no easy way to get sub-district level populations, this template fills that gap.

Usage
The template uses the following syntax

Parameters

 * ISO code is the ISO code for Switzerland followed by a "-" and the ISO code for the Canton e.g.  would be for any municipality in the Canton of Bern.  For a list of the 26 cantons, see List of Swiss Cantons.
 * SFOS number is the Community Identification Number for each municipality. It is found in the individual municipality's infobox.  ex.   is the code for Bern.  Larger political organizations also have a SFOS number, for example   is the number for the Bern-Mittelland administrative district.

Example
For example, a simple population table of the municipalities in the Circolo di Bellinzona which is part of the Bellinzona district in Switzerland, would look like this.

Which would produce this:

While an incorrect SFOS number (for example: using 5016, which is no longer assigned to a municipality) returns

but no warning is generated.