Template:From USD/doc

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

Syntax

 * and are the template positional parameters (this is, the first and the second parameters in the template).
 * is the value in US dollars to be converted.
 * is the country name or 3-letter ISO code for the country whose currency is being converted to.
 * is the year to use for the US dollar value, e.g. US dollars current in 2009. The default is currently 2019.
 * is an optional parameter. If it is equal to "yes", then the converted value is displayed to the nearest integer. The default is rounding to the nearest cent.
 * 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.
 * is an optional parameter. It allows to select the currency for the target country. Currently only supported for the Euro and the currencies that have been immediately replaced by the Euro.

Examples

 * displays . Trivial US dollar conversions work.
 * displays . Defaults to Euro
 * displays . Still defaults to Euro
 * displays . Redundant.
 * displays . That is, 100 US dollars is worth French Francs.
 * also displays . They would exchange to French Francs according to the latest year for which some country has data, but for a Eurozone country the rate is fixed anyway.
 * displays . Decrease the precision.
 * displays . Do not show any decimals.
 * also displays.
 * displays . By default, the converted value has up to 2 decimals.
 * displays . Increase the precision to 5 decimals.
 * displays 0.
 * displays since Taiwanese data for 1960 has not yet been entered.
 * displays since data for 1959 has not been defined.
 * displays since the data for 2021 has not been entered yet.


 * displays
 * displays
 * displays


 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays


 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays


 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays
 * displays

TemplateData
{	"params": { "1": {			"label": "Amount", "description": "value in US dollars to convert to other currency", "example": "22816", "type": "number", "required": true },		"2": {			"aliases": [ "country" ],			"label": "Country code", "description": "ISO 3166-1 alpha-3 country code", "example": "FRA", "type": "line", "required": true },		"year": { "description": "Year to convert currency", "example": "2002", "type": "number", "required": true },		"round": { "label": "Round to nearest integer?", "description": "If 'yes', rounds to nearest whole amount. If omitted, rounds to nearest cent.", "example": "yes", "type": "string" },               "r": { "label": "Resolution", "description": "The number of digits of precision in the result value.", "example": "3", "type": "number" },               "cur": { "label": "Currency code", "description": "It allows to select the currency for the country. Currently only supported for the Euro and the currencies that have been immediately replaced by the Euro.", "example": "FRF, EUR", "type": "line" }	},	"description": "Template to convert US dollars into other currencies, by year" }