Template:Exchange rate USD/doc
This is a documentation subpage for Template:Exchange rate USD. It contains usage information, categories and other content that is not part of the original template page. |
This template shows exchange rates for the U.S. dollar. It should only be used in main articles for countries, overseas territories and dependencies that use the U.S. dollar as their national currency. It should be placed in the "Buy" section of the article.
Template parameters
editTo use this template, invoke it with the following arguments:
- currencies (Optional)
- The currency codes to display. If not specified then this parameter defaults to "GBP,AUD,CAD".
Example
editTo use this template with the default currency conversions:
{{exchange rate US}}
...which produces:
Exchange rates for U.S. dollars
As of January 2024:
Exchange rates fluctuate. Current rates for these and other currencies are available from XE.com |
To use this template with custom currency conversions:
{{exchange rate US|currencies=GBP,CAD,JPY,AUD}}
...which produces:
Exchange rates for U.S. dollars
As of January 2024:
Exchange rates fluctuate. Current rates for these and other currencies are available from XE.com |
Notes for template use
edit- The link to XE.com provides current exchange rates to make it easier to update the rates shown in the template - be sure to change the "as of" date too.
- To avoid clutter, only major currencies should be used.
- Exchange rates for other currencies than may be relevant to individual countries that use the U.S. dollar can be added to the text of the "Buy" section of the article.
See also
edit- {{exchange rates}} – Useful for displaying non-U.S. dollar currency conversions.