Difference between revisions of "Template:Inflation"

From Emulation General Wiki
Jump to navigation Jump to search
m
m
(Tag: Undo)
Line 64: Line 64:
 
{{#ifexpr:((2020 >= {{{3}}}) and (2020 < {{{4|{{CURRENTYEAR}}}}}))|* 1.06 }}
 
{{#ifexpr:((2020 >= {{{3}}}) and (2020 < {{{4|{{CURRENTYEAR}}}}}))|* 1.06 }}
 
}} <!-- End inflation tables -->
 
}} <!-- End inflation tables -->
 
+
)  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.
 
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.
  

Revision as of 04:02, 14 February 2024

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}} = = 1959) and (1991 <= 2024) and (2024 <= 2024))|{{#expr:(199

  • 1.030288196781497
  • 1.0295165696638554
  • 1.0260744159215460
  • 1.0280541968853655
  • 1.029312041999344
  • 1.0233768993730741
  • 1.0155227909874362
  • 1.0218802719697358
  • 1.0337685727149935
  • 1.0282617111885402
  • 1.0158603162650603
  • 1.0227009497336113
  • 1.0267723669309173
  • 1.0339274684549547
  • 1.0322594410070407
  • 1.0285267248150136
  • 1.0383910029665101
  • 0.9964445373370025
  • 1.0164004344238989
  • 1.0315684156862206
  • 1.0206933726526059
  • 1.0146483265562714
  • 1.0162222297740821
  • 1.0011862713555243
  • 1.0126158320570537
  • 1.0213011000365963
  • 1.0244258329692818
  • 1.0181221007526015
  • 1.0123358439630637
  • 1.06

) money">$199