Changes

Jump to navigation Jump to search

Template:Inflation

289 bytes added, 1 April
no edit summary
{{#ifexpr:((2018 >= {{{3}}}) and (2018 < {{{4|{{CURRENTYEAR}}}}}))|* 1.0181221007526015 }}
{{#ifexpr:((2019 >= {{{3}}}) and (2019 < {{{4|{{CURRENTYEAR}}}}}))|* 1.0123358439630637 }}
{{#ifexpr:((2020 >= {{{3}}}) and (2020 < {{{4|{{CURRENTYEAR}}}}}))|* 1.06 0469785886363742 }}{{#ifexpr:((2021 >= {{{3}}}) and (2021 < {{{4|{{CURRENTYEAR}}}}}))|* 1.0800279982052121 }}{{#ifexpr:((2022 >= {{{3}}}) and (2022 < {{{4|{{CURRENTYEAR}}}}}))|* 1.041 }}
}} <!-- End inflation tables -->
) round {{{r|0}}}}}|[[NaN]]}}|[[NaN]]}} in {{CURRENTYEAR}} money">${{{2}}}</abbr></includeonly><noinclude>
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 [https://data.worldbank.org/indicator/fp.cpi.totl.zg the World Bank], and can only go as far back as 1959. The output is rounded to the nearest dollar.

Navigation menu