ढाँचा:UN Population

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

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

Data Code and sample use Result
Source {{UN_Population|source}} सन् २०१९ मा विश्व जनसङ्ख्याको अनुमान[१][२]
Year {{UN_Population|Year}} सन् २०१८
Reference {{UN_Population|ref}} [१][२]
Country population The population of Thailand is
{{UN_Population|Thailand}}
Country population The population of Thailand is around
{{#expr:{{formatnum:{{UN_Population|Thailand}}|R}}/1e6 round 0}} million
अभिव्यक्ति त्रुटि: अनपेक्षित / सञ्चालक।
Country population The population of Thailand is around
{{#expr:{{formatnum:{{UN_Population|Thailand}}|R}}/1e6 round 1}} million
अभिव्यक्ति त्रुटि: अनपेक्षित / सञ्चालक।
Country population The population of Thailand is more than
{{#expr:floor({{formatnum:{{UN_Population|Thailand}}|R}}/1e6)}} million
अभिव्यक्ति त्रुटि: अनपेक्षित / सञ्चालक।

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

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

  1. १.० १.१ ""World Population prospects – Population division"", population.un.org, संयुक्त राष्ट्र सङ्घीय आर्थिक तथा सामाजिक मामिला विभाग, जनसङ्ख्या विभाग, अन्तिम पहुँच नोभेम्बर ९, २०१९  उद्दरण त्रुटी: Invalid <ref> tag; name "UN_WPP" defined multiple times with different content
  2. २.० २.१ ""Overall total population" – World Population Prospects: The 2019 Revision" (xslx), population.un.org (custom data acquired via website), संयुक्त राष्ट्र सङ्घीय आर्थिक तथा सामाजिक मामिला विभाग, जनसङ्ख्या विभाग, अन्तिम पहुँच नोभेम्बर ९, २०१९  उद्दरण त्रुटी: Invalid <ref> tag; name "UN_WPP_२०१९" defined multiple times with different content