Template talk:Inflation/Archive 1
New template: Inflation
Great work! I would like to adapt this template to the German wikipedia, if you agree. To do so I need to add the inflation rate for DM/Euro. Would it be usefull to add this currency also in the english template? I provide you with the figures in the hidden text to keep the page readable.Karsten11 (talk) 18:26, 26 May 2008 (UTC)
Individual currencies in individual pages seems to be a good approach. Only for the german wikipedia we have DM/Euro for Germany, ÖS/Euro für Austria and SFR for Switzerland (and need the exiting USD and GBP too). There are 3 phases: a) 1951 to 1998: In this phase only DM exists. So each value in articles describing an amount must be in DM. Today DM is history. So these amounts need to be inflation-adjusted and changed into Euro (1 Euro = 1,95583 DM). b) Between 1999-01-01 and 2001-12-31 DM and Euro exists in parallel. So the amount in the article can be given in DM or Euro. Only in the first case it needs to be converted. c) From 2002 we use only Euro. No conversion is needed. An Output schould be everytime in Euro. A manual conversion is possible but not user-friendly. May be we can make the calculation much easier by taking an assumtion, that all amounts in phase b are in DM. There is no Euro-only inflation. In Europe we measure inflation by country. Even if Germany as well as Ireland use Euro, we have a different inflation rate for both countries. So we have a Inflation rate for Germany, not for the currencies. Historical inflation rates are a problem. After WW II there was a hyperinflation. The former currency (German Reichsmark) lost the value and was replaced 1948 by the DM. The inflation rates in the 1940s was so high that it would be necessary to know in which month or week the amount was payed to use the right factor. And: Due to the war the quality of the statistics is rather poor. For the time between 1924 an 1940 inflation rates are available. Ther we would need a factor to link the 1940 value with the value of 1951. This is not easy. 1922/23 there was also a hyperinflation with inflation rates which are not usable. In advance there was the German gold mark. If we can link 1924 and 1921 than we can go back to 1876 when the Goldmark was initialy issued. You can see: It´s a little tricky with german currencies.Karsten11 (talk) 06:20, 27 May 2008 (UTC)
It would be helpful to round the results to 2 positions after decimal point.Karsten11 (talk) 11:39, 27 May 2008 (UTC)
This Currconv sounds good. This template can be used in combination with inflation template as well as stand-alone. You are right: The template discussion page is the right place for this discussion.Karsten11 (talk) 08:48, 28 May 2008 (UTC)
Hallmark!I'd like to inform that Slavery has just became the very first (actual) article in Wikipedia using this template! The previous, hard-coded version informed that the price for a slave in the USA of 1850 ($1,000) would be "about US$38,000 in present-day terms". After changing it to the dynamically generated As this template is updated year after year, articles properly edited to take advantage of it will be automatically update too. What could be better for an online encyclopedia which has the moral obligation of staying accurate? So, let's start editing articles accordingly! It's more than worth the effort! But a reminder: take care to not change hard-coded values present in citations or from referenced sources. Only values whose source is a Wikipedia editor should be turned into a dynamically generated ones. Otherwise, obviously, those citations would become invalid and the edit would have to be reverted. Have fun! -- alexgieg (talk) 14:30, 28 May 2008 (UTC) Template {{Inflation-fn}}I've created a new template, Template {{Formatprice}}I've made another cool template: {{Formatprice}}. It avoids the cents problem in the built-in No downside
I'd say that this is no downside. It's a question of language not location. In English it's a dot for the decimal point and commas (spaces or nothing at all) for thousands delimitation. In Germany English should still be English. Please don't "solve" this non-problem. JIMp talk·cont 23:41, 8 June 2008 (UTC)
Various pointsObviously this is a useful starting point for an unflation template: {{US Inflation}} is the only preexisting one and is focussed on the single task of inflating USD to current prices. There are a number of issues I can see with this template, some minor quibbles, some quite serious. Ultimately, I'd like to be able to redirect {{US Inflation}} to call here, but because of those concerns I'd rather not at this time. Anyway problems in roughly descending order:
That's a few things to be getting on with, though point 1 needs to be dealt with: either by changing the source of the info or getting permission to use their data. Oh and here is Canadian CPI data for 1914 - present.--Nilfanion (talk) 22:53, 10 June 2008 (UTC)
See the above discussion about the currency crossing. In short, I'm against it because there are technical difficulties. In Europe there was a period when both the national currency and the EUR existed. To properly incorporate currency conversion in the inflation template itself would mean either: a) adding extra parameters to deal with overlapping currencies, what can easily become an extreme level of complexity to the template once more countries (and maybe currencies) with their own oddities enter the template; or b) arbitrarily setting a threshold, as you suggest. I myself prefer neither, going instead with c) creating a separate template (currently non-existent), named {{Currconv}}, to deal exclusively with currency conversions. Thus, if an editor wanted values to be converted between currencies, he could wrap it into something like this: Of course, the other approach is also perfectly valid. Karsten11, with whom I talked about this all, decided to implement the German version of this template differently, incorporating the DM to EUR conversion as an automatic 2001 crossing threshold. Now, nothing prevents one to create new templates based on both {{Inflation}} and {{Currconv}}. For example, thinking on your template's name, I imagine one might create a {{DE Inflation}} that would go around On the granularity level, it'd be doable with optional named parameters. We could add, say,
Printing the "current" year?Is there anyway that the template could optionally output something like in 200n after the number, with the most recent year there is data being output when there's not a second year provided. That way when the template is updated with a new year's worth of data, the dollar amount would have a specific date, like "N,NNN in 2007", rather than something more nebulous like "N,NNN today"? — Bellhalla (talk) 12:19, 20 June 2008 (UTC)
Update 2008The preliminary inflation rate for € in 2007 is 2,6 %Karsten11 (talk) 15:03, 31 December 2008 (UTC) EfficiencyThe calculation could be made more efficient if it stored a cumulated inflation factor, i.e. inflation since the startyear. To calculate inflation from year A to year B, you'd just divide the cumulated inflation from startyear to B by the cumulated inflation from startyear to A. For the UK template in particular, it would bring it from evaluating 743
Deinflation option would be usefulSince someone offered in the "Limitations" section of [1], I would like to see a deinflation option added. The reason is that it is sometimes necessary to compare the specific price in an article, for example about a new product, with general price from an earlier period. "This convertable is more affordable than models produced in the 1960s." That is, the reader may not know or care about some particular, specific model from 40 years ago, but they may be interested in mapping the current product information back to (unidentified, unknowable) products that they recognize. (Maybe not a 1960s automobile at all, but a 1960s boat, house, salary, etc.) Thoughts? Piano non troppo (talk) 02:56, 20 August 2009 (UTC) end_yearI'm ok with this defaulting to "recently", but when values are actually calculated, does this evaluate as {{Currentyear}} so that it updates on the fly, or does it depend on whether this template is subst'd? It obviously saves a great deal of effort if we don't need to update end_year manually. Or have I missed something? Rodhullandemu 23:48, 17 October 2010 (UTC) George WashingtonI was trying to calculate inflation for $8,000 received from George Washington's 1799 will, but discovered that I had to use the year 1800. I then noticed inflation from 1800 and 1801 resulted in less money in today's terms than in 1802. Shouldn't there be more money the older you go back in time due to inflation? Here is a short table to show you what I mean:
Why is 1800 ($102,211.76) and 1801 ($104,256) less than 1802 ($121,227.91)?-- Uzma Gamal (talk) 10:06, 17 November 2010 (UTC)
Reichsmarks to euros?I'd like to use this template in the article for the 1927 silent film Metropolis. Specifically, I'd like to have this figure's current value in euros:
But it's not straightforward. Any suggestions? — Athelwulf [T]/[C] 00:01, 19 December 2010 (UTC)
Inflation/UK/dataset cites incorrect datasourceInflation/UK/dataset cites a US dataset incorrectly in its documentation. Fifelfoo (talk) 00:53, 11 January 2011 (UTC) RFC: correlation between Inflation/UK/dataset and MW UK RPI datasetCan the template author explain how Template:Inflation/UK/dataset's figures relate to the MW figures it is based on at MW UK RPI dataset? If they could document this relationship, I could clone the RPI long series for long series Average Nominal, Average Real, GDP sets, etc. Fifelfoo (talk) 01:01, 11 January 2011 (UTC) CPI noticeSince the documentation has been updated noting not to use this template for things other than consumer goods, I have a request/question. Can we add a parameter to this template to specify which inflationary adjustment calculation method is used and then add the necessary datasets to make that happen? I've found the concept of having constantly updating inflation adjustments via template to be incredibly useful, but if this template is wrong for certain uses, can we update it so we can make it work for other applications? Imzadi 1979 → 10:16, 24 January 2011 (UTC)
Capital expenses, government expenses etc.
Whether one wishes to use CPI or some other price index depends on the question one is asking. Fifelfoo is probably right that using CPI to compare the expenditures of the rich across time is fraught with problems, since CPI is based on a consumption basket of a "typical" household, rather than a "wealthy" household (in historical terms an added complication is that a 19th century "wealthy" household was in fact poorer than a "poor" household today in absolute terms, save perhaps the top .00001% of population). This doesn't make this template invalid, it just means it should be used with extreme caution. I was a little worried about which price series was used for the pre-industrial revolution but it seems that it was from the measuringworth.com website, which as far as I can tell uses the Bowley-Wood price series, which, while they do have some (understandable) problems, are pretty much "the best there is".Volunteer Marek (talk) 00:29, 23 March 2011 (UTC) I'm still a little lost as to why one can't use CPI for government purchases - it's done all the time.Volunteer Marek (talk) 00:31, 23 March 2011 (UTC)
OutputJust discovered this. Incredible! I would like to ask for something (kind of touched on earlier, above) for output. I would like to see the output for ${{inflation|country|n1|year}} as "$n1 in year ($converted n1 in 2008)" or something that defaults to a complete explanation. The default could be overridden, for say, tables. Student7 (talk) 19:57, 24 April 2011 (UTC) Beta announcement: UK National Gross Domestic Product per capita following Measuring WorthDear editors, I'd like to announce a beta phase for the UK National Gross Domestic Product per capita inflation template: UKNGDPPC. For example:
Australian dollarsI am having trouble with Australian dollars. I can specify 2000 dollars in 2008 dollars (eg. {{Inflation|AU|100|2000|2008}} is 128) but 2009 or later gives me a NaN (eg. {{Inflation|AU|100|2000|2009}} is 131). Any ideas? Hawkeye7 (talk) 20:10, 5 November 2011 (UTC)
Beta announcement: US National Gross Domestic Product per capita following Measuring WorthDear editors, I'd like to announce a beta phase for the US National Gross Domestic Product per capita inflation template: US-NGDPPC. For example:
CanadaWhile Statistics Canada uses a CPI historical series definition that is amenable to human calculation, such a calculation requires the revised Canada-wide point averages for all months in a year being averaged. It cannot be supplied by taking November point averages. (And it certainly didn't extend the series to 2012!). Fifelfoo (talk) 00:53, 17 January 2012 (UTC) US cite needs year updatedI used this template in an article, for US dollars. It works okay, but the citation it generates says "US Commerce dept data 1800-2008". In fact, that web site it refers to is current up to 2012, so that text should be changed to "1800-2012". I'm busy now, so I have no time to try to do it myself .. hoping someone else has time. --Noleander (talk) 21:45, 19 March 2012 (UTC)
UK decimalizationThere is no hint as to how to input amounts of money before 15 February 1971, when the UK decimalised, replacing the shilling and penny with a single subdivision, the new penny. I am trying to find out the value of £1 15s in 1800. Do I have to convert that to £1.75 ? Nick Beeson (talk) 14:20, 26 March 2012 (UTC)
All the best: Rich Farmbrough, 16:10, 14 December 2015 (UTC). Request for feedback on my usage of this templateGreetings! I recently added this template to three articles, but before I go much further, I'd like to get some feedback from other editors on whether or not I'm heading in the right direction. Before I edited them, the articles contained (relatively) modern equivalents of past US dollar amounts that have been "hardcoded" into them. The problem with that method is that those equivalents will become less meaningful over time and may need to be updated periodically. What I've tried to do is insert templated text so that, going forward, the equivalent amounts will automatically stay current. My hope is that this will make those amounts more relevant to readers while requiring less article maintenance by editors. The three articles in question are: Of course, if the consensus is that my changes to these articles is inappropriate, I will gladly undo any damage I may have done. Thank you in advance for any comments or suggestions you care to make (please leave them here; I'll keep an eye on this talk page for a while). Cheers! ➢ Bgpaulus <small-caps>(WORDS & DEEDS)</small-caps> 22:41, 1 August 2012 (UTC)
Proposal to allow commas or show errorsI have rewritten the /sandbox version to allow commas in the amount, and show error messages for specific problems in the year range or invalid amounts. Parameter "fmt=c" will put commas in the result, or "fmt=eq" will show "equivalent" phrase (default: fmt=raw). For example:
I think the rewrite is working fine, and only increases the expansion depth by 1 level (as 12) to show commas, because each error condition is tested outside the prior template markup and does not nest the depth of calculations. Prior to 2008, a template with error-message validations would expand the size of a formatted page, but since January 2008, the parser includes just the true conditions of if-structures and omits any unused error-message markup. If there are no other concerns, then I will install the new version in a few days. UPDATE: The new version will also allow option "fmt=eq" as in examples above. -Wikid77 (talk) 12:40, 9 November 2012, 10:43, 12 January 2013 (UTC)
Updating the inflation formula for 2013?Hi all, great work here! I was wondering when these type formulas: ${{formatprice|{{Inflation|US|200000000|1919|r=1}}}}
Help with errorsI am now seeing error messages in Ely and Littleport riots of 1816. I do not know what is wrong or how to fix it. Any help would be appreciated. Jojalozzo 18:31, 12 January 2013 (UTC)
Workarounds for pre-decimal Sterling amountsAmounts less than ₤1Template:Inflation outputs an ugly error message if the currency amount is less than ₤1.00. This is unfortunate, because one pound has historically been considered a large amount compared to prices for most everyday personal transactions, as described in the documentation of the template. The workarounds below adapt suggestions given on the Template:Inflation documentation page and its talk page for manually converting between currencies. The suggestions here can be used to directly enter amounts in shillings or old pence, for amounts both less than and greater than one pound. — Preceding unsigned comment added by Monomoit (talk • contribs) 22:37, 12 January 2013
Whole shilling amountsAs an example, one author wanted to display the equivalent, in today's money, of ten shillings in 1854.
In this workaround, the amount can be entered directly as Example: £{{formatnum:{{#expr:( {{Inflation|UK|10|1854|r=0}} / 20 ) round 0 }}|0}} gives: £59
Shillings and PenceThe previous example can be adapted to any number of whole shillings. Also, multiples of 3 d. can be entered as a decimal fraction of a whole shilling. For example, 30 s. can be entered as Generally, an amount in shillings and pence needs to be converted to the total number of pence, and the factor £{{formatnum:{{#expr:( {{Inflation|UK|2.5|1854|r=0}} / 20 ) round 0 }}|0}} £{{formatnum:{{#expr:( {{Inflation|UK|30|1854|r=0}} / 240 ) round 0 }}|0}} gives: £15 £15 Monomoit (talk) 22:37, 12 January 2013 (UTC) AlternativelyYou can put the fractions inside so as to avoid having to use the #expr. £{{formatnum:{{Inflation|UK|10/20|1854|r=0}}|0}} £{{formatnum:{{Inflation|UK|2.5/20|1854|r=0}}|0}} £{{formatnum:{{Inflation|UK|30/240|1854|r=0}}|0}} £{{formatnum:{{Inflation|UK|2/20+6/240|1854|r=0}}|0}} give: £59 JIMp talk·cont 11:08, 22 March 2013 (UTC) 'cursign' option not working?The 'cursign' option doesn't appear to be working, at least in this instance:
I can add the $ manually, but should I be concerned about that option becoming active again at some point? Praemonitus (talk) 20:23, 20 April 2013 (UTC)
Is there any possibility that this feature could be extended to display the proper year, and not default to 2013? For example, {{Inflation|US-NGDPPC|60000|1934|fmt=eq|cursign=$}} displays Error when using {{Inflation}}: Updating the UK figuresThe UK figures are out of date. Rather than overwrite them with new figures I've created a new currency called TEST that can be used e.g. Could someone else please check over what I have done, before I copy {{Inflation/TEST/dataset}} into {{Inflation/UK/dataset}}
When I've done all that I'll be back. Edgepedia (talk) 04:51, 30 July 2013 (UTC) Done. I've checked a few transclusions and it all looks well to me. Edgepedia (talk) 05:02, 30 July 2013 (UTC)
|
collapsed rant
|
---|
If a year's data is not available, then the template simply can not provide calculations for that year... If it can't provide calculations without fibbing, then either the template should not be used in that instance, the context it is used in should be changed, or datasets should be expanded. Sometimes data just isn't available, and that is that; calculating or even implying a calculation was done would be an error. (We could change this template to be predictive, at the risk of WP:SYNTH.)
There's no problem with having inflation data only through 2015 on an encyclopedia in 2016, no more of a problem than referring (with reliable sources) to events from 200 years ago in an encyclopedia in 2016. It's frankly the whole point of an encyclopedia. Per WP:REALTIME we should not assume that an article or its data will be continually updated, and write in a way that ensures as with Refusing to output false data is not a problem caused by this template, nor is the template to blame for editors who cludge inputs rather than think about whether an inflation calculation is even appropriate to begin with. Editors can at least be encouraged to fix their mistakes by using more helpful error messages, not by pretending no error exists.
|
- There is a potential workaround to allow use of the template in anticipation of future database updates. We could create a wrapper template which simply passes, unchanged, a given value of a
start_year
as of that stated year without pretending to calculate inflation, until it finally detects an update to {{Inflation}}. Something like. Like, I can calculate right here that as of this moment, the index{{#if:{{{start_year}}} >= {{Inflation-year|{{{index}}}}}|{{{value}}}|{{{value}}} ({{Inflation|US|{{{value}}}|fmt=eq}})}}
US
is outdated. We could even make it default behavior, though we'd have to code one with and without|fmt=eq
. But even then, editors will need to think about whether the inflation statement will actually be appropriate when it does change over. djr13 (talk) 05:07, 13 March 2016 (UTC)- Here is another example of the problem: if you look at the Deadpool entry you will see that its inflation adjustment formula was removed earlier today to correct the problem; the problem now is that when the 2016 index is updated in the 2nd or 3rd quarter that won't be reflected in the entry in that table! When dealing with current data there will often be a lag of up to a year pending the updating of the inflation series and the template needs to accommodate that. A fancy solution is not required. If the index end_year is set to 2015, then all we need is the template to not regard the start_year set to 2016 as an error. If the data sets have been updated to 2015 chances are they will be updated to 2016 at some point when the data becomes available. If the index end_years are not updated and remain set at 2015 then they will produce errors when the start year reaches 2017 anyway. All that is is needed is a +1 or a -1 strategically positioned in the template so that errors are not produced if the start_year is just one year ahead of the index end_year. Betty Logan (talk) 06:12, 13 March 2016 (UTC)
- There is a potential workaround to allow use of the template in anticipation of future database updates. We could create a wrapper template which simply passes, unchanged, a given value of a
- FYI to all here, I have modified the error-tracking category name to make it specific to this template, as we do with other templates. – Jonesey95 (talk) 20:30, 19 September 2016 (UTC)
- It is nice to be able to add a template when one creates an article or modifies it, but I think one can wait a few years before we actually need the inflation adjusted value. (At least at current almost zero inflation rate in many countries.) A parameter that would not print anything until after=(year) might be nice. Gah4 (talk) 06:45, 2 November 2016 (UTC)
Capital expenditures names are unusable
For capital expenditures, we have US-NGDPPC and UKNGDPPC (though dash and non-dash formats work). This isn't ideal. Those only mean something to people with an intimate knowledge of macroeconomics, and they aren't memorable in the slightest, so that I always have to revisit this page to copy the abbreviation. A simple USCAP and UKCAP would be far better abbreviations -- memorable, meaningful, unique, and easy to type. I propose that USCAP and UKCAP should become the new keys, and the old ones redirected to them. Does anyone else agree? SilverbackNet talk 04:07, 5 May 2016 (UTC)
- Seconded, although I think "USLARGE" and "UKLARGE" would be even easier to understand.--Father Goose (talk) 22:24, 23 November 2016 (UTC)
- The "NGDPPC" portion of the name refers to "nominal gross domestic product per capita", one measure for dealing with these large numbers. There are other measures that could eventually be added for various specific uses, so it's best to stick with terms based on those schemes instead of inventing "easy" ones that lack any meaning. Imzadi 1979 → 23:25, 23 November 2016 (UTC)
- Yes, I think if we have different names, they need to be somewhat obvious how they should be used. If you buy a large quantity of consumer goods, which index is it? The gross proceeds for a movie is the sum of millions of tickets bought by individual consumers, so it is large, but, seems to me, should follow the consumer index. So, maybe US-CONSUMER and US-CAPITAL. Not so hard to remember. I still wonder about things that are between consumer goods and capital goods. Gah4 (talk) 23:56, 23 November 2016 (UTC)
- A fair point, Imzadi, although the template doesn't inform readers what index is being used for the adjustment, and generalized publications almost never explain that either, it's all just "adjusted for inflation" (...magically).
- The naming of the parameter is less important now that I've updated the documentation to explain (approximately) when to use each. Although the parameter names are still both inconsistent and ugly.
- A bigger problem came to light when I checked Special:WhatLinksHere/Template:Inflation. Almost all uses of the template use the "US" or "UK" (CPI-based) indexes, even when converting large/capital sums. This is presumably a consequence of editors using the template before the GDP indexes were added, and it needs fixing. I'll start a separate thread below to discuss this issue.--Father Goose (talk) 05:04, 24 November 2016 (UTC)
Suggestion on which to use???
Following up silverbacknet's post... I was directed here after a user suggested to use it for an NBA salary cap page... and have uses for it on hurricane pages and various other articles. But... I have no idea whether I should be using US or US-NGDPPC for each. There's no explanation of what NGDPPC means on the template page... or even a Wikipedia redirect for such. I saw some explanations here, but a clear, simple explanations on which is better for which situations (and perhaps why\how major the difference is) would be extremely appreciated. JeopardyTempest (talk) 03:13, 22 August 2016 (UTC)
- The undifferentiated
US
uses the Consumer Price Index, whileUS-NGDPPC
uses the Nominal Gross Domestic Product per capita. The former is better for small amounts related to the price of individual goods, while the latter is better for capital projects and other large amounts. Imzadi 1979 → 03:20, 22 August 2016 (UTC)
- The page at http://www.measuringworth.com/uscompare/ offers some guidance on which measure you should use in which context. For salaries/income I would use US-NGPPC (GDP per capita at the page I have just linked to). This is what it has to say: "The GDP per capita is an index of the economy's average output per person and is closely correlated with the average income. It can be useful in comparing different incomes over time." Betty Logan (talk) 03:26, 22 August 2016 (UTC)
- Ok, good stuff, and really appreciate getting replies for a change on a talk page! The question then continues onto other that I came across was the Gateway Arch page (which was already using NGDPPC). Imzadi leads me to think it'd be NGPPC due to it's scale, while Betty I'd be more uncertain with (since it has nothing to do with income). And, for that matter, is it of small enough value to not hit the warning about not using Inflation for capital expenditure projects??
- I'd expect the damage caused by a storm such as Hurricane Erin (1995) would also probably fit in the same category (so NGDPPC)?
- Whatever is said, this is probably important enough to get written into the template documentation (I'll try to do after more discussion time if I remember)? It would seem something like hurricanes being compared inconsistently could lead to somewhat false results? Thanks again
- JeopardyTempest (talk) 04:14, 22 August 2016 (UTC)
- Measuringworth.com is a good starting point. The right measure to use depends on a variety of factors, including what you are trying to explain by the comparison. I'd support using GDP per capita for comparing NBA salaries and limits, sounds sensible.
- I suspect for hurricanes, though, what you're trying to get at in your comparison is "how much of the economy did the hurricane destroy?" (e.g. if Hurricane X destroyed 10% of the state's economy in 1950, how much would that be equivalent to in 2016?), in which case NGDPPC wouldn't be ideal - I think you'd be best going for a straight forward share of GDP measure. Hchc2009 (talk) 06:31, 22 August 2016 (UTC)
- Good to know... any idea if there is an existing template to do such?
- Thanks, JeopardyTempest (talk) 09:05, 23 August 2016 (UTC)
- I'm not aware of a template (but I'm no template guru!) - I tend to use the Measuringworth site and cite it from there. Hchc2009 (talk) 09:19, 23 August 2016 (UTC)
- Would it perhaps fit as a new option to this Inflation template, or be better as a separate template do you think? If it applies to things like disasters (and large government projects?), I'd think it would be of regular usage (if people knew that it's better to use than inflation)? JeopardyTempest (talk) 21:37, 23 August 2016 (UTC)
- I'm not aware of a template (but I'm no template guru!) - I tend to use the Measuringworth site and cite it from there. Hchc2009 (talk) 09:19, 23 August 2016 (UTC)
Gauging Interest in Features
Was noticing that the template appears to lack a format for common language shortening (where for example if $750,000 is now worth $84,000,000, it would automatically display $84 million, rather than having to display the whole value, or update unit set every time it changes (or have quirky 8425 million values). It'd also turn off scientific notation issues (easy enough perhaps? just divide the exponent down after it reaches the template and send the answer back with words instead). But then I noticed the currency converter appears to have really died out as well... was there not much interest\need in the end? Only a toUSD, and it seems poorly up to date, and used on fewer than 100 pages. Been looking at template at editing some recently. But regardless whether it is me or someone else... what priorities exist in enhancements at this point? JeopardyTempest (talk) 04:04, 22 August 2016 (UTC)
- I wrap the output of the template in {{formatprice}} and precede it by the appropriate currency when dealing with large amounts. So for instance, from Interstate 275 (Michigan):
- "The final cost to build the I-275 freeway was $145 million (equivalent to $Format price error: cannot parse value "Error when using {{Inflation}}:
|index=US-NGDPPC
(parameter 1) not a recognized index." in Error: undefined index "US-NGDPPC" when using {{Inflation/year}}.[1])."
- "The final cost to build the I-275 freeway was $145 million (equivalent to $Format price error: cannot parse value "Error when using {{Inflation}}:
- using the code:
$145 million (equivalent to ${{formatprice|{{Inflation|US-NGDPPC|145000000|1977|r=-6}}}} in {{Inflation-year|US-NGDPPC}}{{Inflation-fn|US-NGDPPC}})
- For values that output in the thousands instead of the millions, I'd use something like:
$145,000 (equivalent to ${{formatnum:{{Inflation|US-NGDPPC|145000|1977|r=-3}}}} in {{Inflation-year|US-NGDPPC}}{{Inflation-fn|US-NGDPPC}})
- to output:
- "$145,000 (equivalent to $Error when using {{Inflation}}:
|index=US-NGDPPC
(parameter 1) not a recognized index. in Error: undefined index "US-NGDPPC" when using {{Inflation/year}}.[1])"
- "$145,000 (equivalent to $Error when using {{Inflation}}:
- If I didn't, the {{formatprice}} would helpfully add the word "thousands" after the base number, where we could just have it run the full figure as is usual in print. Imzadi 1979 → 05:42, 22 August 2016 (UTC)
References
- ^ a b Inflated values automatically calculated. Error: undefined index "US-NGDPPC" when using {{Inflation/fn}}
- Hot dog, that's great! And explains one of the reasons I'd stumbled across all this in the first place (wondering why
{{inflation|US-NGDPPC|13000000|1965|r=-5}} in {{inflation-year|US-NGDPPC}}{{inflation-fn|US-NGDPPC}}
was used instead of{{inflation|US-NGDPPC|13000000|1965|r=-5|fmt=eq}}
. I had overlooked the formatprice wrapping the first part and stopped reading the template documentation page at the end of the heading "Very large results" instead of carrying on to the next heading "Format price" (perhaps those should be combined and formatprice should be emphasized as the better way?). Personally still seems it'd be great to include a formatting options inside inflation itself to avoid the long string of code to do this, particularly since it seems fmt=eq has limited utility in its current form? But very glad to have the alternative to sidestep that. - Thanks a lot for the response JeopardyTempest (talk) 09:02, 23 August 2016 (UTC)
- Hot dog, that's great! And explains one of the reasons I'd stumbled across all this in the first place (wondering why
Trailing zeros with cents (using r=2)
As it stands, the template drops a trailing zero in this scenario. I argue that this is a bug and that it should be fixed. Here is an example, showing r=2 and r=3:
$2.50 in 1986 dollars is
(equivalent to $6.95 in 2023)
(equivalent to $6.949 in 2023)
--Dante Alighieri | Talk 19:51, 26 September 2016 (UTC)
- The bit of code appears to be
round {{{r|0}}}
, which calls the PHP "round" function. The round function apparently drops trailing zeroes after rounding. This is the most concise discussion I have found. It looks like access to the PHP "number_format" feature might fix this problem, but I do not see where this exists in WP. Frietjes or Mr. Stradivarius, do you know a trick to make the trailing zeroes appear? – Jonesey95 (talk) 21:15, 26 September 2016 (UTC)- Jonesey95, might want to look at template:decimals. an easy fix would be to have that template do the rounding. Frietjes (talk) 21:21, 26 September 2016 (UTC)
- after modifying the sandbox
$2.50 in 1986 dollars is
(equivalent to $6.95 in 2023)
(equivalent to $6.949 in 2023)
- no idea if the change has other side effects. Frietjes (talk) 21:28, 26 September 2016 (UTC)
- Nice work. That looks like a minor change that should not have side effects, but this template is used in 8,000 pages. Here's the difference in code between the live template and the sandbox. Does anyone here have any comments? I'll give this a day or two before promoting the sandbox code to the live template. – Jonesey95 (talk) 23:14, 26 September 2016 (UTC)
- Updated. The examples above show that it is working. – Jonesey95 (talk) 03:52, 29 September 2016 (UTC)
- Nice work. That looks like a minor change that should not have side effects, but this template is used in 8,000 pages. Here's the difference in code between the live template and the sandbox. Does anyone here have any comments? I'll give this a day or two before promoting the sandbox code to the live template. – Jonesey95 (talk) 23:14, 26 September 2016 (UTC)
- no idea if the change has other side effects. Frietjes (talk) 21:28, 26 September 2016 (UTC)
Need to update for 2016 data
I just checked the MeasuringWorth.com source for UK inflation rates (link: /ukearncpi), but that website is still limited to 2015. Any ideas where to get estimates for 2016 UK inflation, or other nations, to update Template:Inflation? -Wikid77 (talk) 14:05, 21 October 2016 (UTC)
- As far as I know, numbers for the current year are just estimates until the year is over. – Jonesey95 (talk) 17:19, 21 October 2016 (UTC)
Subtemplates of {inflation} treated 2016 inflation as 0% since 2015, but I like the idea of putting 2016 estimates (extending 2015) until official figures can be found. Currently, I've read September 2016 data as UK 0.6% and U.S. 1.5% inflation since Fall 2015:
- "UK inflation rate holds steady at 0.6% - BBC News" (bbc.co.uk)
- "Current US Inflation Rates: 2006-2016" (usinflationcalculator.com)
Other users have indicated 3rd-quarter rates are close enough for the yearly rate. So, I guess I'll start updating templates to use those multipliers for now. -Wikid77 (talk) 19:28, 21 October 2016 (UTC)
- Please don't update the US with estimates for 2016. We'll update to the actual numbers next year when they become available. For our purposes, the 2015 dataset is perfectly fine, and if anyone questions it, we can educate people that the actual inflation for 2016 can't be assessed until after the year is over. Imzadi 1979 → 20:07, 21 October 2016 (UTC)
- Wait, the inflation data for 2016 has been calculated through September 2016, and the U.S. fiscal year FY2016 has already ended at October 1, with no further changes coming. If there is still concern, I can change the template to indicate "[projected]" when showing the 2016 amount, but there is no technical reason to wait any more months. -Wikid77 (talk) 00:36, 22 October 2016 (UTC)
- Don't the economic numbers follow the calendar year, not the federal fiscal year? Remember, most states do not follow the federal government's fiscal year start and end dates; in fact only two do and 46 end theirs on June 30. Let's wait until the final numbers are released and stay away from using the projected numbers, ok? Imzadi 1979 → 05:17, 22 October 2016 (UTC)
- I note there are knock-on effects to not keeping the table uptodate - I am here after noting errors in the box office numbers for Star wars. Should those editing that table correct the error? Not sure how to correct the error. Bdushaw (talk) 17:47, 1 January 2017 (UTC)
- @Bdushaw: as it stands, the numbers are up to date as of when the series has been calculated. There's always a lag on these sorts of economic numbers. Frankly, I think you're getting ahead of yourself trying to adjust for inflation on those last few figures. Imzadi 1979 → 18:36, 1 January 2017 (UTC)
- I note there are knock-on effects to not keeping the table uptodate - I am here after noting errors in the box office numbers for Star wars. Should those editing that table correct the error? Not sure how to correct the error. Bdushaw (talk) 17:47, 1 January 2017 (UTC)
- Don't the economic numbers follow the calendar year, not the federal fiscal year? Remember, most states do not follow the federal government's fiscal year start and end dates; in fact only two do and 46 end theirs on June 30. Let's wait until the final numbers are released and stay away from using the projected numbers, ok? Imzadi 1979 → 05:17, 22 October 2016 (UTC)
- Wait, the inflation data for 2016 has been calculated through September 2016, and the U.S. fiscal year FY2016 has already ended at October 1, with no further changes coming. If there is still concern, I can change the template to indicate "[projected]" when showing the 2016 amount, but there is no technical reason to wait any more months. -Wikid77 (talk) 00:36, 22 October 2016 (UTC)
How long until 2016 UK inflation update? 50.64.119.38 (talk) 03:41, 17 October 2017 (UTC)
CPI used even for large numbers
A quick check of Special:WhatLinksHere/Template:Inflation revealed that most uses of this template use CPI-based indexes even when adjusting large numbers. This needs to be fixed, but what's the right approach? Not just technically - I imagine it could be done semi-automatically with WP:AWB or the like. Rather, what's the numeric cutoff for which index should be used? Or are there certain categories of figures that should always use one index vs. another regardless of size?--Father Goose (talk) 05:26, 24 November 2016 (UTC)
- The template is often misused, normally because the editor didn't understand its limitations. The issue is not strictly really one of size, but whether the item being compared fits into the index being used; as per the template page here, the CPI is typically fine for comparing staples, workers' rent, small service bills (doctor's costs, train tickets) over time, but not for the expenditure of the rich, governments, capital expenditure etc. Context therefore matters. But as you suggest there is, in practice, a size aspect to this: average households in the UK today don't frequently buy staple goods costing tens of thousands of pounds, for example (nor have they routinely purchased equivalent goods in historical periods).
- If I were looking for a editorial guideline to apply to prioritise the identification of problems, I might recommend starting off by identifying uses of the inflation template that produced results of, say, £10,000 plus (or equivalent US) in 2016 terms. Something coming out at that level would probably be a pretty good warning indicator that the template was being misapplied, although I'd still want an editor to check, in the context of the article, that it really had been misapplied (rather than doing so automatically etc.) Hchc2009 (talk) 07:49, 25 November 2016 (UTC)
- I might have written a few times now, it seems to me that something like movie gross, such as List_of_highest-grossing_openings_for_films, would follow CPI. That is, it is the number of tickets sold times the average ticket price. Maybe it isn't so obvious that a luxury like movie tickets scales with staples like food and rent, but it seems closer than to capital costs. (And yes, that page does use the CPI index.) I don't know why they measure in gross sales instead of number of seats, but they do. Does the price of park ranger uniforms, purchased by the government, presumably in large batches, scale by CPI or capital costs? Individual uniforms don't cost that much. Gah4 (talk) 10:13, 25 November 2016 (UTC)
- One that I have been interested in, is the prices of minicomputers. DEC called their computers Programmable Data Processors, instead of computers, as that allowed them to get through purchasing departments with rules on buying computers. Maybe not so many were bought by individuals, but some by small companies. Supercomputers were bought by governments and large corporations. One page I looked at had the total cost of raising an autistic child. That might be one million dollars over many years, but is spent one little thing at a time. Maybe we need an index for health care, which, as far as I know, doesn't follow either CPI or capital costs. Gah4 (talk) 10:13, 25 November 2016 (UTC)
- Historical comparisons of government expenditure definitely shouldn't be using the CPI; the cost of park ranger uniforms (either individually or in huge government volumes) is not something that forms part of a CPI, which is based on baskets of average households expenditure over time. Film tickets in small quantities are part of most CPIs, but whether you would wish to multiply them out in large volumes would depend on the type of comparison you wished to make; for many purposes, a variant of a GDP index would be much more appropriate. Health care is another specialist area in terms of indexes. Hchc2009 (talk) 10:51, 25 November 2016 (UTC)
- It makes sense to me to inflate something like movie grosses using CPI (even something like the recent Star Wars which grossed around a billion dollars) because it is built up out of lots of small ticket sales. If you actually compare the cost of a movie ticket and CPI there is strong correllation, so it's a good indicator of relative performance which is what the bulk of these articles are interested in. For example, the average price of a movie ticket in 1965 was $1 and last year it was roughly $8. If you adjust $1 by CPI over the same period you get $7.50, so CPI seems to be a pretty good indicator in this regard. A GDP index would be more appropriate if you wanted to show how the movie industry collectively as a whole has dropped over the years as a part of the economy, and if you wanted to assess how a particular movie studio has performed over the course of its existence perhaps GDP per capita, since its perceived success would be strongly linked to its dividend payouts. I think the main reason that the CPI index is used inappropriately is because no other indeces are available through the template, so editors simply use what is there. They take the view that CPI is better than nothing, and in most cases that would be a correct assumption, but ignores the fact that there are better options. Betty Logan (talk) 16:50, 25 November 2016 (UTC)
- The problem with "scaling up" CPI is that the larger figure is no longer meaningful. Taking the tickets themselves... I'd agree with you that, compared against a basket of average household expenditure, the $1 1965 movie ticket is worth roughly $7.50 in 2016; it means if you took that dollar in 1965 and bought other staple goods with it instead (milk, bottles of beer, a bus ticket etc.), you'd be able to buy the sorts of amounts of things you could buy for $7.50 today. The CPI index is designed to help do exactly that.
- I'll take the larger number next. If you multiplied out that $1 ticket by the $150 odd million admissions (I think!) that the 1965 Sound of Music film had in the US, you've got $150 million. Using the household CPI that's $1,200 million in 2016 terms. But $150 million was really worth a lot more than that in 1965: it made up a much larger % of the economy than $1,200 million does today. The film's producers, 20th Century Fox, could buy many more shares, companies etc., or finance more new films, with that $150 million than $1,200 million will get you today. Using a share of GDP comparison, $150 million in 1965 is really worth around $3,880 million in 2016 terms - three times as much. CPI simply isn't designed for this sort of comparison, which is why the template notes it constitutes OR.
- If you want an accessible, but academically grounded, set of essays on this problem, I'd recommend Measuring Worth. Hchc2009 (talk) 17:25, 25 November 2016 (UTC)
- Thanks for the link but I am already familiar with the economic arguments. The point about adjusting movie grosses and why CPI is better in this particular context is because in these charts it is essentially a proxy for counting movie tickets i.e. we are not esepcially interested in what the studio can do with its $150 million, but how that $150 million was accumulated. According to Box Office Mojo's ticket estimator, The Sound of Music sold 140 million tickets, while last year's Star wars movie sold 110 million tickets, so we can deduce that The Sound of Music performed 25% better, in very basic terms. You can argue that there is more competition around today, multiple viewing formats and so forth, but in basic terms substantially more people watched The Sound of Music at cinemas than The Force Awakens. If you adjust The Sound of Music's gross by CPI inflation you get $1.2 billion, about 30% more than the $936 million The Force Awakens grossed. In that sense CPI inflation is a very accurate indicator of the relative popularity of the two films. Betty Logan (talk) 17:53, 25 November 2016 (UTC)
- It makes sense to me to inflate something like movie grosses using CPI (even something like the recent Star Wars which grossed around a billion dollars) because it is built up out of lots of small ticket sales. If you actually compare the cost of a movie ticket and CPI there is strong correllation, so it's a good indicator of relative performance which is what the bulk of these articles are interested in. For example, the average price of a movie ticket in 1965 was $1 and last year it was roughly $8. If you adjust $1 by CPI over the same period you get $7.50, so CPI seems to be a pretty good indicator in this regard. A GDP index would be more appropriate if you wanted to show how the movie industry collectively as a whole has dropped over the years as a part of the economy, and if you wanted to assess how a particular movie studio has performed over the course of its existence perhaps GDP per capita, since its perceived success would be strongly linked to its dividend payouts. I think the main reason that the CPI index is used inappropriately is because no other indeces are available through the template, so editors simply use what is there. They take the view that CPI is better than nothing, and in most cases that would be a correct assumption, but ignores the fact that there are better options. Betty Logan (talk) 16:50, 25 November 2016 (UTC)
- Historical comparisons of government expenditure definitely shouldn't be using the CPI; the cost of park ranger uniforms (either individually or in huge government volumes) is not something that forms part of a CPI, which is based on baskets of average households expenditure over time. Film tickets in small quantities are part of most CPIs, but whether you would wish to multiply them out in large volumes would depend on the type of comparison you wished to make; for many purposes, a variant of a GDP index would be much more appropriate. Health care is another specialist area in terms of indexes. Hchc2009 (talk) 10:51, 25 November 2016 (UTC)
If we want to compare how many people went to see various films, I'd argue we'd be better off sticking with just stating the numbers of tickets sold. Alternatively, if you do want to use CPI for larger numbers/non-household expenses, simply cite a reliable secondary source that does use CPI as the comparison in the article concerned. Otherwise we're back into original research territory. Hchc2009 (talk) 18:07, 25 November 2016 (UTC)
- Generally I would agree admissions are a better metric but not all distributors tracked them, and even then there can be substantial variation in ticket prices so there is an argument that admissions aren't flexible enough to account for the value of the ticket. For example an adult ticket for a premium seat on opening night will cost substantially more than a children's matinee ticket at a discount theater three months into a film's run, so CPI offers a level of flexibility that hard admissions don't in comparing the "popularity" of the film. Obviously higher prices drive up box office but drive down admissions, so both metrics can tell a different story. Betty Logan (talk) 18:29, 25 November 2016 (UTC)
Tentative guideline
Thanks for your replies. Can we draw up some rules of thumb for what index to use when and add them to the doc page?
Taking a stab at a general guideline (I'll do what I can to incorporate the discussion so far):
- Costs of government programs should use NGDPPC.
- Capital/construction projects, government or otherwise: NGDPPC. If we ever add a construction-specific index, we can selectively switch to that.
- Capital valuations (large personal estates, corporate market caps, etc.): NGDPPC.
- Capital earnings: NGDPPC.
- Consumer goods should use CPI-based indexes.
- High-end luxury goods: no idea. How have yacht prices changed? How does one represent the inflation of a Picasso?
- Salaries should use CPI. But executive compensation, movie/sports stars, etc. – do these track with capital figures?
- Aggregate figures of consumer goods, such as movie grosses: unresolved. Even if the underlying inflator is consumer-based, a large sum starts to take on meaning as a "slice of the economy" (GDP). But in this specific case, the figure may simply be a proxy for "number of tickets sold". Do other sites/publications generally use a CPI-based adjustment for movie grosses? If so, we should do the same, on the principle of least surprise.
- Bulk purchases of consumer goods (such as uniforms): Unresolved. Again, large sums start to represent a slice of the economy. Furthermore, there are infamous cases of $640 toilet seats. I'm leaning NGDPPC on this one.
- Medical costs: no idea.
- Real estate: no idea. As I understand it, the CPI includes rent costs as part of its basket. A little research turns up the Case–Shiller indexes, which seem to track CPI reasonably well, unless I'm totally misreading it. So even if CPI is a fair approximation for normal housing (is it?), what's appropriate for luxury housing or commercial real estate? How many units in an MDU before it becomes more than a house?
- Are there other categories that warrant special treatment/indexes?
Comments?--Father Goose (talk) 18:16, 25 November 2016 (UTC)
- The MeasuringWorth site has some examples: [7]. I would say a luxury yacht reflects "economic status" so "per capita GDP" is advised here. Betty Logan (talk) 18:41, 25 November 2016 (UTC)
- Well, all right, I wasted a bullet with my luxury examples; yachts and Picassos are definitely not consumer items. But at what point does a car or a boat become a capital expenditure instead of a commodity? Should the figures at Dom Pérignon#Auction market be adjusted with CPI or GDP? And since I brought up Picassos, list of most expensive paintings uses CPI; in line with everything discussed so far, it sounds like this should be changed to GDP. Other publications discussing expensive paintings seem to use CPI but I suspect most of them just lifted their figures from Wikipedia (a few explicitly say as much).--Father Goose (talk) 03:23, 26 November 2016 (UTC)
- Agree with Betty - per capita GDP. Hchc2009 (talk) 08:16, 26 November 2016 (UTC)
- Consumer goods - usually CPI, particularly over shorter periods (e.g. comparing 1965 to 1975 say), but there will be circumstances where the earnings index would be better - typically longer periods (e.g. comparing 1900 and 2000). Hchc2009 (talk) 08:16, 26 November 2016 (UTC)
- Salaries - really depends on what you're trying to explain. CPI's poor for this one over any length of time, when you'd really want an average earnings or even a GDP measure. Hchc2009 (talk) 08:16, 26 November 2016 (UTC)
- Bulk purchases. Almost by definition, not a household expense. Per capita GDP would probably work best. Hchc2009 (talk) 08:16, 26 November 2016 (UTC)
- Medical costs. Small medical costs (visiting a private doctor) would form part of CPI in some countries (but not all). Larger medical costs (e.g. for a large operation, or a new piece of equipment) wouldn't be included; there are some specialist indexes, or you could fall back on per capita GDP indexes. Hchc2009 (talk) 08:16, 26 November 2016 (UTC)
- Real estate. CPI includes rent (although RPI doesn't), but not capital - i.e. it is appropriate for comparing $500/month rent, but not the $250,000 value of a condo. For the latter you'd probably be after a GDP measure. Hchc2009 (talk) 08:16, 26 November 2016 (UTC)
- As ever, may be specific exceptions why one measure is more appropriate than another, of course - it would depend on the context. Hchc2009 (talk) 08:16, 26 November 2016 (UTC)
- I am not an economist, but here is how I would think about it. Prices are set by supply and demand, by competition. If some goods compete with each other, their prices will tend to track. Consumers can decide between toys and games, or movie tickets, for their entertainment value, so I would expect them to track. As well as I know it, the salaries of CEOs aren't tracking with the salaries of ordinary workers, and as far as I know, not with government capital expenditures. You might need a different index for yachts and Picassos. I suppose government construction projects (bridges and such) might compete with large corporate construction (factories), and so might have some tendency to track. Military grade electronics tend to be more expensive than consumer electronics, because they have to meet higher standards. They aren't bought in such high volumes, and so lower economy of scale, and they do compete with other government expenses. If the park ranger uniforms are made in the same factories that make other clothes, they should compete for resources, and the prices should track. Maybe they are a little higher quality, so don't track quite the same, but maybe not so far off. In the case of many government projects, I don't really care how much it costs, but how much it costs me. That is, in taxes and such. As populations increase, there will be more people pay for a large government project. It shouldn't be surprising that government sized project prices increase along with population increases. Gah4 (talk) 08:37, 26 November 2016 (UTC)
- OK, so it seems to me that we need an index for expenses for the top 1% or 0.1% income brackets, and also for health care costs. Gah4 (talk) 08:37, 26 November 2016 (UTC)
- At the moment there are two indeces, at least for the US and UK. Guidelines always work best when they are uncomplicated. I would say that as a basic rule of thumb when you are comparing the cost of something then use the CPI for affordable costs, that is something you can afford on a typical monthly salary i.e. rent, a new laptop, a movie ticket, a loaf of bread etc. Everything else such as wages, the cost of a house, a multi-million dollar bonus, a luxury yacht etc should probably use NGDPPC (GDP per capita). Obviously there will be exceptions (such as the movie gross example above which depends on what you are actually trying to measure) but I reckon basic rule of thumb would easily cover the majority of cases. Things could become more nuanced if further indeces are added (such as a salary index) but at the moment the guideline only needs to reflect what is actually there. Betty Logan (talk) 02:26, 30 November 2016 (UTC)
- At this point I would say you've stretched this well beyond its utility. CPI and NGDPPC are only broad rough estimates across the entire country; how can you use them to compare the cost of an open-heart surgery in 1967 at NYU by an experienced surgeon with the cost of a pacemaker implantation in 1998 at Davis by a resident? How can you compare real estate price changes in Stockton, California to real estate price changes in Des Moines, Iowa, which was relatively unaffected by the recession? These are nothing more than a guide to help readers try to put old numbers into a current context, despite being impossible to do fully, so you don't have to go down a rabbit hole chasing perfection. I agree with the general idea that if it's something bought by a regular person (including medical and real estate), it's CPI, otherwise it's capital, because that's probably as close as we're going to get to a usable rule of thumb. --SilverbackNet talk 08:48, 19 February 2017 (UTC)
Template error
Look at Template:Inflation/doc. It's full of "Error when using {{Inflation}}: NaN, check parameters for non-numeric data: |end_year={{{4}}} (parameter 4) and |r={{{r}}}" messages. Can someone fix, please? Thanks. —howcheng {chat} 08:18, 29 November 2016 (UTC)
- I don't have time to check now, but I just left a message here based on a guess. Johnuniq (talk) 10:20, 29 November 2016 (UTC)
- I have the same problem... hope it gets fixed soon as it is currently breaking all instances of this template which defaults to the latest available year. Deryck C. 11:04, 29 November 2016 (UTC)
- Seems to be that any use without both end_year and r would fail, due to a change in {{isnumeric}}. I reverted the changes to {{isnumeric}} without figuring out why it was changed, and purged this page. Purge any other pages with ?action=purge appended to the URL. Gah4 (talk) 11:07, 29 November 2016 (UTC)
- This has been fixed. Od1n (talk) 02:35, 30 November 2016 (UTC)
- Seems to be that any use without both end_year and r would fail, due to a change in {{isnumeric}}. I reverted the changes to {{isnumeric}} without figuring out why it was changed, and purged this page. Purge any other pages with ?action=purge appended to the URL. Gah4 (talk) 11:07, 29 November 2016 (UTC)
Additional currencies
How would we go about adding more currencies to this template? Schwede66 22:24, 9 December 2016 (UTC)
start_year=2,016 causing template error
There is a problem with the template using the 2016 dates at List_of_highest-grossing_films_in_Canada_and_the_United_States#Not_adjusted_for_inflation:
$Error when using Error when using {{Inflation}}:
|index=
(parameter 1), |value=
(parameter 2) and |start_year=
(parameter 3) must be specified.: |start_year=2,016 (parameter 3) is greater than the latest available year (2,015) in index "US".
The problem isn't just limited at this article either and seems to be widespread across Wikipedia. Betty Logan (talk) 21:10, 2 January 2017 (UTC)
- I see you updated {{Inflation/US/dataset}}.[8] I have made the corresponding update to {{Inflation-year}}.[9] The job queue should clear out those pages in Category:Pages with errors in inflation template which were caused by US 2016. PrimeHunter (talk) 21:48, 2 January 2017 (UTC)
continuum?
In much of this page, there is a distinction between CPI based and GDP/capita based indexing. But is it really one or the other? Could it be a continuum, where one could select a number between 0 and 1, where 0 gives CPI, 1 gives GDP/capita, and values in between give an inflation rate somewhere between? This doesn't help much for things that likely have a completely unrelated index. I will guess that health care costs and rare paintings don't closely follow one of the indices so far implemented. A continuum might require some fundamental changes in the template, though. Gah4 (talk) 10:26, 21 April 2017 (UTC)
Russian roubles
If the data for Russian roubles is available it would be useful to add this, e.g. for articles like Kursk submarine disaster. Thryduulf (talk) 19:22, 12 August 2017 (UTC)
Limits to useability? Or better data points?
How far back can this template be used - reliably? There seems to be a large discrepancy a hundred years ago, where the template may say $22,700 but other sources say $96,000 for 2016.[1] The template seems to use GDP as the guideline, but also differs considerably (at $9,300) from a specific GDP-estimate at $33,000 in 2015-prices.[2] One source could be wrong, but two different sources combined seems to indicate a fundamental problem. I stumbled upon the issue here. TGCP (talk) 00:26, 8 October 2017 (UTC)
- It really depends which series you use. The "$22,000 in 2016" figure at Ford_Model_T#Price_and_production uses the consumer price index template (CPI), whereas the "$96,000 in 2016" figure does not use a template. It is probabbly derived from some GDP related measure though. These are the two figures you get using Wikipedia's two options:
- ${{Inflation|US|825|1909|r=-2|fmt=c}} inflates to $28,000 in 2023 (CPI)
- ${{Inflation|US-NGDPPC|825|1909|r=-2|fmt=c}} inflates to $Error when using {{Inflation}}:
|index=US-NGDPPC
(parameter 1) not a recognized index. in 2023 (GDP per capita)
- Obviously the further we get from the event the greater the divergence between the two measures. Which index you use purely depends on what you use it for and there is no truly correct answer here. If you are comparing the cost of the car to say the average cost of transportation (which is probably a primary factor in deciding whether to buy a car or not) then CPI is probably the correct measure, but if you want to compare its affordability to today's buyers then a wage index or GDP measure is probably a better choice. Let's put it this way, buying a car back then would hurt your wallet as much as buying a Ferrari today so the GDP per capita probably produces the more relatable figure. A dock worker can afford a car today but it would have been totally out of his price range in 1909. Betty Logan (talk) 12:15, 8 October 2017 (UTC)
References
- ^ History of American Economy. Cengage Learning. 2017-09-15. p. 377. ISBN 1337104604.
{{cite book}}
:|access-date=
requires|url=
(help); Unknown parameter|authors=
ignored (help) - ^ "Riding the Energy Transition : Oil Beyond 2040". International Monetary Fund. 2017-05-22. p. 13. Retrieved 2017-10-07.
{{cite web}}
: Unknown parameter|authors=
ignored (help)
2016 UK Inflation Available.
The 2016 numbers are available at the site the UK Inflation template uses for reference. The percent diffences between 2015 to 2016 are here.UK Inflation Change 2015 - 2016 Perhaps someone could update the template? 50.64.119.38 (talk) 04:27, 17 October 2017 (UTC)
Computers
OK, the one that I most often run into is inflation adjustment on the price of computers from the 1960's. There is currently disagreement on using US or US-GDP on one computer. But even more strange, the current state has one for the purchase price and the other for the lease price. So, which one for computer prices? Gah4 (talk) 05:16, 21 January 2018 (UTC)
- You're apparently referring to IBM 7090, which at $3 million in 1960, is most definitely not a household expense. US-GDP. Leasing should also use US-GDP; the expense is on a comparable scale, but paid in increments.--Father Goose (talk) 19:11, 21 January 2018 (UTC)
- Yes, I suspect that most who buy actually finance, so have a monthly payment similar to a lease payment. But the expense is about the same either way. I was surprised why some editors would change one and not the other. Gah4 (talk) 20:36, 21 January 2018 (UTC)
broken template
@Jonesey95 and Od1n: The inflation template was added to the USS Enterprise (CVN-65) infobox "original cost" parameter back in July 2016. Today I noticed it was showing an error message and so I've removed it for now. The history shows you two edited this template since, do either of you know what changes may have occurred to create the error? Is new formatting needed? It would be good for the article if a working template could be re-added. Thanks - theWOLFchild 15:33, 24 January 2018 (UTC)
- The errors happen with
{{Inflation-year}}
and{{Inflation-fn}}
(undefined index "US-NGDPPC"). Od1n (talk) 16:21, 24 January 2018 (UTC)- @Thewolfchild: the
US-NGDPPC
index was removed. Instead,US-GDP
should be used instead. Imzadi 1979 → 18:16, 24 January 2018 (UTC)
- @Thewolfchild: the
Thanks guys, I've got the correct template in there now. - theWOLFchild 18:36, 24 January 2018 (UTC)
- @Thewolfchild: I have a quick suggestion for you. The USS Enterprise article uses {{citation}} for its footnotes, which means it's using Citation Style 2 formatting. {{Inflation-fn}} uses {{cite web}} as a base template, so it uses Citation Style 1. If you add
|mode=cs2
to {{inflation-fn}}, it will switch to CS2 from CS1. Imzadi 1979 → 19:03, 24 January 2018 (UTC)- Imzadi1979 I appreciate the reply, but I'm not entirely familiar with these templates, or these cite formats. After playing around with it for a few minutes (and several page previews), I ended up copying the template from another article's infobox. If you think this article would benefit from some parameter change, by all means, please go ahead and switch it up. Thanks again - theWOLFchild 19:26, 24 January 2018 (UTC)
Somewhat unrelated: I have added Category:Pages with errors in inflation template as a tracking category to those two additional Inflation templates in order to turn up more instances of problems like this. Tracking categories like this have proved very helpful in fixing errors in many other templates. – Jonesey95 (talk) 04:11, 25 January 2018 (UTC)