Jump to content

Template:UN population/doc

From Wikipedia, the free encyclopedia

{{UN population}} allows for the population of any country area or region to be updated from a single location. To use it on an article, enter the template {{UN_Population|Countryname}} for the population (use the UN WPP country or region name, which you can find in the template by opening it for editing).

You can also enter the year, the source, and cite the reference (see table). This will work in both the infobox and prose.

Data Code and sample use Result
Source {{UN_Population|source}} the 2022 revision of the World Population Prospects[1][2]
Year {{UN_Population|year}} 2021
Reference {{UN_Population|ref}} [1][2]
Country population The population of Thailand is
{{UN_Population|Thailand}}
71,601,103
Country population The population of Thailand is around
{{#expr:{{formatnum:{{UN_Population|Thailand}}|R}}/1e6 round 0}} million
72
Country population The population of Thailand is around
{{#expr:{{formatnum:{{UN_Population|Thailand}}|R}}/1e6 round 1}} million
71.6
Country population The population of Thailand is more than
{{#expr:floor({{formatnum:{{UN_Population|Thailand}}|R}}/1e6)}} million
71

The data is taken from the UN World Population Prospects (WPP) website, which is updated bi-annually. Current data is 2021 estimate.

When updating the figures, also update the year (at the top).

See also

[edit]

References

[edit]
  1. ^ a b "World Population Prospects 2022". United Nations Department of Economic and Social Affairs, Population Division. Retrieved July 17, 2022.
  2. ^ a b "World Population Prospects 2022: Demographic indicators by region, subregion and country, annually for 1950-2100" (XSLX) ("Total Population, as of 1 July (thousands)"). United Nations Department of Economic and Social Affairs, Population Division. Retrieved July 17, 2022.