Template talk:Inflation

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

GDP deflator for other countries[edit]

So what do we do for capital expenses that aren't US/UK? Just can't use the template? It seems like converting cost from back then -> USD -> inflate with US-GDP -> convert back to target currency is going to introduce a lot of inaccuracy. Or does the ballpark figure nature of all these estimates mean the inaccuracy is acceptable as long as you round to thousands/millions/etc.? 47.155.41.201 (talk) 22:20, 27 June 2023 (UTC)[reply]

Seems to me (WP:OR is allowed in talk, though I didn't actually do any R) that for some things prices are global. When we hear about the price of oil, that is on the world market, and so such conversions should work. Then there is the Big Mac Index for comparing different countries. But many items are not globally traded, or have other reasons not to keep price parity. Gah4 (talk) 21:42, 13 December 2023 (UTC)[reply]

Generate footnote automatically?[edit]

Is there a way to do the equivalent of

({{Inflation|index=US|value=x|start_year=y}}{{Inflation/fn|US|group=note}}

without having to explicitly invoke both templates? Something like

({{Inflation|index=US|value=x|start_year=y|group=note}}

would be simpler. Is that possible? RoySmith (talk) 16:13, 29 November 2023 (UTC)[reply]

also...[edit]

Since I'm here, is there a nicer way to do this:

$1 million (equivalent to ${{format price|{{inflation|US|1000000|1908}}}} in {{Inflation/year|US}}),{{Inflation/fn|US|group=note}}

which is a mouthful. RoySmith (talk) 15:43, 30 November 2023 (UTC)[reply]

  • RoySmith, I think I've got a similar issue—I want my inflation equivalency to be in a note (|group=note}}) rather than a ref. Have you already achieved that or have I misunderstood the issue you raise here? Happy noo year! ——Serial 20:07, 2 January 2024 (UTC)[reply]
    @Serial Number 54129 Sadly, I have not. RoySmith (talk) 20:15, 2 January 2024 (UTC)[reply]
    Ah! Sorry. @Pppery sorry to bother you, but any thoughts on this? Much appreciated if you can help 👍 ——Serial 20:23, 2 January 2024 (UTC)[reply]
    You can pass |group=note to {{Inflation/fn}}. RoySmith already did that above. There's no way of doing what RoySmith listed above in one template call that I can see right now. * Pppery * it has begun... 00:02, 3 January 2024 (UTC)[reply]

Template-protected edit request on 30 November 2023[edit]

Please change

| USGDP
| US-GDP
| US-CAP = 2021

to

| USGDP
| US-GDP
| US-CAP = 2022

Titan877 (talk) 07:45, 30 November 2023 (UTC)[reply]

 Completed. P.I. Ellsworth , ed. put'er there 12:33, 30 November 2023 (UTC)[reply]

Template-protected edit request on 30 November 2023 (2)[edit]

Please change

| USGDP|US-GDP|US-CAP = {{#tag:ref|{{cite web |first1= Louis |last1= Johnston |first2= Samuel H. |last2= Williamson |title= What Was the U.S. GDP Then? |url= http://www.measuringworth.com/datasets/usgdp/ |work= MeasuringWorth |year= 2023 |accessdate= {{#if:{{{df|}}}|1 January 2023|January 1, 2023}} |name-list-style = {{{name-list-style|}}} |mode= {{{mode|}}} |postscript = {{#ifeq: {{{mode|}}} | cs2 |.}}<!--sets a terminal period if needed.--> }} United States [[Gross Domestic Product deflator]] figures follow the ''Measuring Worth'' series. |name="inflation-USGDP" | group ={{{group |}}}}}

to

| USGDP|US-GDP|US-CAP = {{#tag:ref|{{cite web |first1= Louis |last1= Johnston |first2= Samuel H. |last2= Williamson |title= What Was the U.S. GDP Then? |url= http://www.measuringworth.com/datasets/usgdp/ |work= MeasuringWorth |year= 2023 |accessdate= {{#if:{{{df|}}}|30 November 2023|November 30, 2023}} |name-list-style = {{{name-list-style|}}} |mode= {{{mode|}}} |postscript = {{#ifeq: {{{mode|}}} | cs2 |.}}<!--sets a terminal period if needed.--> }} United States [[Gross Domestic Product deflator]] figures follow the ''Measuring Worth'' series. |name="inflation-USGDP" | group ={{{group |}}}}}

Titan877 (talk) 07:47, 30 November 2023 (UTC)[reply]

 Completed. P.I. Ellsworth , ed. put'er there 12:34, 30 November 2023 (UTC)[reply]

Feature request: automatic r=[edit]

The documentation for this template says inflation is not accurate to better than 1% or so. The output ought to be automatically rounded off to 2 or 3 significant figures if the r= parameter is not provided.

Note there is no value of r= that means "2 significant figures". You have to look at the inflated output and calculate the right r= value. {{Convert}} has more useful controls. Vox Sciurorum (talk) 19:33, 13 December 2023 (UTC)[reply]

Edit request 6 January 2024[edit]

Per WP:CITEBUNDLE, the footnotes generated from {{Inflation/fn}} should either use a bulleted list or {{multiref}} to improve readability and accessibility. Is that change possible? voorts (talk/contributions) 19:27, 6 January 2024 (UTC)[reply]

 Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. Primefac (talk) 21:05, 11 January 2024 (UTC)[reply]

Default Output of Inflation Template[edit]

Moved from help desk

The Inflation Template returns an error if the date is out of range.

Can this be avoided, such that it returns the input value as if inflation was 0 (or another reasonable value)?

edit: This is a problem in this page (in the section for Hulu). It would be easier for editors if it just showed the real value until the data is eventually added (or if it got edited autmatically).


Garvey 96 (talk) 13:33, 7 January 2024 (UTC)[reply]

@Garvey 96: Hi there! When having an issue with a template, I suggest posting on the template's talk page first, preferably with an example. Thanks! GoingBatty (talk) 21:58, 7 January 2024 (UTC)[reply]
Returning an error seems like the right approach. Returning a value makes it seem like the input, and therefore the output, is valid when it is not. Mathglot (talk) 04:59, 8 January 2024 (UTC)[reply]
I think that errors should only be shown to editors and not to viewers of the page. Garvey 96 (talk) 09:34, 10 January 2024 (UTC)[reply]
Showing an error message to our readers may be ugly, but showing them erroneous information and pretending it's real is far worse. RoySmith (talk) 15:23, 10 January 2024 (UTC)[reply]
This looks like an functional error in the template to me. To take an example:
  • {{Inflation|US|8,610,000,000|2021|fmt=c|r=-6}} results in 9,681,000,000
  • {{Inflation|US|8,610,000,000|2022|fmt=c|r=-6}} results in 8,964,000,000
  • {{Inflation|US|8,610,000,000|2023|fmt=c|r=-6}} results in 8,610,000,000
  • {{Inflation|US|8,610,000,000|2024|fmt=c|r=-6}} results in 8,610,000,000
The template should not be producing an error for 2023, and editors shouldn't be expected to work around this. The 2021 and 2022 indeces work, but only inflate to 2022. The 2024 index is the only that would read as correct to the reader, signifying that there has been no inflation between 2024 and 2024. There is no reason to make 2023 return an error value, because the problem will be fixed once the inflation figures are released for 2023. The problem only occurs because there is a bit of a lag in the data. What you are going to get is editors introducing hacks by adding unadjusted figures to lists and tables to avoid getting an error message, meaning that the numbers won't update through the years. Betty Logan (talk) 09:43, 11 January 2024 (UTC)[reply]

Template-protected edit request on 29 February 2024[edit]

Per https://www.minneapolisfed.org/about-us/monetary-policy/inflation-calculator/consumer-price-index-1800-, we can add a 2023 row. The 2023 value should be 915.6. Snowman304|talk 02:23, 29 February 2024 (UTC)[reply]

 Done Modified Template:Inflation/fn as well. SWinxy (talk) 20:43, 29 February 2024 (UTC)[reply]

Edit request 2 March 2024[edit]

Description of suggested change: In the diff, I updated Finnish inflation data to 2023. I request changes to {{Template:Inflation/year|FI}} to update the year to 2023, and change the source for the data to this datasheet from Statistics Finland

Diff: [1] Szmenderowiecki (talk) 19:02, 2 March 2024 (UTC)[reply]

Further edit request[edit]

Description of suggested change: Sources in many countries refer to the following citation: Afterwards, Coos Santing, 2007, Inflation 1800-2000, data from OECD, Organisation for Economic Co-operation and Development, Economic Outlook. Historical Statistics and Mitchell, B. R. International Historical Statistics, Africa, Asia and Oceania 1750-1993 London : Macmillan ; New York : Stockton, 1998, International Historical Statistics, Europe 1750-1993 London : Macmillan ; New York : Stockton, 1998, and International Historical Statistics, The Americas 1750-1993 London : Macmillan ; New York : Stockton, 1998

The data link returns a 404 error, change it to [2] Szmenderowiecki (talk) 19:27, 2 March 2024 (UTC)[reply]

 Done --Ahecht (TALK
PAGE
) 19:39, 11 April 2024 (UTC)[reply]

Edit request 2 March 2024[edit]

Description of suggested change: Added new values from 1991 to 2023 provided by Rosstat. This obviates the need for the source that is only for 1991-1992 and updates Russia's inflation rates to 2023. Changes are requested to /year template from 2007 to 2023 and to /fn part to reflect changed sources.

Diff: [3] Szmenderowiecki (talk) 20:16, 2 March 2024 (UTC)[reply]

Szmenderowiecki, entirely up to you if you want to do this, but since you're updating Russian inflation statistics and are a Russian speaker, if you have the time it would be quite helpful if you could add the data in this document, which I can't read, to the template if it provides anything useful (it also seems more reliable than the current National Economy of Russia source). Zoozaz1 (talk) 00:32, 3 March 2024 (UTC)[reply]
Absolutely, will look into that. Szmenderowiecki (talk) 15:48, 4 March 2024 (UTC)[reply]
Zoozaz1 Here I found a downloadable and better searchable version of this paper, but even though the scope of work is admirable, each of the components is assessed separately (so prices on grains, clothing, metals, salt etc.). There is no one CPI measure in this work, and calculating it ourselves will definitely be verboten.
Also, this work only covers the XVI century. There's a lot of economic literature listed here that may be useful for the XVII century but I will have to read it when I have time. Szmenderowiecki (talk) 17:14, 4 March 2024 (UTC)[reply]
I see, that's unfortunate. When you get around to looking through the books listed there, let me know if you can't find a copy, I should be able to find it. Zoozaz1 (talk) 00:03, 6 March 2024 (UTC)[reply]
No luck finding inflation data. Just read through all books. Szmenderowiecki (talk) 01:15, 6 March 2024 (UTC)[reply]

 Done * Pppery * it has begun... 15:15, 17 April 2024 (UTC)[reply]

Edit request 2 March 2024[edit]

Description of suggested change: Added new values from 2022 to 2023 provided by Eurostat; also, I changed the source to Eurostat instead of the Federal Reserve citing Eurostat. Changes are requested to /year template from 2021 to 2023 and to /fn part to reflect changed sources.

Diff: [4] Szmenderowiecki (talk) 20:48, 2 March 2024 (UTC)[reply]

@Szmenderowiecki: I've updated /year. Could you please write the exact wikitext you want for /FN after all of these requests to Template:Inflation/fn/sandbox, since it's not obvious to me how best to cite these websites. * Pppery * it has begun... 01:15, 31 March 2024 (UTC)[reply]
Reping Szmenderowiecki * Pppery * it has begun... 22:58, 16 April 2024 (UTC)[reply]
Pppery, updated as requested Szmenderowiecki (talk) 15:11, 17 April 2024 (UTC)[reply]
And copied that live. * Pppery * it has begun... 15:15, 17 April 2024 (UTC)[reply]

Update requested for US 2023 data[edit]

Template is not yet showing US data adjusted to 2023. See the examples on Template:Inflation/doc that are like {{Inflation|US|...|fmt=eq|...}} which are still rendering as "in 2022" rather than "in 2023". I see that Template:Inflation/US/dataset has been updated with 2023 data, but I think that also Template:Inflation/year still needs to be updated for 2023? Thanks. netjeff (talk) 19:30, 10 March 2024 (UTC)[reply]

SWinxy made two edits in responding to this edit request: one to Template:Inflation/US/dataset to add the 2023 figure (per edit req) and one to Template:Inflation/fn to Update US access-date. A comment on Template:Inflation/US/dataset says:
<!-- *** When changing this, also update the reference in Template:Inflation/fn and the latest year in Template:Inflation/year! *** -->wbm1058 (talk) 14:08, 29 March 2024 (UTC)[reply]
Clearly Template:Inflation § Developer documentation leaves something to be desired, as we have issues with drive-by template editors responding to edit requests here.
All pages with titles beginning with Template:Inflation/US shows that there are two US inflation datasets:
Sdkb edited Template:Inflation/year @ 02:13, 28 March 2024, to Update US cap on behalf of User:SWinxy (note the hidden comment next to the edit here).
But SWinxy edited {{Inflation/US/dataset}}, not {{Inflation/US-GDP/dataset}}. We need to be clear on what the difference is between these, and make sure that we're updating the correct one. – wbm1058 (talk) 15:19, 29 March 2024 (UTC)[reply]
Asking for updates in multiple places (especially with something as complicated as this) is always going to cause issues, no matter how strong the hidden comment warning. Could we design it so that e.g. {{Inflation/year}} automatically reads the other templates and derives the most recent year from them? Sdkbtalk 15:25, 29 March 2024 (UTC)[reply]
Aw, shoot. Sorry for messing this up. While I erroneously missed editing Inflation/year, the edit request was to Inflation/US/dataset. Does Inflation/US-GDP/dataset need to be updated as well? SWinxy (talk) 17:52, 29 March 2024 (UTC)[reply]
OK, getting myself up to speed. The source for {{Inflation/US/dataset}} is the Federal Reserve Bank of Minneapolis, and right, that's what you got in the previous edit request.
The source for {{Inflation/US-GDP/dataset}} is Samuel Willamson's MeasuringWorth website, per the template documentation. That was last updated by Titan877 at 07:15, 30 November 2023, and I see that Titan877 was responsible for a couple of 30 November 2023 edit requests above, which were done by Paine Ellsworth. Those updated the year from 2021 → 2022, and came from http://www.measuringworth.com/datasets/usgdp/
On that page, you use the form in the grey box on the upper right of the page. Check the box for "US GDP Deflator", enter initial year 1790, ending year 2023, then click Retrieve, and...
Voila, we have a number for the year 2023, 122.27 – so, yes, we can update that from 2022 → 2023 now. Apparently that was done months late, last year, since it wasn't done until the end of November. – wbm1058 (talk) 19:20, 29 March 2024 (UTC)[reply]
 Donewbm1058 (talk) 23:59, 29 March 2024 (UTC)[reply]

Edit request 14 March 2024[edit]

Description of suggested change: Adding a link to MeasuringWorth and fixing the second use of Measuring Worth (note the space, which should not be there) for the US citation in Template:Inflation/fn.

Diff:

http://www.measuringworth.com/datasets/usgdp/ |work= MeasuringWorth |year= 2023
+
http://www.measuringworth.com/datasets/usgdp/ |work= [[MeasuringWorth]] |year= 2023
United States [[Gross Domestic Product deflator]] figures follow the ''Measuring Worth'' series.
+
United States [[Gross Domestic Product deflator]] figures follow the ''MeasuringWorth'' series.

SounderBruce 00:11, 14 March 2024 (UTC)[reply]

I've made the requested change in the template sandbox. – wbm1058 (talk) 13:21, 29 March 2024 (UTC)[reply]
 Donewbm1058 (talk) 00:01, 30 March 2024 (UTC)[reply]

Edit request for Laura Veale[edit]

There are three inflation templates on the above page, and today they have all suddenly reported an error, thus:

(equivalent to £Error when using Error when using {{Inflation}}: |index= (parameter 1), |value= (parameter 2) and |start_year= (parameter 3) must be specified.: NaN/calculation error, please notify Template talk:Inflation. in 2023).

Please resolve it? Thank you. Storye book (talk) 11:08, 7 May 2024 (UTC)[reply]

Further examples also appear in other articles. For example, Douglas Bader. Sxg169 (talk) 13:12, 7 May 2024 (UTC)[reply]
The issue appears to be resolved now. Thank you to whoever fixed it. Storye book (talk) 17:26, 7 May 2024 (UTC)[reply]

Template-protected edit request on 7 May 2024[edit]

MeasuringWorth (https://measuringworth.com/datasets/ukearncpi/) has data to 2023 for UK inflation. The current output is only to 2021. Snowman304|talk 04:57, 7 May 2024 (UTC)[reply]

 Completed. P.I. Ellsworth , ed. put'er there 10:56, 7 May 2024 (UTC)[reply]

This alteration may have resulted in an error as it appears that all usages of the template involving UK are resulting in errors (for example, Elizabeth II).Sxg169 (talk) 13:19, 7 May 2024 (UTC)[reply]

 Fixed. – Jonesey95 (talk) 13:31, 7 May 2024 (UTC)[reply]

Template-protected edit request on 9 May 2024[edit]

The Canadian source's access date should be changed to today (2024-05-09) because I updated the data. Snowman304|talk 21:15, 9 May 2024 (UTC)[reply]

 Done * Pppery * it has begun... 16:26, 16 May 2024 (UTC)[reply]

Template-protected edit request on 9 May 2024 (2)[edit]

The inflation year for Canada (CA) should be updated to 2023, as I updated the dataset to include 2023 data. Snowman304|talk 21:17, 9 May 2024 (UTC)[reply]

 Done * Pppery * it has begun... 16:26, 16 May 2024 (UTC)[reply]

2024/updated template request[edit]

Will a "2024 option" for the template only be available after the end of the year? 92bob (talk) 01:43, 10 May 2024 (UTC)[reply]

Template-protected edit request on 15 May 2024[edit]

Swedish (SE)

  1. Please include "{{cite web |url=https://www.scb.se/en/finding-statistics/statistics-by-subject-area/prices-and-consumption/consumer-price-index/consumer-price-index-cpi/pong/tables-and-graphs/consumer-price-index-cpi/cpi-historical-numbers-1830/ |title=CPI, Historical numbers, 1830– |website=Statistics Sweden |access-date=2024-05-15}}" or something similar as a source for the dataset on Template:Inflation/fn.
  2. Please also include in the documentation for Template:Inflation/SE/dataset.
  3. Please update the end_year maximum value for SE on Template:Inflation.
  4. Please change "|#default = 4378" to "|#default = 5898" on Template:Inflation/SE/dataset
  5. Please update the date in Template:Inflation-year.

Thanks a million! Snowman304|talk 03:57, 15 May 2024 (UTC)[reply]

I have updated Template:Inflation/fn and Template:Inflation/year. The remaining pages don't seem to be protected so you can do them yourself. * Pppery * it has begun... 16:26, 16 May 2024 (UTC)[reply]
Thanks so much! The unprotected pages are now all updated. Snowman304|talk 22:28, 16 May 2024 (UTC)[reply]

Suggestion: Use a more up-to-date inflation metric[edit]

The United States has two common inflation metrics: the CPI and the PCEPI (Personal Consumption Expenditure PI). The CPI and its variants are designed for cost-of-living adjustments to wages in negotiated contracts. As a result, the CPI excludes many common goods (such as health insurance) provided as fringe benefits rather than being paid for out-of-pocket. The PCEPI gives a more complete picture by including all consumption goods and services. The CPI is also methodologically awkward in that it uses a right-chained basket (right-hand sum) to approximate inflation, which is strictly less accurate than the PCEPI's use of the trapezoid rule. (The bad approximation has stuck with us for what are essentially political reasons.)

The PCEPI is the metric recommended by the Federal Reserve, and the metric it pays attention to when it decides monetary policy; as a result, I suggest replacing CPI with PCEPI in this template. Does this sound reasonable? –Sincerely, A Lime 18:25, 15 May 2024 (UTC)[reply]

A Lime, yes, though I would perhaps suggest adding another template rather than replacing the current one, for two reasons. Firstly, I assume CPI data goes back further and might be necessary for obtaining data from certain years, secondly there may be cases where one methodology is more appropriate than the other. Zoozaz1 (talk) 21:12, 18 May 2024 (UTC)[reply]
I know the PCEPI has been reconstructed going back to at least 1929, which is roughly the same point as where CPI figures become reliable enough to be usable. –Sincerely, A Lime 21:50, 18 May 2024 (UTC)[reply]

Cents > dollars[edit]

Is it possible to convert from, e.g. 10¢ in 1940 to the modern equivalent (which would presumably be in dollars)? Cheers, ——Serial Number 54129 14:24, 17 May 2024 (UTC)[reply]

{{Inflation|US|0.10|1940|r=2}} → 2.17 – Jonesey95 (talk) 14:28, 18 May 2024 (UTC)[reply]