Template:Population WD
本模板可以根據維基數據顯示一個地方的人口規模以及年份。
Usage[编辑]
The template shows the Wikidata population value of highest rank (typically the most recent reliable value) or, if several values have highest rank, the most recently entered value.
Current page[编辑]
Example:
{{population WD}}
shows the population of the current article subject.
Articles sharing the same label[编辑]
The template does not use the Wikidata label. These two places have the same label 斯德哥尔摩:
{{population WD|斯德哥尔摩}}
gives the population of 斯德哥尔摩: 984,748 (2022年、評估) .
{{population WD|麦迪逊_(威斯康星州市)}}
gives the population of 麦迪逊_(威斯康星州市): 269,840 (人口普查、2020年、2020年美國人口普查) .
Redirections[编辑]
The redirection page 斯德哥爾摩 also works:
{{population WD|斯德哥爾摩}}
and gives: 984,748 (2022年、評估) .
Qid code[编辑]
A last option is to use the qid code of a place, which however makes the wikicode less comprehensible, but is useful if the place has no Wikipedia article:
{{population WD|qid=q1754}}
results in the population of 斯德哥尔摩 (q1754): 984,748 (2022年、評估) .
參見[编辑]
- List of Brazilian states by population density (Example article)
- {{Area WD}}
- {{Population density WD}}
- {{Get QID}}
- {{Show data}}
- {{Poptoday}}
- {{Poptoday 1}}
- {{UN Population}}
上述文档嵌入自Template:Population WD/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |