Cèṭa'an:Population WD
Lua error in Modul:WikidataIB at line 94: attempt to call field 'loadI18n' (a nil value).
Shows the population size of a place, according to Wikidata, together with the year.
{{Population WD}} without argument, shows the population of the current article subject.
{{Population WD|<page title>}} shows the population size of the page title subject stated in the first unnamed parameter (it does not use the Wikidata label). It also works if the article is moved, since it follows the redirection.
The template is intended for population tables of several different places. A purpose of this kind of template is to avoid advanced code in Wikipedia articles, and use a comprehensible property name and article title instead of pid and qid codes. However, the template may also be called with a parameter named qid.
A logged-in user will see a clickable pen next to the value and date. This is helpful in population tables for several different places, to find at which Wikidata page each value can be edited, and where the source and editing history of the value can be found.
Do not replace new values with older Wikidata values.
Usage
beccè'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.
Use of this template in infoboxes is not permitted, because it has |osd=no
(onlysourced=no) hard-coded into the template. Wikidata information used in infoboxes must be reliably sourced, and the code in this template does not check for a source.
Current page
beccè'Example:
{{population WD}}
shows the population of the current article subject.
Articles sharing the same label
beccè'The template does not use the Wikidata label. These two places have the same label Stockholm:
{{population WD|Stockholm}}
gives the population of Stockholm: Lua error in Modul:WikidataIB at line 94: attempt to call field 'loadI18n' (a nil value)..
{{population WD|Stockholm (town), Wisconsin}}
gives the population of Stockholm (town), Wisconsin: Lua error in Modul:WikidataIB at line 94: attempt to call field 'loadI18n' (a nil value)..
Redirections
beccè'The redirection page Stockholm, Sweden also works:
{{population WD|Stockholm, Sweden}}
and gives: Lua error in Modul:WikidataIB at line 94: attempt to call field 'loadI18n' (a nil value)..
Qid code
beccè'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 Stockholm (Q1754): Lua error in Modul:WikidataIB at line 94: attempt to call field 'loadI18n' (a nil value)..
See also
beccè'- List of Brazilian states by population density (Example article)
- {{Area WD}}
- {{Population density WD}}
- {{Get QID}}
- {{Show data}}
- {{Poptoday}}
- {{Poptoday 1}}
- {{UN Population}}