Template:Per capita
Appearance
32,198.01
Calculate per capita value, given a statistic (e.g., GDP), population, country, and year.
Usage
[edit]{{per capita|statistic|population|Country name|year}}
{{per capita|num=statistic|pop=population|country=Country name|year=yyyy|scale=scale}}
Parameters
[edit]There are four required unnamed parameters, and one optional:
|1=
– a number representing a currency-denominated statistic like GDP (without commas), and denominated in local currency. Alias:|num=
.|2=
– population figure (without commas). Alias:|pop=
.|3=
– either the full name of the country, e.g., 'Canada', or the ISO 3166-1 alpha-3 code ('CAN'). Alias:|country=
.|4=
– four-digit year, in the range recognized by Template:To USD (last checked: 1960–2022). Alias:|year=
.|5=
– scale factor of the statistic, expressed as a power of 10; i.e., if param 1 is GDP in millions, then scale =6
. Optional; default =9
(billions). Alias:|scale=
.
Examples
[edit]{{per capita|8.148|202497|CAN|2021}}
→ 32,198.01{{per capita|8.148|202497|Canada|2021}}
→ 32,198.01{{per capita|8.148|202497|Canada|1975}}
→ 39,556.14{{per capita|num=8.148|pop=202497|country=CAN|year=2021}}
→ 32,198.01{{per capita|num=8148|pop=202497|country=CAN|year=2021|scale=6}}
→ 32,190.11 # note slight difference in value due to effects of rounding from a lower scale factor
See also
[edit]- {{To USD}}
- {{To USD round}}
- {{Inflation}}
- {{International dollars}}
{{formatnum:}}
- {{From USD}}
- {{To EUR}}
- {{From EUR}}
- {{FXConvert}}
- {{INRConvert}}
- {{GDP (PPP) per capita}}
Notes
[edit]This template includes conversion of a value given in the national currency of a given country to US dollars. The template uses values published by the IMF,[1] as well as by the World Bank,[2] the European Central Bank,[3] Eurostat,[4] and the Reserve Bank of India.
- ^ "Official exchange rate (LCU per US$, period average)". Retrieved 14 April 2013.
- ^ "The World Bank exchange rate, DEC alternative conversion factor (LCU per US$)". Retrieved 31 December 2019.
- ^ "Reference rates - Exchange rates - ECB Statistical Data Warehouse".
- ^ "Eurostat Database".