Template:Populationof/doc

Template populationof is used in destination articles to output text stating the population of that location, using data extracted from Wikidata. Using this template, rather than simple text, provides an easier method of identifying pages with population statements with the intention of keeping numbers more up to date.

Basic usage
With no input, the template will automatically find the Wikidata item for the article, retrieve the population, and output a suitable sentence along with a Wikidata link icon.

For example, placing the template on page Metro Cebu without any parameters will give:

This template does not include a sentence-ending period, so it should be followed by a period to make a complete sentence, or an optional comma and the rest of the sentence.

Advanced usage
If set, pop will output "population of" and the pop number given. You can also set year to include the year of the census or text to use custom text. (If both are provided, text will be used and year will be ignored.)

If set, qwd will use data from the Wikidata item qwd, rather than the article's linked Wikidata item.