قالب:International dollars
This template converts a value given in the national currency of a given country to international dollars.
Syntax
{{International dollars | {{{1}}} | {{{2}}} | year = {{{year}}} | round = {{{round}}} }}
- {{{1}}} is the value in the local currency to be converted.
- {{{2}}} is the country name or 3-letter ISO code for the country whose currency is being converted.
- {{{year}}} is the year to use for the international dollar value, e.g. international dollars current in 2009. The default is 2016.
- {{{round}}} is an optional parameter. If it is equal to "yes", then the converted value is displayed to the nearest international dollar.
Examples
- {{International dollars|100|Mexico}} displays 9.89. That is, 100 Mexican pesos had the same purchasing power as 9.89 US dollars in 2016.
- {{International dollars|100|MEX}} also displays 9.89.
- {{International dollars|100|MEX|round=yes}} displays 10.
- {{International dollars|100|MEX|year=2009}} displays قالب:International dollars/data/2009. That is, 100 Mexican pesos had the same purchasing power as قالب:International dollars/data/2009 US dollars in 2009.
- {{International dollars|100|MEX|year=1901}} displays Undefined year "1901" since data from 1901 has not yet been defined.
See also
- Template:Inflation: Calculates a value in a given country in a given year based on an amount of currency in the same country in another year.
- Template:toUSD: Converts a given currency to US dollars using exchange rates last updated (as of December 2012) in 2008.
The above documentation is transcluded from قالب:International dollars/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |