Template:JPY/doc: Difference between revisions
From MiiWiki
Jump to navigationJump to search
(Created page with "==Usage== This template converts Japanese Yen (JPY) into US Dollars (USD). Simply enter <code><nowiki>{{JPY|amount of yen}}</nowiki></code> and it will be converted. This template is useful for estimating how much a Japanese product costs, as exchange rates can change noticeably. ==Notes== *The amount is rounded to the nearest cent. *Cents will not show if the amount rounds to an exact dollar. *If a second parameter is added, the number will be displayed unrounded. **Th...") |
mNo edit summary |
||
Line 7: | Line 7: | ||
*If a second parameter is added, the number will be displayed unrounded. | *If a second parameter is added, the number will be displayed unrounded. | ||
**This is not recommended, as the exchange rate constant is only updated every so often, therefore the template can only stay so accurate. | **This is not recommended, as the exchange rate constant is only updated every so often, therefore the template can only stay so accurate. | ||
*The exchange rate is based on the constant located [[Template:JPY/Constant|here]]. The number is sourced from [https://www.xe.com/currencyconverter/convert/?Amount=1&From=JPY&To=USD Xe.com], and should be updated at least monthly. | *The exchange rate is based on the constant located [[Template:JPY/Constant|here]]. The number is sourced from [https://www.xe.com/currencyconverter/convert/?Amount=1&From=JPY&To=USD Xe.com], and should be updated at least monthly.<noinclude> | ||
[[category:Template documentation]] |
Latest revision as of 17:26, 15 December 2022
Usage
This template converts Japanese Yen (JPY) into US Dollars (USD). Simply enter {{JPY|amount of yen}}
and it will be converted. This template is useful for estimating how much a Japanese product costs, as exchange rates can change noticeably.
Notes
- The amount is rounded to the nearest cent.
- Cents will not show if the amount rounds to an exact dollar.
- If a second parameter is added, the number will be displayed unrounded.
- This is not recommended, as the exchange rate constant is only updated every so often, therefore the template can only stay so accurate.
- The exchange rate is based on the constant located here. The number is sourced from Xe.com, and should be updated at least monthly.