Template:GDP (PPP) per capita/doc: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
(clean up) |
||
Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
This template returns the value of the [[GDP (PPP) per capita]] in the year provided (2012 if no year is provided) given in current [[Geary–Khamis dollar | international dollars]]. | This template returns the value of the [[GDP (PPP) per capita]] in the year provided (2012 if no year is provided) given in current [[Geary–Khamis dollar|international dollars]]. | ||
===Syntax=== | ===Syntax=== | ||
<nowiki>{{GDP (PPP) per capita | {{{1}}} | year = {{{year}}} | round = {{{round}}} }}</nowiki | <nowiki>{{GDP (PPP) per capita | {{{1}}} | year = {{{year}}} | round = {{{round}}} }}</nowiki> | ||
*<nowiki>{{{1}}}</nowiki> is the country name or [[ISO 3166-1 alpha-3 | 3-letter ISO code]] for the country whose GDP (PPP) per capita is to be returned. | *<nowiki>{{{1}}}</nowiki> is the country name or [[ISO 3166-1 alpha-3|3-letter ISO code]] for the country whose GDP (PPP) per capita is to be returned. | ||
*<nowiki>{{{year}}}</nowiki> is an optional parameter. If it is not provided, data for 2012 is returned. | *<nowiki>{{{year}}}</nowiki> is an optional parameter. If it is not provided, data for 2012 is returned. | ||
*<nowiki>{{{round}}}</nowiki> is an optional parameter. If it is equal to "yes", then the converted value is displayed to the nearest international dollar. | *<nowiki>{{{round}}}</nowiki> is an optional parameter. If it is equal to "yes", then the converted value is displayed to the nearest international dollar. |
Latest revision as of 22:31, 28 October 2013
This is a documentation subpage for Template:GDP (PPP) per capita. It contains usage information, categories and other content that is not part of the original template page. |
This template returns the value of the GDP (PPP) per capita in the year provided (2012 if no year is provided) given in current international dollars.
Syntax
{{GDP (PPP) per capita | {{{1}}} | year = {{{year}}} | round = {{{round}}} }}
- {{{1}}} is the country name or 3-letter ISO code for the country whose GDP (PPP) per capita is to be returned.
- {{{year}}} is an optional parameter. If it is not provided, data for 2012 is returned.
- {{{round}}} is an optional parameter. If it is equal to "yes", then the converted value is displayed to the nearest international dollar.
Examples
- {{GDP (PPP) per capita|Zimbabwe}} displays 558.582, the GDP (PPP) per capita of Zimbabwe in 2012.
- {{GDP (PPP) per capita|Zimbabwe|round=yes}} displays 559.
- {{GDP (PPP) per capita|Zimbabwe|year=2011}} displays 514.821, the GDP (PPP) per capita of Zimbabwe in 2011.
- {{GDP (PPP) per capita|Zimbabwe|year=1901}} displays Undefined year "1901" since data for the year 1901 has not been defined.