Difference between revisions of "Template:Inflation"

From Emulation General Wiki
Jump to navigation Jump to search
m (added category and clarified)
m
Line 59: Line 59:
 
{{#ifexpr:((2015 >= {{{3}}}) and (2015 < {{{4|{{CURRENTYEAR}}}}}))|* 1.0126158320570537 }}
 
{{#ifexpr:((2015 >= {{{3}}}) and (2015 < {{{4|{{CURRENTYEAR}}}}}))|* 1.0126158320570537 }}
 
{{#ifexpr:((2016 >= {{{3}}}) and (2016 < {{{4|{{CURRENTYEAR}}}}}))|* 1.0213011000365963 }}
 
{{#ifexpr:((2016 >= {{{3}}}) and (2016 < {{{4|{{CURRENTYEAR}}}}}))|* 1.0213011000365963 }}
{{#ifexpr:((2017 >= {{{3}}}) and (2017 < {{{4|{{CURRENTYEAR}}}}}))|* 1.0244 }}
+
{{#ifexpr:((2017 >= {{{3}}}) and (2017 < {{{4|{{CURRENTYEAR}}}}}))|* 1.0244258329692818 }}
 
{{#ifexpr:((2018 >= {{{3}}}) and (2018 < {{{4|{{CURRENTYEAR}}}}}))|* 1.0186 }}
 
{{#ifexpr:((2018 >= {{{3}}}) and (2018 < {{{4|{{CURRENTYEAR}}}}}))|* 1.0186 }}
 
}} <!-- End inflation tables -->
 
}} <!-- End inflation tables -->

Revision as of 05:45, 29 September 2019

Displays a product's price as well as a server-side computation of an inflation-adjusted version in United States Dollars. The data is taken from the World Bank, and can only go as far back as 1959. The output is rounded to the nearest dollar.

Use: {{Inflation|Currency|Value|Year}}

Example: $199 in 1991 {{Inflation|USD|199|1991}} = $199