(Go: >> BACK << -|- >> HOME <<)

Jump to content

Template:Population WD/doc

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Tomastvivlaren (talk | contribs) at 18:07, 26 February 2022 (→‎Usage). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Shows the population size of a place, according to Wikidata. If no argument is provided, it will show the population size of the current article subject, otherwize of the article title stated in the first unnamed parameter. It also works if the article is moved, by following the redirection.

A purpose of this template is to avoid advanced code in Wikipedia articles, and use a comprehensible property name and article title instead of pid and qid codes. It may for example be used in tables that shows the population of many different places.

Usage

Example:

{{population WD}}

shows the population of the current article subject.

These two places have the same Wikidata label Stockholm:

{{population WD|Stockholm}}

gives the population of Stockholm: 984,748 (evaluation, 2022) Edit this on Wikidata

{{population WD|Stockholm (town), Wisconsin}}

gives the population of Stockholm (town), Wisconsin: 218 (census, 2020 United States Census, 2020) Edit this on Wikidata

The redirection Stockholm, Sweden also works:

{{population WD|Stockholm, Sweden}}

gives: 984,748 (evaluation, 2022) Edit this on Wikidata