Difference between revisions of "Template:INRConvert/HistoricalRate/Formatted"
Jump to navigation
Jump to search
imported>Joshua Issac m (Undid revision 925554929 by Joshua Issac (talk)) |
imported>Joshua Issac (moved closing braces for expr to correct place.) |
||
| Line 14: | Line 14: | ||
-->|{{#expr:{{{1}}}/{{INRConvert/HistoricalRate<!-- amount to convert | -->|{{#expr:{{{1}}}/{{INRConvert/HistoricalRate<!-- amount to convert | ||
-->|{{{2}}}<!-- currency code | -->|{{{2}}}<!-- currency code | ||
| − | -->|{{{3}}}}}<!-- conversion year | + | -->|{{{3}}}}}}}<!-- conversion year |
| − | -->|round={{{4|2 | + | -->|round={{{4|2}}}}}<!-- round to decimal places (default: 2) |
--></includeonly> | --></includeonly> | ||
Latest revision as of 21:51, 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}}