الگو:Swiss populations
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[ویرایش]
- ISO code is the سازمان بینالمللی استانداردسازی code for Switzerland followed by a "-" and the ISO code for the کانتونهای سوئیس eg.
CH-BE
would be for any municipality in the کانتون برن. For a list of the 26 cantons, see کانتونهای سوئیس. - SFOS number is the Community Identification Number for each municipality. It is found in the individual municipality's infobox. ex.
0351
is the code for برن (شهر). Larger political organizations also have a SFOS number, for exampleB0246
is the number for the Bern-Mittelland administrative district.
Example[ویرایش]
{{Swiss populations|CH-BE|0301}}
returns ۴٬۰۱۵
which is the population in آربرگ.
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 ۱ ۰٬۹۸۴
and logs the failure to رده:الگو:دادههای جمعیت سوئیس/عدم موفقیت
See also[ویرایش]
- الگو:Swiss populations ref provides the reference for the population
- الگو:Swiss populations date provides the date that the population was recorded
- الگو:Swiss populations YM returns only the year and month
- الگو:Swiss populations Y returns only the year
- الگو:Swiss populations NC provides the population without any formatting, for use in headers
- Template:Swiss populations sub provides a sub-total population for sub-districts