Template:Swiss populations

From HandWiki
Revision as of 12:02, 23 February 2018 by imported>Primefac (Changed protection level for "Template:Swiss populations": high-risk template with 2000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation[view] [edit] [history] [purge]

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 Template:Swiss populations data CH-BE

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 Template:Swiss populations data CH-BE

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

See also