Template:Switzerland area
Usage
This template uses the Swiss area data template and can convert the values into km² or km² (sq mi) as well as indicate the year of the survey and create a reference. The format is
{{Swiss area|SFOS number|units=|year=|ref=}}
where units can be either
- km=yes
- mi=yes
If year=yes then it displays (based on the 2004/2009 survey) before the value. Year= can be omitted or left blank to display no text regarding the survey
To add an automatic reference:
Code | Type |
---|---|
ref=m | Municipality |
ref=d | District |
ref=c | Canton |
Examples
Entry | Output | Notes |
---|---|---|
{{Swiss area|1}} | 791 | This is the number of Hectacres in Aeugst am Albis |
{{Swiss area|1|km=yes}} | 7.91 | This is the number of Square Kilometers in Aeugst am Albis |
{{Swiss area|1|mi=yes}} | 7.91 km2(3.05 sq mi) | This is the number of Square Kilometers and Square Miles in Aeugst am Albis |
{{Swiss area|1|mi=yes|year=yes}} | (based on the 2004/09/16 survey) of 7.91 km2(3.05 sq mi) | Includes date of the survey |
{{Swiss area|1|mi=yes|ref=m}} | 7.91 km2(3.05 sq mi)[1] | Includes a reference for the area |
{{Swiss area|1|mi=yes|year=yes|ref=m}} | (based on the 2004/09/16 survey) of 7.91 km2(3.05 sq mi)[1] | Includes both date and reference |
{{Swiss area|1|mi=yes|year=fdjk}} | (based on the 2004/09/16 survey) of 7.91 km2(3.05 sq mi) | Includes date of the survey even with gibberish in year |
{{Swiss area|9999|mi=yes|year=yes}} | Incorrect Municipal Code 9999 | Error due to non-existent SFOS code |
{{Swiss area|BE|mi=yes}} | 5,959.59 km2(2,301.01 sq mi) | Area of the Canton of Bern |
{{Swiss area|B1001|mi=yes}} | 173.79 km2(67.10 sq mi) | Area of the Broye District |
- ^ 1.0 1.1 Arealstatistik Standard - Gemeindedaten nach 4 Hauptbereichen. bfs.admin.ch. Swiss Federal Statistical Office. [2018-02-14]. (原始内容存档于2023-03-25) (德语).
上述文档嵌入自Template:Switzerland area/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |