Difference between revisions of "Template:INRConvert/HistoricalRate/Formatted"
Jump to navigation
Jump to search
imported>Joshua Issac (Use Template:INRConvert/Currency and Template:INRConvert/Wordify instead of Template:Currency.) |
imported>Joshua Issac m (missing braces.) |
||
| Line 15: | Line 15: | ||
-->|{{{2}}}<!-- currency code | -->|{{{2}}}<!-- currency code | ||
-->|{{{3}}}}}<!-- conversion year | -->|{{{3}}}}}<!-- conversion year | ||
| − | -->|round={{{4|2}}}}}<!-- round to decimal places (default: 2) | + | -->|round={{{4|2}}}}}}}<!-- round to decimal places (default: 2) |
--></includeonly> | --></includeonly> | ||
Revision as of 21:30, 10 November 2019
Given a rupee amount, a target currency and a conversion year, this subtemplate will output the converted amount in the target currency using the exchange rate in the given year. This uses {{INRConvert/HistoricalRate}}. If the target currency or conversion year are not supplied, they may be defaulted by the aforementioned template.
- Parameters
- Rupee amount in INR, e.g. 100 (not ₹100)
- Target currency ISO code, e.g. USD (not US$ or dollar)
- Conversion year, e.g. 2018 (not 2018-05-03)
- Number of decimal places to round to, e.g. 2 to round to 2 decimal places, or -2 to round to the nearest 100; default is 2
- Example
{{INRConvert/HistoricalRate/Formatted|100|USD|2018}}