الگو:Swiss populations Y
This template displays only the year from Swiss population data, to allow correct formatting in the Swiss town infobox.
Usage
ویرایشThe template uses the following syntax
{{Swiss populations date|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 List of Swiss Cantons. - 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.
Examples
ویرایشThe three different date templates are shown
1) {{Swiss populations Y|CH-BE|0301}} 2) {{Swiss populations date|CH-BE|0301}} 3) {{Swiss populations YM|CH-BE|0301}}
returns
- 1) 2009
- 2) 31 December 2009
- 3) December 2009
See also
ویرایش- Template:Swiss populations provides the actual population number
- Template:Swiss populations ref provides the reference for the population
- Template:Swiss populations date provides the date that the population was recorded
- Template:Swiss populations YM returns only the year and month