Template:Inflation/EU: Difference between revisions

From Empire of Dragons
Jump to navigation Jump to search
m (1 revision imported)
No edit summary
 
Line 1: Line 1:
<includeonly>* {{#expr:{{Inflation/EU/dataset|{{{2}}}}}/{{Inflation/EU/dataset|{{{1}}}}}}}</includeonly><noinclude>{{documentation|Template:Inflation/doc/table}}</noinclude>
<includeonly>* {{#expr:{{Inflation/EU/dataset|{{{2}}}}}/{{Inflation/EU/dataset|{{{1}}}}}}}</includeonly><noinclude>{{Inflation/doc/table}}</noinclude>

Latest revision as of 12:53, 3 June 2024

This sub-template either contains a country/region inflation table or calls one located in another sub-template. Its output is used by the {{Inflation}} template and possibly others. It is not meant to be called directly, but if you do, it will produce one or more 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

Usage

{{Inflation/EU|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, is an undefined operation that will result in either an "* 1" or an empty string, depending on how the dataset is constructed. Similarly, providing an year1 lower than the lowest year in the table, and an year2 higher than the highest year in the table, will either also return "* 1", or the whole table. Providing any non-numeric parameter will result in one or more red errors that should be handled with the {{#iferror:}} parser function.

See also