پرش به محتوا

الگو:UN Population

از ویکی‌پدیا، دانشنامهٔ آزاد
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

{{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 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.

DataCode and sample useResult
Source{{UN_Population|source}}the 2017 revision of the World Population Prospects[۱]
Year{{UN_Population|Year}}۲۰۱۶
Reference{{UN_Population|ref}}[۱]
Country populationThe population of Thailand is
{{UN_Population|Thailand}}
۶۸٬۸۶۳٬۵۱۴
Country populationThe population of Thailand is around
{{#expr:{{formatnum:{{UN_Population|Thailand}}|R}}/1e6 round 0}} million
69
Country populationThe population of Thailand is around
{{#expr:{{formatnum:{{UN_Population|Thailand}}|R}}/1e6 round 1}} million
68.9
Country populationThe population of Thailand is more than
{{#expr:floor({{formatnum:{{UN_Population|Thailand}}|R}}/1e6)}} million
68

The data is taken from the UN World Population Prospects website, which is updated bi-annually. Current data is 2018 estimate: https://population.un.org/wpp/

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

  1. 1 2 "World Population Prospects: The 2017 Revision". ESA.UN.org (custom data acquired via website). United Nations Department of Economic and Social Affairs, Population Division. Retrieved 10 September 2017.