Template:Inflation/doc/table
From Wikipedia, the free encyclopedia
This sub-template contains a country/region inflation table used in the {{Inflation}} template and possibly others. It's not meant to be called directly, but if you do, it'll produce a block of lines containing each a number preceded by an asterisk (the multiply character) for use in {{#expr:}} and related parser functions:
* 1.020 * 0.999 * 1.002
[edit] Usage
{{Inflation/doc/table|year1|year2}}
Where year1 and year2 determine the range of "multiply by n" lines that will be returned.
Failing to provide one or both parameters, providing an year2 lower than year1, or providing an year1 and an year2 that are both lower than the lowest or higher than the highest year in the table, will all result in an empty string. Providing an year1 lower than the lowest year in the table, and an year2 higher than the highest year in the table, will return the whole table. Providing any non-numeric parameter will result in a list of red errors that should be handled with the {{#iferror:}} parser function.
[edit] See also
- {{Inflation}}

