Template:International dollars/doc

This template converts a value given in the national currency of a given country to international dollars.

Syntax

 * is the value in the local currency to be converted.
 * is the country name or 3-letter ISO code for the country whose currency is being converted.
 * is the year to use for the international dollar value, e.g. international dollars current in 2009. (The default is 2016.)
 * is an optional parameter. If it is equal to "yes", then the converted value is displayed to the nearest international dollar.
 * is an optional parameter. It sets the digits to which the result must be rounded. A positive value indicates a fractional digit including trailing zeros. Defaults to.

Examples

 * displays . That is, 100 Mexican pesos had the same purchasing power as   US dollars in 2016.
 * also displays.
 * displays.
 * displays . That is, 100 Mexican pesos had the same purchasing power as   US dollars in 2009.
 * displays since data from 1901 has not yet been defined.
 * displays.
 * displays.
 * displays.
 * displays.
 * displays.
 * displays.
 * displays.
 * displays.
 * displays.
 * displays.
 * displays (last year available).
 * displays (last year available).

Data subtemplates
2009 · 2011 · 2012 · 2014 · 2015 · 2016

TemplateData
{	"params": { "1": {			"label": "amount", "description": "value in foreign currency to convert to international dollars", "example": "22816", "type": "number", "required": true },		"2": {			"aliases": [ "country" ],			"label": "country code", "description": "ISO 3166-1 alpha-3 country code", "example": "MEX", "type": "line", "required": true },		"year": { "description": "Year to convert currency", "example": "2002", "type": "number", "required": true },		"round": { "label": "round to nearest dollar?", "description": "If 'yes', rounds to nearest whole dollar amount. If omitted, rounds to nearest international dollars cent.", "example": "yes", "type": "string" },               "r": { "label": "resolution", "description": "The number of digits of precision in the result value.", "example": "3", "type": "number" }	},	"description": "Template to convert other currencies into international dollars, by year." }