Template:Swiss populations/doc

From MOASSpedia
< Template:Swiss populations
Revision as of 21:46, 26 April 2020 by Wikipedia>Vanisaac (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template displays the municipal or district population from Swiss population data.

Usage

The template uses the following syntax

{{Swiss populations|ISO code|SFOS number}}

Parameters

Example

{{Swiss populations|CH-BE|0301}}

returns 4,626

which is the population in Aarberg.



While an incorrect SFOS number (for example: Oberönz formerly a municipality, now a village in Herzogenbuchsee)

{{Swiss populations|CH-BE|0984}}   

returns Incorrect Municipal Code 1 0,984

and logs the failure to Category:Template:Swiss populations data/Failure

See also