This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 |
Recommending a "nominal GDP per capita" to be used in adjusting large capital expenditures (incl. government) seems like a folly to me: wouldn't a "real GDP per capita" be a much more relevant measure to adjust for inflation? "Per capita" portion of the measure is a useful adjustment when using GDP to compare large-scale expenditures, as it normalizes for the size of the economy in question. But using nominal GDP instead of real GDP seems to defeat the very purpose of trying to adjust the value of money for effects of inflation.
In fact, I would argue that using the GDP deflator by itself in order to adjust the value of money would achieve the right effect in this case – as it is a direct adjustment for the value of money that uses GDP-based calculations instead of CPI-based ones. (It also implicitly takes care of the "per capita" part, as it compares prices rather than volume of expenditures comprising GDP – hence no need for an extra adjustment.)
So my proposal is: whenever the distinction between consumer-relevant prices and large-scale capital expenditures is warranted, we should use CPI adjustment in the former case, and the GDP deflator adjustment in the latter.
(Pinging Fifelfoo, Father Goose, JeopardyTempest, Imzadi1979, Betty Logan, hchc2009, Gah4, SilverbackNet who, as I can see from the discussions on this page, have either introduced this measure to the template, added recommendations to the template on which measure to use and when, or participated in discussions on related topics.) cherkash ( talk) 00:31, 29 December 2017 (UTC)
Thank you for adding the GDP deflators, Father Goose – indeed an original mistake that is duly fixed now. cherkash ( talk) 01:56, 13 January 2018 (UTC)
So now for the real work. Can anyone cite a source suggesting that any form of GDP per capita measure is appropriate to use for inflation adjustments? I'm not talking about "measuring wealth", a concept without a fixed definition. I'm talking about just inflation, a concept generally understood to mean changes in prices in a national economy.
There are a few different standard ways to measure inflation (i.e., price indexes):
Of these, only the first three are typically used to "adjust for inflation" in generic contexts. The other indexes are used by economists to perform analyses, to measure subsectors of the economy, or by central banks to perform specialized adjustments. Nowhere in my research have I come across using any form of GDP per capita measure as an adjustment for inflation. ( Investopedia suggests it's useful for measuring changing standards of living, which is not the same concept as inflation.)
Given that, I think it's time to say that using NGDPPC in our inflation-adjusting template is outright incorrect, and it should be removed. The GDP deflator should be emphasized as the index to use for non-consumer expenditures. To minimize disruption, the NGDPPC option can be marked as deprecated until such time as all in-article uses of it have been removed; then the index itself should be removed from our template.-- Father Goose ( talk) 17:16, 12 January 2018 (UTC)
Ok, I've removed the references to the US-/UK-NGDPPC templates from every mainspace article the were used in. Time to remove these series from the "inflation" templates altogether now: as already discussed, they are not relevant in the context of inflation. cherkash ( talk) 22:08, 13 January 2018 (UTC)
Replying to the first comment by
Cherkash (
talk ·
contribs ·
email), suggesting a replacement of "nominal GDP per capita" for "real GDP per capita":
Actually an adjustment by "real GDP per capita" would only take into account the economic growth while ignoring any price change (inflation) during the given period of time, which would be futile and useless for any comparison. The so-called NGDPPC indexes using "nominal GDP per capita" are intended to demostrate the impact of both inflation and the enrichment of a society when comparing prices, that is, that an ammount of money that would appear as a fortune in 1900, like $5 dollars, by today's prices it will only be $123-147 dollars (whether using GDP deflator or the Consumer Price Index, respectively), which is not a lot of money, but if we use the 'nominal GDP per capita' it would be equivalent to $1,060 dollars nowadays, so this index was conceptualized to see how affordable was certain good in the past (people are typically much poorer in the past than in the present), making it not a good tool for prices comparison, but rather an expensiveness index.
179.53.111.218 (
talk) 04:05, 15 February 2018 (UTC)
There is an RfC at Talk:Manchester Martyrs regarding the use of this template in a case where there is a very wide range of possible current values of a sum of money. Any input would be appreciated. Scolaire ( talk) 12:45, 1 April 2018 (UTC)
Now resolved. The gist of the discussion was that, for a reward of £300 offered in 1867, the CPI – the value of a basket of goods – is not a good measure of its worth in 2016, and that, instead of the template, there ought to be an expression of its value in terms of average annual wages at the time (in this case, £300 ≈ seven years wages), still citing MeasuringWorth. I wonder if it would be worth adding a note to Template:Inflation/doc, drawing attention to the fact that there are cases where neither this template nor the US-GDP or UK-GDP indexes should be used? Scolaire ( talk) 18:53, 1 April 2018 (UTC)
Please add the following to this template to add Category:Inflation calculation templates to all transclusions in Template namespace:
{{#ifeq:{{NAMESPACE}}|Template|[[Category:Inflation calculation templates]]}}
.
Thank you. Daask ( talk) 19:52, 11 April 2018 (UTC)
In an attempt to update Australia's CPI, I spent a half-hour going through the Australian Bureau of Statistics however I could only find the quarterly rate. I then went to this page from the web site Measuring Worth [ [1]], which gave me this; 2009 92.90 2010 95.80 2011 99.20 2012 100.40 2013 102.80 2014 105.90 2015 107.50 2016 108.60 2017 110.70 If there are no objections, I will use these figures to update Australia's inflation rate into this decade. I will, of course include M.W.s source for my refs. Keith 07:31, 22 April 2018 (UTC) — Preceding unsigned comment added by Keith o ( talk • contribs)
I think that use of the "equivalent" word is misleading, it should be something more approximate (about/around or similar). — Preceding unsigned comment added by 89.25.210.104 ( talk) 16:53, 22 April 2018 (UTC)
I encountered this sentence on Personal Memoirs of Ulysses S. Grant: "They sold 350,000 two-volume sets at prices from $3.50 to $12, depending on the binding." I used the solution of "roughly ${{Inflation|US|3.5|1885|r=-1}} to ${{Inflation|US|12|1885|r=-1}} in {{Inflation-year|US}}" which works well enough, but I'd be interested in seeing a dedicated feature analogous to the way {{ Convert}} handles value ranges: "{{convert|30|-|40|cm|in}}" = "30–40 centimetres (12–16 in)".- Ich ( talk) 11:34, 7 August 2018 (UTC)
I'd like to have a flag so that the "current" year of the worth of the money is displayed. For example: "$100 ($160 adjusted for inflation as of 2017)" with 2017 being the year the template for USD was last updated WhisperToMe ( talk) 22:08, 13 October 2018 (UTC)
|fmt=eq
or manually by {{
Inflation/year}}
. --
89.25.210.104 (
talk) 23:11, 6 November 2018 (UTC)What about Euro version using Harmonised Index of Consumer Prices? Several datasets are available, Eurostat (Euro area, annual data, 2015=100, 1996-) or ECB (Euro area, annual frequency, 1997-) make the most sense for me.-- Jklamo ( talk) 09:41, 26 November 2018 (UTC)
I have updated the 2017 figure, but not added the new 2018 figure. All the best:
Rich
Farmbrough, 15:36, 4 December 2018 (UTC).
@ Rich Farmbrough: - $1,000m (1,000x1,000,000 to represent a billion) has been deprecated, and instead $1.000B is to be used. Can you please update the template? Thanks - wolf 03:42, 6 December 2018 (UTC)
Some discussion on Twitter about this template's use of RPI. Per the Office for National Statistics: "The course on which ONS has embarked has therefore been ... discouraging the use of RPI, while recognising the legacy needs ... RPI does not have the potential to become a good measure of inflation." [2]
Has anyone been working towards making UK CPI or CPIH available with this template? TSP ( talk) 12:59, 17 December 2018 (UTC)
When parameter start_year > 2017 is passed to "Inflation", an error is returned:
"formatnum:{{Inflation|US|700059566|2018}}: yields: "$Error when using {{Inflation}}: |start_year=2,018 (parameter 3) is greater than the latest available year (2,017) in index "US". "
Wapiti ( talk) 19:02, 1 January 2019 (UTC)
Must be a year available in the chosen inflation index. As an exception to this, if the current year is specified and no end_year is specified, the template will output value unchanged, as it can be assumed an inflation of zero.. MarMi wiki ( talk) 23:51, 16 January 2019 (UTC)
The first example in the "Format price" section is marked as good but produces a NaN result. I was unable to determine the cause. Once that's fixed, usage on this article is producing a NaN result and also appears to be violating your guidelines. DBN ( talk) 06:10, 18 March 2019 (UTC)
{{
Inflation|US|400000000|1974}}
gives 2471000000 so the NaN comes from {{
Formatprice}}
Gah4 (
talk) 08:32, 18 March 2019 (UTC)
{{
Formatprice}}
handle scientific notation in the form 2.032×109, though? I thought it had to look like: 2.032E9. Anyway, I don't see any recent changes in the histories of either template. Was there a MediaWiki upgrade or something? (Btw, it seems like quite a few articles are probably broken;
Macy's, Inc. has quite a few NaNs, which is what brought me here.) —
BorgHunter (
talk) 12:42, 18 March 2019 (UTC){{
Decimals}}
to {{
Rnd}}
to undo that until a solution can be found for this use case. —
BorgHunter (
talk) 14:24, 18 March 2019 (UTC)This
edit request to
Template:Inflation/UK/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can someone add the data for 2017 and 2018? I'm getting 121.869 and 125.939, respectively, from the source in the template documentation. Also, according to the comment at the bottom of this template, Template:Inflation-fn and Template:Inflation-year will need to be updated too. Daß Wölf 23:30, 26 January 2019 (UTC)
This
edit request to
Template:Inflation/UK/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace
[[Category:Data templates|United Kingdom inflation]]
with the more specific
[[Category:United Kingdom data templates]]
TerraCyprus ( talk) 18:06, 9 June 2019 (UTC)
I was adding some Japanese prices in an article and noticed the end year maximum is 2013. I checked the reference and it has current data. Template:Inflation/JP/dataset also has data up to the current date too but I'm not 100% sure if all that's needed is an update to the max end year or if there's some more complicated workings I'm unaware of but I thought I'd mention it. CrimsonFox talk 08:23, 9 July 2019 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Request to move {{ Inflation/US/dataset}} from Category:Data templates to more specific Category:United States data templates. TerraCyprus ( talk) 15:31, 12 August 2019 (UTC)
Sometimes I want to use it at the beginning of a sentence. deisenbe ( talk) 14:31, 14 August 2019 (UTC)
{{Inflation|US|1|2017|2018|r=1}}
expected result 1.0, actual result 1. When r=2, the result is 1.02 as expected. --
Traal (
talk) 21:11, 21 October 2019 (UTC)
precision_format
outputs a string. See
Template talk:Format price. –
Jonesey95 (
talk) 20:58, 22 October 2019 (UTC)I just imported
Template:Inflation/FR/dataset from
fr:Modèle:Inflation/FR/table de données, if anyone wants to check my work. Trying to get historical inflation for the franc set up. (not
watching, please {{
ping}}
)
czar 19:20, 27 December 2019 (UTC)
This
edit request to
Template:Inflation/US/dataset,
Template:Inflation/fn and
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Step 1
At {{ Inflation/US/dataset}} please replace this:
| 2018 |#default = 752.9
With this:
| 2018 = 754.6
| 2019 |#default = 768.3
This is just the annual update for the template. The new information comes from https://www.minneapolisfed.org/about-us/monetary-policy/inflation-calculator/consumer-price-index-1800-
Step 2
Once the dataset has been updated the source also need to be updated. At {{
Inflation/fn}}, in the | US =
line please update the date to January 1, 2020. There are two instances of the date that need to be updated, representing the two date formats.
Step 3
The final step updates the most recent year. At {{ Inflation/year}} you need to replace this line:
| US|USD = 2018
with this:
| US|USD = 2019
If you complete the updates successfully then the errors that can be found at aticles such as List of highest-grossing films in the United States and Canada should disappear. Best wishes. Betty Logan ( talk) 11:20, 1 January 2020 (UTC)
This
edit request to
Template:Inflation/UK/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Similarly UK data for 2019 available from the URL given.
Step 1
At {{ Inflation/UK/dataset}} please replace this:
| 2018|#default = 125.939
needs changing to
| 2018 = 125.939
| 2019|#default = 129.159
Step 2
Once the dataset has been updated the source also need to be updated. At {{
Inflation/fn}}, in the | UK =
line please update the date to February 2, 2020. There are two instances of the date that need to be updated, representing the two date formats.
Step 3
The final step updates the most recent year. At {{ Inflation/year}} you need to replace this line:
| UK|GBP = 2018
with this:
| UK|GBP = 2019
-- David Biddulph ( talk) 19:17, 2 February 2020 (UTC)
See also: Template talk:US$#This needs a rewrite to reduce template expansion depth.
This template uses over 20 of the 40 levels of "expansion depth" allowed by MediaWiki software described at meta:Help:Expansion depth. Pages that go over the limit wind up in Category:Pages where expansion depth is exceeded.
At least one template, {{
US$}}, uses 33 of the 40 levels when it is used with the |year=
parameter to calculate inflation, which doesn't leave much headroom for templates that call US$.
One good solution would be to turn this template into a module. Anyone up for the task? davidwr/( talk)/( contribs) 22:52, 13 February 2020 (UTC)
There appears to be GDP deflator statistics for 2019 (used in US-GDP). Can someone more familiar with the template give an update? Thanks-- Therapyisgood ( talk) 01:38, 10 June 2020 (UTC)
Hello
I found this template by accident while trying to fix a sourced current value for a 19th century cash amount. It is certainly a useful template; can I suggest you add a link to it, so that readers might know where the estimate comes from, and that editors won't otherwise spend time tracking the information down/trying to fix it per RS/VERIFY? In the meantime I’ve done
this to provide some verification.
Swanny18 (
talk) 22:39, 12 June 2020 (UTC)
Using this template for $25 and $50 respectively (and all other values being the same) yields:
$25 equivalent to $900 in 2023
$50 equivalent to $1,800 in 2023
Since 2 x $25 = $50, one would naturally assume that doubling the amount in the $25 template to $50 would produce a template output of $1,600 yet what we are seeing is instead $1,500, off by $100 or approximately 7%. -- That man from Nantucket ( talk) 08:59, 1 May 2020 (UTC)
|r=-2
asking it to round to the nearest $100. If you change the rounding parameter you will see a different precision, such as:I used this template for British pounds and it surprised me that I have to put the currency symbol if I'm not using US dollars. Doesn't the GBP
index know which currency (and therefore symbol) it's expecting as input, and therefore producing as output? I thought it might do automatic currency conversion so that I could specify cursign=$
and have the resulting GBP converted to USD but it's just to change what's displayed.
Anyway, it would be nice if I could just do \{\{Inflation|GBP|1.5|2000|2019|fmt=eq}}
and have it work as expected.
Akeosnhaoe (
talk) 20:36, 1 August 2020 (UTC)
r=-3
to prevent false precision?Too often I find {{ inflation}} abused in a way that reports numbers with false precision, like here: "... signed him to a contract worth $15,000 ( USD, $22,041.4 today)." Even ignoring the fact that here $15,000 is probably rounded already, the implied precision (down to cents!) of the adjusted number is clearly absurd. Since this is a frequent occurrence, I suggest we change the default precision of this template accordingly. -- bender235 ( talk) 20:16, 1 April 2020 (UTC)
Hiya to add to the sources discussion above, I have been happily using this template, it's super useful (for example at List of heists in the United Kingdom) so thanks to all the creators for their hard work!! Recently, someone added a reference for the figures here which doesn't give the same info as the template (1,120,000 vs 1,526,611.85) and today there's this citation needed tag added. So I came here to ask if the template should be referenced. I suppose best practice says yes,and if that is the case should it then be added automatically? I'll be adding {{ inflation-fn}} from now on, including those pages I've mentioned, cheers! Mujinga ( talk) 11:02, 5 August 2020 (UTC)
Would it be possible to allow units to be entered in the value, which would be copied to the output? Most of the numbers I deal with are of the form "1.2 billion", which has to be manually recreated using two templates. It would be much easier if I could |US|12. billion|1978, and I think that would help the readability of the source as well.. Maury Markowitz ( talk) 12:29, 16 July 2020 (UTC)
|index=US
(parameter 1) not a recognized index.{{Format price}}
confuses things by adding on cents.)
Gah4 (
talk) 20:27, 30 October 2020 (UTC)
The inflation data for France has been already added. The other templates need to be updated. Trigenibinion ( talk) 17:15, 10 December 2020 (UTC)
I happened to look at the error category and see the article Maung Weik.
The full message is Error when using {{Inflation}}: NaN/calculation error please notify Template talk:Inflation..
I see that the issue was introduced to that article with what is currently the most recent edit, Special:Diff/960240485, which reveals that that this template is actually being called from {{ US$}}, so the above discussion Template talk:Inflation/Archive 2#This should be a module to reduce expansion depth might be relevant. A purge of that article changed nothing. That's all I have investigated. -- SoledadKabocha ( talk) 02:34, 16 August 2020 (UTC)
|round=
. I didn't read the documentation to find out why it worked, but it seems to have worked. The error message was not particularly helpful. –
Jonesey95 (
talk) 06:35, 16 August 2020 (UTC)This template runs too deep. I see a commented out workaround in the source code. Trigenibinion ( talk) 23:33, 16 January 2021 (UTC)
Inflation-year is wrong and German wikipedia has data to 2019. Trigenibinion ( talk) 19:21, 13 December 2020 (UTC)
German wikipedia has this. Trigenibinion ( talk) 02:45, 19 January 2021 (UTC)
The USD inflation year is still 2019; how do we update it? {{u| Sdkb}} talk 07:54, 8 March 2021 (UTC)
This
edit request to
Template:Inflation/US/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Paste above 1800 data on Template:Inflation/US/dataset, sources in invisible comment. |1634=66.5 |1636=118.75 |1637=102.25 |1638=53.75 |1639=88 |1640=76.25 |1641=76.25 |1642=77 |1643=111.25 |1644=80 |1645=70.5 |1646=43.5 |1647=33 |1648=58.25 |1649=85.5 |1650=45.25 |1651=60.5 |1652=47.75 |1653=62 |1654=62.25 |1655=5.25 |1656=58.75 |1657=48 |1658=30.75 |1659=34.5 |1660=39.75 |1661=33.5 |1662=36.25 |1663=36.25 |1664=36.25 |1665=31 |1666=31 |1667=33.5 |1668=34.5 |1669=32.25 |1670=31.5 |1671=32.25 |1672=32 |1673=30.5 |1674=32.75 |1675=30.5 |1676=30.75 |1677=30.75 |1678=30.25 |1679=30 |1680=34.5 |1681=35.25 |1682=28.75 |1683=28.75 |1684=28.75 |1685=31 |1686=29.25 |1687=28.75 |1688=26.5 |1689=27.25 |1690=27.75 |1691=28.5 |1692=27.75 |1693=25.75 |1694=27.5 |1695=25.25 |1696=30 |1697=29 |1698=27.75 |1699=30.25 |1700=43.9072 |1701=47.6225 |1702=45.9337 |1703=39.8543 |1704=36.476 |1705=35.1258 |1706=37.4900 |1707=40.1920 |1708=42.5562 |1709=39.1788 |1710=33.7748 |1711=35.4635 |1712=40.1920 |1713=43.2317 |1714=43.2317 |1715=29.7218 |1716=24.317 |1717=25.6688 |1718=29.7218 |1719=31.0728 |1720=25.6688 |1721=23.9801 |1722=25.3311 |1723=25.6688 |1724=27.0198 |1725=32.0860 |1726=31.0728 |1727=29.0463 |1728=27.3576 |1729=27.0198 |1730=27.0198 |1731=23.9801 |1732=22.6291 |1733=22.2913 |1734=22.6291 |1735=22.9668 |1736=21.953 |1737=22.2913 |1738=23.9801 |1739=21.2781 |1740=22.2913 |1741=30.7350 |1742=27.3576 |1743=23.9801 |1744=22.2913 |1745=21.6158 |1746=21.953 |1747=23.9801 |1748=27.6953 |1749=28.3708 |1750=28.3708 |1751=28.7086 |1752=29.3841 |1753=28.3708 |1754=27.3576 |1755=26.682 |1756=26.0066 |1757=27.3576 |1758=29.3841 |1759=33.4370 |1760=32.4238 |1761=30.3973 |1762=32.0860 |1763=32.0860 |1764=29.7218 |1765=30.0596 |1766=33.0993 |1767=32.0860 |1768=30.3973 |1769=31.4105 |1770=33.7748 |1771=32.4238 |1772=36.8145 |1773=34.1125 |1774=32.7615 |1775=31.0728 |1776=35.4635 |1777=43.2317 |1778=56.0662 |1779=49.6490 |1780=55.728 |1781=44.9205 |1782=49.3112 |1783=43.2317 |1784=41.5430 |1785=39.5165 |1786=38.5033 |1787=37.8278 |1788=36.1390 |1789=35.8013 |1790=37.1523 |1791=38.1655 |1792=38.841 |1793=40.1920 |1794=44.5827 |1795=51 |1796=53.7019 |1797=51.6754 |1798=49.9867 |1799=49.9867 Zoozaz1 talk 14:09, 17 May 2021 (UTC)
It would be important to get the data. Many ships are built there. China and Russia too, but prices are missing. Trigenibinion ( talk) 00:44, 30 December 2020 (UTC)
This
edit request to
Template:Inflation/US/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The US Inflation template data needs to be updated to 2020. This requires editing 3 pages. The source showing the 2020 data can be found here.
1. Template:Inflation/US/dataset requires a change from
| 2019 |#default = 768.3
to
| 2019 = 768.3
| 2020 |#default = 777.7
2. Template:Inflation/year requires a change from
| US|USD = 2019
to
| US|USD = 2020
3.
Template:Inflation/fn requires the current date be updated in two places on the line that starts with | US =
.
Thank you. Curious Eric 01:31, 21 May 2021 (UTC)
| US =
the date "May 1, 2021" should be "May 21, 2021" to match the DMY date. Thanks.
Curious
Eric 14:26, 21 May 2021 (UTC)
Template:Inflation#Currency_conversion is wrong - right now the {{
Inflation/DE}}
do converts (or
redenominates) marks to euro (see year 2002 in DE template).
MarMi wiki (
talk) 16:33, 8 June 2021 (UTC)
It doesn't have to be c, any value set (other than raw
of course), even empty, will add the comma(s), because of the condition at formatnum:
|{{#ifeq:{{{fmt|raw}}}|raw|R|}}
MarMi wiki (
talk) 14:00, 10 June 2021 (UTC)
Year 1635 is missing (or the starting year [1634] is incorrect). MarMi wiki ( talk) 15:46, 2 July 2021 (UTC)
121 / (151/51 = 2.96078431372549) = 40.86754966887417
, instead of 30.25
(which is 121/4
for some reason)?
MarMi wiki (
talk) 19:11, 2 July 2021 (UTC)
(121/100) * 25
, likely confusing 1850 for 1860, but what I would have done is (121/100) * 27 = 32.67
. I'm not sure where you got that equation.
Zoozaz1
talk 21:16, 2 July 2021 (UTC)
(130/100) * 27
(I'm assuming the 100 is from 1800 column 6 in McCusker, and 1860=27 is from minneapolisfed) equals 35.1
instead of 43.9072
("my" method: 130/(151/51) [or 130*(51/151)] = 43.90728476821192
[1700=130 and 1800=151 from McCusker, 1800=51 from minneapolisfed]).
MarMi wiki (
talk) 23:00, 3 July 2021 (UTC)
1800 number / 1860 number = 1.51
, while for the fed it's 1.89
. Therefore the Fed number/McCuscker number
should be greater at the 1800 number than the 1860 number. The equation I used in a different form is 130 * (27/100)
(with 27 being the fed number and 100 McCusker's number); the difference between our methods is because 51/151>27/100
, 51/151 being the 1800 relationship and 27/100 being the 1860 relationship.This
edit request to
Template:Inflation/US/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Replace 1634 to 1699 data with:
|1634=89.84088 |1635=0 |1636=160.4301 |1637=138.1388 |1638=72.61575 |1639=118.8871 |1640=103.0130 |1641=69.23827 |1642=104.0262 |1643=150.2977 |1644=108.0792 |1645=95.24484 |1646=58.76809 |1647=44.58269 |1648=78.69521 |1649=115.5097 |1650=61.13233 |1651=81.73494 |1652=64.50980 |1653=83.76142 |1654=84.09917 |1655=81.39719 |1656=79.37070 |1657=64.84755 |1658=41.54296 |1659=46.94692 |1660=54.03963 |1661=45.25819 |1662=48.97341 |1663=48.97341 |1664=48.97341 |1665=42.21846 |1666=42.21846 |1667=45.25819 |1668=46.94692 |1669=43.56945 |1670=42.89395 |1671=43.56945 |1672=43.23170 |1673=41.20521 |1674=44.58269 |1675=41.20521 |1676=41.54296 |1677=41.54296 |1678=40.86747 |1679=40.52972 |1680=46.60918 |1681=47.62242 |1682=38.84098 |1683=38.84098 |1684=38.84098 |1685=42.21846 |1686=39.51648 |1687=39.17873 |1688=35.80125 |1689=37.15224 |1690=37.48999 |1691=38.50323 |1692=37.48999 |1693=35.12576 |1694=37.15224 |1695=34.45026 |1696=40.52972 |1697=39.17873 |1698=37.48999 |1699=40.86747
The numbers should be easier to copy and paste in source mode. Zoozaz1 talk 01:30, 5 July 2021 (UTC)
Related - Template:Inflation/fn|PL:
Does the OECD data (starts at ~1989 in Inflation 1800-2000) is used in the dataset? Mitchell: I may be wrong, buy most likely the only one of his sources that has data for Poland is probably Europe 1750-1993.
Ref for convenience: 1914 to 2007: 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
Template:Inflation/PL/dataset:
Missing years - 1940-1944 and 1915-1919, would be good to set them to 0.
1848/9 - it seems that from 1949 there's another index used (or some other calculation is applied), can you (Zoozaz1, or someone else) explain to me how 1949 (8139.90909090909) was calculated? (I can't see formulas in the source, only color codes [4], if it has any meaning.)
Reference:
1948=7786
1949=8139.90909090909 MarMi wiki ( talk) 19:15, 19 July 2021 (UTC)
Is the Inflation/CH referencing the wrong dataset? I could well be missing something but it seems to using the Inflation/IN/dataset rather than the CH one. Jc5732 ( talk) 12:25, 21 August 2021 (UTC)
I'm writing this after noticing the following output of the Inflation template, in the article Margaret Brown:
"[Brown] also received a $700 monthly allowance (equivalent to $20,163 in 2020) to continue her travels and social work."
The problem here is that $20,163 is being reported to 5 significant digits, far beyond the precision of the calculation.
Inflation calculations are always approximate, because many very varied price histories are combined to obtain a useful average. In this case the starting figure is $700 in 1909. That probably represents only 2 significant digits. Then the amount reported should be rounded to the nearest $100, for a result in this case of $20,200 in 2020.
My point, then, is that the Inflation template should only report 2 or possibly 3 digits of precision. Dratman ( talk) 23:05, 28 September 2021 (UTC)
This
edit request to
Template:Inflation/US/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
2021 data for the US is now available and the dataset and related parts of the template may now be updated. 2600:6C64:507F:E6E1:C8CE:2644:2AE1:1025 ( talk) 17:58, 16 April 2022 (UTC)
Hello, I seem to be having some trouble using the NZ index. @ Zoozaz1 and I have updated the data on {{ Inflation/NZ/dataset}}, and the {{ Inflation/fn}} and {{ Inflation/year}} have been updated correctly (thanks @ Paine Ellsworth), but it seems to generate "NaN" errors when I try and use it. I have some tests on my sandbox page, and I started a topic on Template talk:Inflation/NZ/dataset before realising I should bring it up here. Any help greatly appreciated! Cheers — Jon ( talk) 03:27, 20 May 2022 (UTC)
This
edit request to
Template:Inflation/UK/dataset,
Template:Inflation/year and
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
This is a request to update the UK dataset to 2020. The 2020 value is obtained with Initial Year 2010 and Ending Year 2020 at The Annual RPI and Average Earnings for Britain, 1209 to Present (New Series).
1. In Template:Inflation/UK/dataset:
Before:
| 2019 | #default= 129.159
After:
| 2019 = 129.159 | 2020 | #default= 131.082
2. In Template:Inflation/year:
| UK|GBP = 2019
| UK|GBP = 2020
3. In Template:Inflation/fn:
| UK =
should be updated.Thank you very much. ネイ ( talk) 10:48, 2 December 2021 (UTC)
| 2020 | #default= 131.082
| 2020 = 131.082 | 2021 | #default= 136.404
| UK|GBP = 2020
| UK|GBP = 2021
| UK =
should be updated.It seems that when using non-named parameters (numbered arguments) for the index and amount, the template is whitespace sensitive (it shouldn't be? Update: or at least, other templates seem to handle it; I got a bit lost reading
this and
this). It's could be underlying Lua code, but I can't tell from here. e.g. {{inflation|NZ|100000| start_year=1970 | fmt=eq | r=-4}}
works, but not {{inflation | NZ | 100000 | start_year=1970 | fmt=eq | r=-4}}
(note the spaces around the NZ and 100000). Respectively: "equivalent to $1,670,000 in 2021" and "Error when using {{
Inflation}}: |index= NZ
(parameter 1) not a recognized index.". —
Jon (
talk) 23:33, 22 May 2022 (UTC)
|index= NZ
), but not positional ones like in your example above. Nothing in this template uses Lua, but if it did stripping off the whitespace would be trivial. As it is, given the number of times that the index is used, stripping whitespace from each instance would be very inefficient. --
Ahecht (
TALKIs there a bot that is searching for articles that don't use the inflation template but could/should be? Are there discussions on why we shouldn't do this? Can we at least create a bot which finds these articles and then recommends them to editors automatically? If its a matter of creating said bot I would gladly help. MrSirGuyFriendBuddyOlPal ( talk) 00:09, 3 August 2022 (UTC)
This
edit request to
Template:Inflation has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can the test for start_year being greater than end_year be removed? Right now I'm getting Error when using Inflation: start_year=2022 (parameter 3) is greater than end_year=2015 (parameter 4).
It would allow for use of the template in reverse calculations, like in the Minimum wage in Germany (values in 2015 euros). Tracerneo ( talk) 07:46, 5 August 2022 (UTC)
This template is not usable for euros. Is there another that allows us to convert historical euros (e.g., 2013) to their present value (or whatever latest year for which there is data)? Thanks! — Spike Toronto 09:39, 16 October 2022 (UTC)
I am going to document my work process here, in case I am doing it wrong.
There is no conversion factor in this template for euros! So I will make one.
As far as I can tell, it would be pretty simple: create Template:Inflation/EU and then create Template:Inflation/EU/dataset to populate it.
My buddy who knows quite a lot about economics tells me that you can get CSV tables from FRED that document CPI inflation for euros here: https://fred.stlouisfed.org/graph/fredgraph.csv?bgcolor=%23e1e9f0&chart_type=line&drp=0&fo=open%20sans&graph_bgcolor=%23ffffff&height=450&mode=fred&recession_bars=off&txtcolor=%23444444&ts=12&tts=12&width=1168&nt=0&thu=0&trc=0&show_legend=yes&show_axis_titles=yes&show_tooltip=yes&id=CPHPTT01EZM659N&scale=left&cosd=1997-01-01&coed=2022-09-01&line_color=%234572a7&link_values=false&line_style=solid&mark_type=none&mw=3&lw=2&ost=-99999&oet=99999&mma=0&fml=a&fq=Monthly&fam=avg&fgst=lin&fgsnd=2020-02-01&line_index=1&transformation=lin&vintage_date=2022-12-14&revision_date=2022-12-14&nd=1997-01-01
Am I missing out on something significant? jp× g 23:14, 14 December 2022 (UTC)
Let's say we have 50,000 francs in the year 1830 -- I want to know what is going on when I type the following.
Francs were converted to Euros at 1 euro for 6.55957 FRF on 31 December 1998 -- is it giving Euros in 2022, or francs in 1998? Or something else? jp× g 10:55, 14 December 2022 (UTC)
I'm trying to show an equivalent amount for a pre-decimal penny from 1830, and showing the equation {{Inflation|UK|{{Pounds, shillings, and pence|d=1}}|1830|fmt=eq|cursign=£}} gives "equivalent to £0 in 2023", which isn't much of a help! Has anyone got a way to show this - even if it ends up showing a fraction of a modern amount? Thanks - SchroCat ( talk) 17:28, 21 February 2023 (UTC)
Probably because of housecleaning at the Minneapolis Federal Reserve bank web site, the US template includes a dead link. The link that works is here, but I don't know how to fix templates. If you know how to fix this one, please do. Finetooth ( talk) 16:19, 25 February 2009 (UTC)
I'd like propose a change to this template to either remove the final period from the footnote produced or to at least make it optional by adding a "postscript" parameter as in {{ citation}}. -- Malleus Fatuorum 20:12, 4 February 2010 (UTC)
Is there an equivalent of this without the ref tags? If I'm putting the {{ inflation}} info itself in a footnote, I don't want another footnote linked to from within that, I just want the whole lot inline. Does that make sense? Pseudomonas( talk) 09:58, 17 October 2009 (UTC)
The current template produces a footnote of "Federal Reserve Bank of Minneapolis. Retrieved December 7, 2010" Is there any way of producing one that could produce one as "Federal Reserve Bank of Minneapolis. Retrieved 7 December 2010"? (Or is there a version that does that already?) I've had comments from reviewers of articles who want to see all the dates in the same format if possible. Cheers. - SchroCat ( ^ • @) 17:52, 5 October 2011 (UTC)
|df=yes
--
Redrose64 (
talk) 19:14, 5 October 2011 (UTC)
The docs say "When no country parameter is provided, or when an invalid country is provided, the generated footnote is a generic one:" but the examples, {{Inflation-fn}} and {{Inflation-fn|xyz}}, do not seem to be generating anything at all. — mjb ( talk) 22:06, 9 April 2011 (UTC)
At it currently stands that footnote generated by this template reads "Consumer Price Index (estimate) 1800–2008." I note, however, that the page title reads "CONSUMER PRICE INDEX (ESTIMATE) 1800-" Could the template be adjusted to show the correct title, i.e. to remove the 2008 date? Cheers - SchroCat ( ^ • @) 07:56, 9 October 2011 (UTC)
Some of the references specify that the values are generated automatically and some don't. I think it's important to include that the values are generated automatically and what the source/methodology is. How can I have it automatically include that info? Emschorsch ( talk) 03:30, 26 March 2016 (UTC)
I've noticed that the "Retrieved by" dates are not showing in footnotes, although I seem to remember that is always uaws to. Was there a decision to stop showing the date, or is this an error? Cheers - SchroCat ( talk) 12:55, 13 June 2016 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I'd like to add |UK-CAP after |UKNGDPPC and |US-CAP after |US-NGDPPC, as aliases. These are much easier for editors to remember, and the template redirects are already set up for them. Documentation and preferred use can be worked out after they're proven to work. SilverbackNet talk 03:10, 11 April 2017 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I request that the UK inflation index be updated to the 2016 value. According to The Annual RPI and Average Earnings for Britain, 1209 to 2016 (New Series), starting with £100 in the year 2010, that value will be £117.665 in 2016. So I have 3 requests.
Thank you for your time. 50.64.119.38 ( talk) 16:10, 5 November 2017 (UTC)
The Federal Reserve Bank of Minneapolis Community Development Project link referenced by the template for U.S. dollar CPI calulations is no longer available and gives a 404 page. Something new is needed, since an archived link is pointless for a page that performs a calculation. — Marcus( talk) 18:16, 31 December 2017 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please can somebody update the index for the US entry to 2017?
i.e. Replace {{Inflation-year|US}} = 2016
with {{Inflation-year|US}} = 2017
We are getting a multitude of errors at articles such as List_of_highest-grossing_films_in_Canada_and_the_United_States#Not_adjusted_for_inflation now that the year has progressed to 2018. I have updated the dataset but currently the 2017 entry is out of bounds until we update the year here. Best regards. Betty Logan ( talk) 11:45, 2 January 2018 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the Inflation year of India to 2017. TIA! :) Anirudh Emani ( talk) 20:44, 6 January 2018 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please make US-CAP and UK-CAP aliases for US-GDP and UK-GDP respectively. The previous series (US-/UK-NGDPPC) were introduced in error – and this has been fixed now (see Template talk:Inflation). cherkash ( talk) 04:05, 13 January 2018 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Time to remove the UK-NGDPPC and US-NGDPPC lines altogether now (all the references to them in other articles are fixed now: See Template talk:Inflation for details). Imzadi1979, will you do the honors? cherkash ( talk) 22:27, 13 January 2018 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can an administrator please update inflation data year for
India (IN) to 2017. As per this
reference. I have already updated dataset on
Template:Inflation/IN/dataset, and thereby, for
Template: INRConvert. Also, I have updated the reference on
Template:Inflation-fn.
Regards,
SshibumXZ (
Talk) (
Contributions). 13:04, 24 January 2018 (UTC)
This template really needs support for more use scenarios, such as shortened footnotes and nested footnotes. The current use case pretty much only works for the scenario where you have the full citation inline in the article text.
To do this there are two variables that need to be controllable: whether the output is wrapped in ref
-tags, and whether and what |ref=
parameter is passed to the underlying citation template. There also needs to be consistency on whether the output is a citation or an explanatory note. Compare:
References
(there is also some weird extra HTML wrapped around the US output for some reason).
I would propose something along the lines of moving most of the logic and citation data into a Lua module (handling logic in template syntax is… challenging), with the citation data in configuration tables, and turning the template into a thin wrapper. The output could then vary based on {{
inflation-fn|US|mode=shortened}}
(short author—date ref, linked to same ID generated by |mode=full
), {{
inflation-fn|US|mode=full}}
(full cite without ref
tags, generates same ID as |mode=shortened
), {{
inflation-fn|US|mode=inline}}
(default, what it does today), and maybe {{
inflation-fn|US|mode=nested}}
(if that is still necessary).
The cost and downsides would be having to write the Lua module in the first place, having to maintain the citation data there (instead of the template), and maintaining a more complex system.
Thoughts? Opinions? -- Xover ( talk) 07:04, 28 December 2017 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can add to inflation data year for South Korea (KRW) to 2017? -- The Snail is Reading a Book (Discuss with User) 11:46, 13 April 2018 (UTC)
This
edit request to
Template:Inflation-fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
{{Inflation-fn}}'s KRW references > {{#tag:ref|Statistics Korea(Index.go.kr)'s inflation [http://www.index.go.kr/potal/stts/idxMain/selectPoSttsIdxSearch.do?idx_cd=2909 Chart]. Checked 2018/4/3 |name="inflation-KRW"|group={{{group|}}}}} -- The Snail is Reading a Book (Discuss with User) 11:36, 13 April 2018 (UTC)
Please update Canada's inflation to 2017. The new value of 130.4 from Statscan is already inputted. Thank you. Keith 11:04, 22 April 2018 (UTC) — Preceding unsigned comment added by Keith o ( talk • contribs)
The docs for several of the template parameters claim This must been done each time the template is called in an article, or there will be an error message in the reference list.
Aside from the grammatical issues ("been" instead of "be", at a minimum), that claim doesn't appear to be accurate. Observe:
To promote consistency with an article that uses |last-author-amp=
to join the last author in a list with an ampersand, footnotes that list multiple authors and the {{
cite web}} base template can also use this parameter. This must been done each time the template is called in an article, or there will be an error message in the reference list.
{{
Inflation/fn|US-GDP|last-author-amp=yes}}
=
[1]{{
Inflation/fn|US-GDP}}
=
[1]If I'm interpreting it correctly, the quoted admonishment is implying that the second call above would cause an error, by not repeating the |last-author-amp=yes
parameter. But in reality, it doesn't seem to cause any problem at all. Should we just remove the "This must been done each time the template is called in an article, or there will be an error message in the reference list." admonishment from the various documentation sections where ti appears? Or is it still accurate for some parameters other than |last-author-amp=
? --
FeRD_NYC (
talk) 14:03, 9 August 2018 (UTC)
<ref name="inflation-US">…</ref>
which will generate an error message if two ref tags with the same name have different content (date format, last auth amp, etc.). See
H:CERDK. If you use a web inspector type tool you'll see that your example above contains the following:
<span class="error mw-ext-cite-error" lang="en" dir="ltr"><span class="brokenref">Cite error: <span class="brokenref">Invalid <code><ref></code> tag; name "inflation-USGDP" defined multiple times with different content (see the <a href="/info/en/?search=Help:Cite_errors/Cite_error_references_duplicate_key" title="Help:Cite errors/Cite error references duplicate key">help page</a>).</span></span>
</span>
span.brokenref { display: none }
This
edit request to
Template:Inflation has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update ZAR
inflation year to 2016
as per update on
Template:Inflation/ZAR/dataset. When done, please update year in
Template:Inflation/year/doc and
Template:Inflation/doc to correlate. Thanks,
Waddie96 (
talk) 15:42, 24 September 2018 (UTC)
This page shows the format as Inflation/year where the format shown on Template: Inflation shows it to be Inflation-year in its examples. I just tried this in the Great Chicago Fire article, and it works with Inflation-year, not using the slash character /. Is the separator character irrelevant? I did not try it with the / as I am spending my time on millions to billions reading correctly. Could both articles match each other, or explain why each page shows a different character? -- Prairieplant ( talk) 23:17, 25 September 2018 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the inflation year for Canada to 2017. The dataset and the references were updated several months ago. Alaney2k ( talk) 19:50, 6 October 2018 (UTC) Alaney2k ( talk) 19:50, 6 October 2018 (UTC)
This template appears to create duplicate reference definitions. For example, the "filming" section of Dr. No (film) invokes this template twice, and ends up with duplicate definitions of a reference named "inflation-UK". How can these errors be corrected? It seems like the template should create identical reference text for each invocation, but it apparently does not do so. How can multiple invocations of the template safely be used on the same page, without causing duplicate reference errors? -- Mikeblas ( talk) 14:13, 29 September 2018 (UTC)
(
edit conflict) Yeah, something is broken. I assert that it is MediaWiki's handling of TemplateStyles. There are no restrictions on what may be made part of a reference. Any template that uses TemplateStyles may be used within a reference so the problem is not confined to the cs1|2 templates; cs1|2, being the most common templates used in references, just happen to reveal the problem. MediaWiki handles template styles by insertion of a stripmarker where the template includes the <templatestyles src="Module:Citation/CS1/styles.css" />
; for cs1|2 at the tale end of the rendering. After cs1|2 has done its thing and after MediaWiki has discovered and flagged the duplicate-ref-different-text errors, then, MediaWiki replaces the stripmarker with the value of the stripmarker (I don't know exactly what that is; css file name? content of the css file?).
Stripmarkers are unique, even when they point to the same thing, because templates are processed in isolation from each other so that processing knows nothing about what has come before. Here are the code-view renderings of two identical {{
cite web}}
templates; stripmarkers are at the tail ends:
{{cite web |title=Title |url=//example.com}}
→
"Title".
'"`UNIQ--templatestyles-0000006F-QINU`"'<cite class="citation web cs1">[//example.com "Title"].</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Title&rft_id=%2F%2Fexample.com&rfr_id=info%3Asid%2Fen.wikipedia.org%3ATemplate+talk%3AInflation%2FArchive+2" class="Z3988"></span>
'"`UNIQ--templatestyles-00000071-QINU`"'<cite class="citation web cs1">[//example.com "Title"].</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Title&rft_id=%2F%2Fexample.com&rfr_id=info%3Asid%2Fen.wikipedia.org%3ATemplate+talk%3AInflation%2FArchive+2" class="Z3988"></span>
I can do nothing to fix this so you-all should report it at phabricator. — Trappist the monk ( talk) 15:01, 30 September 2018 (UTC)
<ref name="duplicate name">...</ref>
tags; identical named references references in article space don't show an error. This template though uses the {{#tag:ref}}
magic word. Apparently, handling of that is different from how the <ref name="duplicate name">...</ref>
tag is handled.{{#tag:ref|{{cite web |title=Title |url=//example.com}}|name="test1"}}
and <ref name="test1">{{cite web |title=Title |url=//example.com}}</ref>
{{#tag:ref}}
):
{{#tag:ref|{{cite web |title=Title |url=//example.com}}|name="test2"}}
and {{#tag:ref|{{cite web |title=Title |url=//example.com}}|name="test2"}}
<ref>...</ref>
):
<ref name="test3">{{cite web |title=Title |url=//example.com}}</ref>
and <ref name="test3">{{cite web |title=Title |url=//example.com}}</ref>
If you consider
<ref name="test3">{{cite web |title=Title |url=//example.com}}</ref>
and <ref name="test3">{{cite web |title=Title |url=//example.com}}</ref>
<ref name="test4">{{cite book |title=Title |url=//example.com}}</ref>
and <ref name="test4">{{cite book |title=Title |url=//example.com}}</ref>
But not in my sandbox, I suppose that is because I'm working in userspace. CV9933 ( talk) 16:03, 1 October 2018 (UTC)
<ref>...</ref>
tags. In your
Estradiol cypionate example the two <ref name="ArunNarendra2012">
references clearly have different page numbers so were different:
{{cite book|author1=Nagrath Arun|author2=Malhotra Narendra|author3=Seth Shikha|title=Progress in Obstetrics and Gynecology--3|url=https://books.google.com/books?id=AS3UBAAAQBAJ&pg=PA416|date=15 December 2012|publisher=Jaypee Brothers Medical Publishers Pvt. Ltd.|isbn=978-93-5090-575-3|pages=416–418}}
{{cite book|author1=Nagrath Arun|author2=Malhotra Narendra|author3=Seth Shikha|title=Progress in Obstetrics and Gynecology--3|url=https://books.google.com/books?id=AS3UBAAAQBAJ&pg=PA419|date=15 December 2012|publisher=Jaypee Brothers Medical Publishers Pvt. Ltd.|isbn=978-93-5090-575-3|pages=419–}}
<ref name="ArunNarendra" />
are all properly named. If you cannot determine which ref name goes where, do not attempt a fix, post a note on the article talk page and ping the editor who inserted the references.Sick of this error The template is broken, phabricator is not an answer. Why hasn't this change been reverted? How do I fix it? Hawkeye7 (discuss) 06:52, 13 October 2018 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the following:
| ERR = <span class="error">Error: no index specified when using {{tl|Inflation-year}}.{{main other|[[Category:Pages with errors in inflation template]]}}</span> |#default = <span class="error">Error: undefined index "{{{index|{{{1}}}}}}" when using {{tl|Inflation-year}}.{{main other|[[Category:Pages with errors in inflation template]]}}</span>
with this:
| ERR = <span class="error">Error: no index specified when using {{tl|Inflation/year}}.{{main other|[[Category:Pages with errors in inflation template]]}}</span> |#default = <span class="error">Error: undefined index "{{{index|{{{1}}}}}}" when using {{tl|Inflation/year}}.{{main other|[[Category:Pages with errors in inflation template]]}}</span>
This is simply to update the name of the template to match its current name. Jdaloner ( talk) 19:18, 16 October 2018 (UTC)
The original link for German cost of living data has gone dead due to a website redesign. I've temporarily replaced it with a link to the archived version just to avoid {{ dead link}} showing up on a bazillion articles. A permanent fix would be to replace the link with the new location for that data, but in the mean time they've rebased the calculations to 2010 (used to be 2000) so more updates than the link are needed in that case. And that's more significant changes than I'm comfortable making just now. -- Xover ( talk) 06:26, 6 July 2018 (UTC)
@ Alex 21: Thanks for the edits! However, the UK-GDP entry which you changed here seems to be a separate dataset that's still on 2016. Daß Wölf 15:45, 27 January 2019 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the inflation year for Canada to 2018. The dataset and the references have been updated. Alaney2k ( talk) 18:14, 6 March 2019 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the inflation year for India to 2018. The dataset has been updated. EcoWizard ( talk) 23:39, 12 March 2019 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can someone please update the US-GDP year to 2018? I updated the dataset and the footnote. Thanks, Daß Wölf 23:14, 6 April 2019 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update latest year for JP per the dataset update that was done in March. Thanks. CrimsonFox talk 08:38, 9 July 2019 (UTC)
| JP = 2019
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the end year values for AU, AU-road, PH, and ZAR to 2018, 2018, 2019, and 2018 respectively (because of these dataset updates plus this made by me). It should look like these:
|AU = 2018 |AU-road = 2018 |PH = 2019 |ZAR = 2018
Regards, Eye snore 20:12, 13 January 2020 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the inflation year for India to 2019. The dataset has been updated. EcoWizard ( talk) 00:56, 20 March 2020 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Change latest inflation end year for Pakistan to 2018; from | PK = 2013
to | PK = 2018
. I have updated the relevant
dataset.
Idell (
talk) 08:39, 18 June 2020 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add the follow to the template:
| IR = 1398
Benyamin (
talk) 23:48, 25 June 2020 (UTC)
This
edit request to
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the reference for Canada (CA)
From:
| CA = {{#tag:ref|Canadian inflation numbers based on Statistics Canada tables 18-10-0005-01 (formerly CANSIM 326-0021) {{cite web |publisher=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000501#timeframe |title=Consumer Price Index, annual average, not seasonally adjusted |accessdate=March 6, 2019|date = January 18, 2019}} and 18-10-0004-13 {{cite web |website=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000413#timeframe |title=Consumer Price Index by product group, monthly, percentage change, not seasonally adjusted, Canada, provinces, Whitehorse, Yellowknife and Iqaluit |accessdate=March 6, 2019}} |name = "inflation-CA" |group={{{group|}}}}}
to
| CA = {{#tag:ref|Canadian inflation numbers based on Statistics Canada tables 18-10-0005-01 (formerly CANSIM 326-0021) {{cite web |publisher=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000501#timeframe |title=Consumer Price Index, annual average, not seasonally adjusted |accessdate=November 15, 2020|date = November 15, 2020}} and 18-10-0004-13 {{cite web |website=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000413#timeframe |title=Consumer Price Index by product group, monthly, percentage change, not seasonally adjusted, Canada, provinces, Whitehorse, Yellowknife and Iqaluit |accessdate=November 15, 2020}} |name = "inflation-CA" |group={{{group|}}}}}
Thanks in advance Alaney2k ( talk) 21:17, 15 November 2020 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I have added the dataset for Singapore inflation, to be used for Singapore related articles. Please add the following line to the template:
| SG = 2020
Thanks. – robertsky ( talk) 17:14, 25 January 2021 (UTC)
This
edit request to
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please include the following reference for the Singapore dataset which I have added for the Inflation template to be used for Singapore related articles:
| SG = {{#tag:ref|{{cite web|url=https://www.tablebuilder.singstat.gov.sg/publicfacing/createDataTable.action?refId=16842|title=M212931 - Consumer Price Index (CPI), 2019 As Base Year, Annual|publisher= Department of Statistics, Singapore|access-date=26 January 2021|date=25 January 2021}} |name = "inflation-SG" |group={{{group|}}}}}
List of pages created (based largely on BD pages):
Related request: Template talk:Inflation/year#Template-protected edit request on 26 January 2021.
Let me know if I need to update anything. Thanks in advance. – robertsky ( talk) 17:14, 25 January 2021 (UTC)
References
This
edit request to
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I've created an article about the MeasuringWorth website, and we could link to it in footnotes that use that site. A replacement of "work = MeasuringWorth" by "work = MeasuringWorth" in this template might do the trick. Since people won't click through to it very often, perhaps it's not worth the trouble. Sometimes pages have so much wikicode that they exhaust the Wikipedia back end. I trust your decision on this, templateers. -- econterms ( talk) 23:16, 3 February 2021 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I have updated the dataset for Canada inflation to 2020. Please update the CA param to 2020:
| CA = 2020
Thanks in advance,
Alaney2k ( talk) 16:50, 17 April 2021 (UTC)
This
edit request to
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the reference for Canada (CA)
From:
| CA = {{#tag:ref|Canadian inflation numbers based on Statistics Canada tables 18-10-0005-01 (formerly CANSIM 326-0021) {{cite web |publisher=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000501#timeframe |title=Consumer Price Index, annual average, not seasonally adjusted |accessdate=November 15, 2020|date = November 15, 2020}} and 18-10-0004-13 {{cite web |website=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000413#timeframe |title=Consumer Price Index by product group, monthly, percentage change, not seasonally adjusted, Canada, provinces, Whitehorse, Yellowknife and Iqaluit |accessdate=November 15, 2020}} |name = "inflation-CA" |group={{{group|}}}}}
to: (the urls are the same, but the accessdate is changed, and there is not a date provided by Stats Can on the table, so I have removed it)
| CA = {{#tag:ref|Canadian inflation numbers based on Statistics Canada tables 18-10-0005-01 (formerly CANSIM 326-0021) {{cite web |publisher=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000501#timeframe |title=Consumer Price Index, annual average, not seasonally adjusted |access-date=April 17, 2021}} and table 18-10-0004-13 {{cite web |website=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000413#timeframe |title=Consumer Price Index by product group, monthly, percentage change, not seasonally adjusted, Canada, provinces, Whitehorse, Yellowknife and Iqaluit |access-date=April 17, 2021}} |name = "inflation-CA" |group={{{group|}}}}}
I have tested this in the sandbox.
Thanks in advance. Alaney2k ( talk) 17:17, 17 April 2021 (UTC)
This
edit request to
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Add
| CH = {{#tag:ref|Switzerland inflation numbers based on FSO-EN to 2015, FSO-DE 2015-2021 {{cite web |publisher=Federal Statistical Office |url=https://www.bfs.admin.ch/bfs/en/home/statistics/prices/consumer-price-index.assetdetail.17084204.html |title=CPI, Global index on all index bases |access-date=May 14, 2021}} and table 18-10-0004-13 {{cite web |website=Federal Statistical Office |url=https://www.bfs.admin.ch/bfs/en/home/statistics/prices/consumer-price-index.assetdetail.17084203.html |title=LIK, Totalindex auf allen Indexbasen |access-date=May 14, 2021}} |name = "inflation-CH" |group={{{group|}}}}}
above CA listing Zoozaz1 talk 00:03, 15 May 2021 (UTC)
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 |
Recommending a "nominal GDP per capita" to be used in adjusting large capital expenditures (incl. government) seems like a folly to me: wouldn't a "real GDP per capita" be a much more relevant measure to adjust for inflation? "Per capita" portion of the measure is a useful adjustment when using GDP to compare large-scale expenditures, as it normalizes for the size of the economy in question. But using nominal GDP instead of real GDP seems to defeat the very purpose of trying to adjust the value of money for effects of inflation.
In fact, I would argue that using the GDP deflator by itself in order to adjust the value of money would achieve the right effect in this case – as it is a direct adjustment for the value of money that uses GDP-based calculations instead of CPI-based ones. (It also implicitly takes care of the "per capita" part, as it compares prices rather than volume of expenditures comprising GDP – hence no need for an extra adjustment.)
So my proposal is: whenever the distinction between consumer-relevant prices and large-scale capital expenditures is warranted, we should use CPI adjustment in the former case, and the GDP deflator adjustment in the latter.
(Pinging Fifelfoo, Father Goose, JeopardyTempest, Imzadi1979, Betty Logan, hchc2009, Gah4, SilverbackNet who, as I can see from the discussions on this page, have either introduced this measure to the template, added recommendations to the template on which measure to use and when, or participated in discussions on related topics.) cherkash ( talk) 00:31, 29 December 2017 (UTC)
Thank you for adding the GDP deflators, Father Goose – indeed an original mistake that is duly fixed now. cherkash ( talk) 01:56, 13 January 2018 (UTC)
So now for the real work. Can anyone cite a source suggesting that any form of GDP per capita measure is appropriate to use for inflation adjustments? I'm not talking about "measuring wealth", a concept without a fixed definition. I'm talking about just inflation, a concept generally understood to mean changes in prices in a national economy.
There are a few different standard ways to measure inflation (i.e., price indexes):
Of these, only the first three are typically used to "adjust for inflation" in generic contexts. The other indexes are used by economists to perform analyses, to measure subsectors of the economy, or by central banks to perform specialized adjustments. Nowhere in my research have I come across using any form of GDP per capita measure as an adjustment for inflation. ( Investopedia suggests it's useful for measuring changing standards of living, which is not the same concept as inflation.)
Given that, I think it's time to say that using NGDPPC in our inflation-adjusting template is outright incorrect, and it should be removed. The GDP deflator should be emphasized as the index to use for non-consumer expenditures. To minimize disruption, the NGDPPC option can be marked as deprecated until such time as all in-article uses of it have been removed; then the index itself should be removed from our template.-- Father Goose ( talk) 17:16, 12 January 2018 (UTC)
Ok, I've removed the references to the US-/UK-NGDPPC templates from every mainspace article the were used in. Time to remove these series from the "inflation" templates altogether now: as already discussed, they are not relevant in the context of inflation. cherkash ( talk) 22:08, 13 January 2018 (UTC)
Replying to the first comment by
Cherkash (
talk ·
contribs ·
email), suggesting a replacement of "nominal GDP per capita" for "real GDP per capita":
Actually an adjustment by "real GDP per capita" would only take into account the economic growth while ignoring any price change (inflation) during the given period of time, which would be futile and useless for any comparison. The so-called NGDPPC indexes using "nominal GDP per capita" are intended to demostrate the impact of both inflation and the enrichment of a society when comparing prices, that is, that an ammount of money that would appear as a fortune in 1900, like $5 dollars, by today's prices it will only be $123-147 dollars (whether using GDP deflator or the Consumer Price Index, respectively), which is not a lot of money, but if we use the 'nominal GDP per capita' it would be equivalent to $1,060 dollars nowadays, so this index was conceptualized to see how affordable was certain good in the past (people are typically much poorer in the past than in the present), making it not a good tool for prices comparison, but rather an expensiveness index.
179.53.111.218 (
talk) 04:05, 15 February 2018 (UTC)
There is an RfC at Talk:Manchester Martyrs regarding the use of this template in a case where there is a very wide range of possible current values of a sum of money. Any input would be appreciated. Scolaire ( talk) 12:45, 1 April 2018 (UTC)
Now resolved. The gist of the discussion was that, for a reward of £300 offered in 1867, the CPI – the value of a basket of goods – is not a good measure of its worth in 2016, and that, instead of the template, there ought to be an expression of its value in terms of average annual wages at the time (in this case, £300 ≈ seven years wages), still citing MeasuringWorth. I wonder if it would be worth adding a note to Template:Inflation/doc, drawing attention to the fact that there are cases where neither this template nor the US-GDP or UK-GDP indexes should be used? Scolaire ( talk) 18:53, 1 April 2018 (UTC)
Please add the following to this template to add Category:Inflation calculation templates to all transclusions in Template namespace:
{{#ifeq:{{NAMESPACE}}|Template|[[Category:Inflation calculation templates]]}}
.
Thank you. Daask ( talk) 19:52, 11 April 2018 (UTC)
In an attempt to update Australia's CPI, I spent a half-hour going through the Australian Bureau of Statistics however I could only find the quarterly rate. I then went to this page from the web site Measuring Worth [ [1]], which gave me this; 2009 92.90 2010 95.80 2011 99.20 2012 100.40 2013 102.80 2014 105.90 2015 107.50 2016 108.60 2017 110.70 If there are no objections, I will use these figures to update Australia's inflation rate into this decade. I will, of course include M.W.s source for my refs. Keith 07:31, 22 April 2018 (UTC) — Preceding unsigned comment added by Keith o ( talk • contribs)
I think that use of the "equivalent" word is misleading, it should be something more approximate (about/around or similar). — Preceding unsigned comment added by 89.25.210.104 ( talk) 16:53, 22 April 2018 (UTC)
I encountered this sentence on Personal Memoirs of Ulysses S. Grant: "They sold 350,000 two-volume sets at prices from $3.50 to $12, depending on the binding." I used the solution of "roughly ${{Inflation|US|3.5|1885|r=-1}} to ${{Inflation|US|12|1885|r=-1}} in {{Inflation-year|US}}" which works well enough, but I'd be interested in seeing a dedicated feature analogous to the way {{ Convert}} handles value ranges: "{{convert|30|-|40|cm|in}}" = "30–40 centimetres (12–16 in)".- Ich ( talk) 11:34, 7 August 2018 (UTC)
I'd like to have a flag so that the "current" year of the worth of the money is displayed. For example: "$100 ($160 adjusted for inflation as of 2017)" with 2017 being the year the template for USD was last updated WhisperToMe ( talk) 22:08, 13 October 2018 (UTC)
|fmt=eq
or manually by {{
Inflation/year}}
. --
89.25.210.104 (
talk) 23:11, 6 November 2018 (UTC)What about Euro version using Harmonised Index of Consumer Prices? Several datasets are available, Eurostat (Euro area, annual data, 2015=100, 1996-) or ECB (Euro area, annual frequency, 1997-) make the most sense for me.-- Jklamo ( talk) 09:41, 26 November 2018 (UTC)
I have updated the 2017 figure, but not added the new 2018 figure. All the best:
Rich
Farmbrough, 15:36, 4 December 2018 (UTC).
@ Rich Farmbrough: - $1,000m (1,000x1,000,000 to represent a billion) has been deprecated, and instead $1.000B is to be used. Can you please update the template? Thanks - wolf 03:42, 6 December 2018 (UTC)
Some discussion on Twitter about this template's use of RPI. Per the Office for National Statistics: "The course on which ONS has embarked has therefore been ... discouraging the use of RPI, while recognising the legacy needs ... RPI does not have the potential to become a good measure of inflation." [2]
Has anyone been working towards making UK CPI or CPIH available with this template? TSP ( talk) 12:59, 17 December 2018 (UTC)
When parameter start_year > 2017 is passed to "Inflation", an error is returned:
"formatnum:{{Inflation|US|700059566|2018}}: yields: "$Error when using {{Inflation}}: |start_year=2,018 (parameter 3) is greater than the latest available year (2,017) in index "US". "
Wapiti ( talk) 19:02, 1 January 2019 (UTC)
Must be a year available in the chosen inflation index. As an exception to this, if the current year is specified and no end_year is specified, the template will output value unchanged, as it can be assumed an inflation of zero.. MarMi wiki ( talk) 23:51, 16 January 2019 (UTC)
The first example in the "Format price" section is marked as good but produces a NaN result. I was unable to determine the cause. Once that's fixed, usage on this article is producing a NaN result and also appears to be violating your guidelines. DBN ( talk) 06:10, 18 March 2019 (UTC)
{{
Inflation|US|400000000|1974}}
gives 2471000000 so the NaN comes from {{
Formatprice}}
Gah4 (
talk) 08:32, 18 March 2019 (UTC)
{{
Formatprice}}
handle scientific notation in the form 2.032×109, though? I thought it had to look like: 2.032E9. Anyway, I don't see any recent changes in the histories of either template. Was there a MediaWiki upgrade or something? (Btw, it seems like quite a few articles are probably broken;
Macy's, Inc. has quite a few NaNs, which is what brought me here.) —
BorgHunter (
talk) 12:42, 18 March 2019 (UTC){{
Decimals}}
to {{
Rnd}}
to undo that until a solution can be found for this use case. —
BorgHunter (
talk) 14:24, 18 March 2019 (UTC)This
edit request to
Template:Inflation/UK/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can someone add the data for 2017 and 2018? I'm getting 121.869 and 125.939, respectively, from the source in the template documentation. Also, according to the comment at the bottom of this template, Template:Inflation-fn and Template:Inflation-year will need to be updated too. Daß Wölf 23:30, 26 January 2019 (UTC)
This
edit request to
Template:Inflation/UK/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace
[[Category:Data templates|United Kingdom inflation]]
with the more specific
[[Category:United Kingdom data templates]]
TerraCyprus ( talk) 18:06, 9 June 2019 (UTC)
I was adding some Japanese prices in an article and noticed the end year maximum is 2013. I checked the reference and it has current data. Template:Inflation/JP/dataset also has data up to the current date too but I'm not 100% sure if all that's needed is an update to the max end year or if there's some more complicated workings I'm unaware of but I thought I'd mention it. CrimsonFox talk 08:23, 9 July 2019 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Request to move {{ Inflation/US/dataset}} from Category:Data templates to more specific Category:United States data templates. TerraCyprus ( talk) 15:31, 12 August 2019 (UTC)
Sometimes I want to use it at the beginning of a sentence. deisenbe ( talk) 14:31, 14 August 2019 (UTC)
{{Inflation|US|1|2017|2018|r=1}}
expected result 1.0, actual result 1. When r=2, the result is 1.02 as expected. --
Traal (
talk) 21:11, 21 October 2019 (UTC)
precision_format
outputs a string. See
Template talk:Format price. –
Jonesey95 (
talk) 20:58, 22 October 2019 (UTC)I just imported
Template:Inflation/FR/dataset from
fr:Modèle:Inflation/FR/table de données, if anyone wants to check my work. Trying to get historical inflation for the franc set up. (not
watching, please {{
ping}}
)
czar 19:20, 27 December 2019 (UTC)
This
edit request to
Template:Inflation/US/dataset,
Template:Inflation/fn and
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Step 1
At {{ Inflation/US/dataset}} please replace this:
| 2018 |#default = 752.9
With this:
| 2018 = 754.6
| 2019 |#default = 768.3
This is just the annual update for the template. The new information comes from https://www.minneapolisfed.org/about-us/monetary-policy/inflation-calculator/consumer-price-index-1800-
Step 2
Once the dataset has been updated the source also need to be updated. At {{
Inflation/fn}}, in the | US =
line please update the date to January 1, 2020. There are two instances of the date that need to be updated, representing the two date formats.
Step 3
The final step updates the most recent year. At {{ Inflation/year}} you need to replace this line:
| US|USD = 2018
with this:
| US|USD = 2019
If you complete the updates successfully then the errors that can be found at aticles such as List of highest-grossing films in the United States and Canada should disappear. Best wishes. Betty Logan ( talk) 11:20, 1 January 2020 (UTC)
This
edit request to
Template:Inflation/UK/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Similarly UK data for 2019 available from the URL given.
Step 1
At {{ Inflation/UK/dataset}} please replace this:
| 2018|#default = 125.939
needs changing to
| 2018 = 125.939
| 2019|#default = 129.159
Step 2
Once the dataset has been updated the source also need to be updated. At {{
Inflation/fn}}, in the | UK =
line please update the date to February 2, 2020. There are two instances of the date that need to be updated, representing the two date formats.
Step 3
The final step updates the most recent year. At {{ Inflation/year}} you need to replace this line:
| UK|GBP = 2018
with this:
| UK|GBP = 2019
-- David Biddulph ( talk) 19:17, 2 February 2020 (UTC)
See also: Template talk:US$#This needs a rewrite to reduce template expansion depth.
This template uses over 20 of the 40 levels of "expansion depth" allowed by MediaWiki software described at meta:Help:Expansion depth. Pages that go over the limit wind up in Category:Pages where expansion depth is exceeded.
At least one template, {{
US$}}, uses 33 of the 40 levels when it is used with the |year=
parameter to calculate inflation, which doesn't leave much headroom for templates that call US$.
One good solution would be to turn this template into a module. Anyone up for the task? davidwr/( talk)/( contribs) 22:52, 13 February 2020 (UTC)
There appears to be GDP deflator statistics for 2019 (used in US-GDP). Can someone more familiar with the template give an update? Thanks-- Therapyisgood ( talk) 01:38, 10 June 2020 (UTC)
Hello
I found this template by accident while trying to fix a sourced current value for a 19th century cash amount. It is certainly a useful template; can I suggest you add a link to it, so that readers might know where the estimate comes from, and that editors won't otherwise spend time tracking the information down/trying to fix it per RS/VERIFY? In the meantime I’ve done
this to provide some verification.
Swanny18 (
talk) 22:39, 12 June 2020 (UTC)
Using this template for $25 and $50 respectively (and all other values being the same) yields:
$25 equivalent to $900 in 2023
$50 equivalent to $1,800 in 2023
Since 2 x $25 = $50, one would naturally assume that doubling the amount in the $25 template to $50 would produce a template output of $1,600 yet what we are seeing is instead $1,500, off by $100 or approximately 7%. -- That man from Nantucket ( talk) 08:59, 1 May 2020 (UTC)
|r=-2
asking it to round to the nearest $100. If you change the rounding parameter you will see a different precision, such as:I used this template for British pounds and it surprised me that I have to put the currency symbol if I'm not using US dollars. Doesn't the GBP
index know which currency (and therefore symbol) it's expecting as input, and therefore producing as output? I thought it might do automatic currency conversion so that I could specify cursign=$
and have the resulting GBP converted to USD but it's just to change what's displayed.
Anyway, it would be nice if I could just do \{\{Inflation|GBP|1.5|2000|2019|fmt=eq}}
and have it work as expected.
Akeosnhaoe (
talk) 20:36, 1 August 2020 (UTC)
r=-3
to prevent false precision?Too often I find {{ inflation}} abused in a way that reports numbers with false precision, like here: "... signed him to a contract worth $15,000 ( USD, $22,041.4 today)." Even ignoring the fact that here $15,000 is probably rounded already, the implied precision (down to cents!) of the adjusted number is clearly absurd. Since this is a frequent occurrence, I suggest we change the default precision of this template accordingly. -- bender235 ( talk) 20:16, 1 April 2020 (UTC)
Hiya to add to the sources discussion above, I have been happily using this template, it's super useful (for example at List of heists in the United Kingdom) so thanks to all the creators for their hard work!! Recently, someone added a reference for the figures here which doesn't give the same info as the template (1,120,000 vs 1,526,611.85) and today there's this citation needed tag added. So I came here to ask if the template should be referenced. I suppose best practice says yes,and if that is the case should it then be added automatically? I'll be adding {{ inflation-fn}} from now on, including those pages I've mentioned, cheers! Mujinga ( talk) 11:02, 5 August 2020 (UTC)
Would it be possible to allow units to be entered in the value, which would be copied to the output? Most of the numbers I deal with are of the form "1.2 billion", which has to be manually recreated using two templates. It would be much easier if I could |US|12. billion|1978, and I think that would help the readability of the source as well.. Maury Markowitz ( talk) 12:29, 16 July 2020 (UTC)
|index=US
(parameter 1) not a recognized index.{{Format price}}
confuses things by adding on cents.)
Gah4 (
talk) 20:27, 30 October 2020 (UTC)
The inflation data for France has been already added. The other templates need to be updated. Trigenibinion ( talk) 17:15, 10 December 2020 (UTC)
I happened to look at the error category and see the article Maung Weik.
The full message is Error when using {{Inflation}}: NaN/calculation error please notify Template talk:Inflation..
I see that the issue was introduced to that article with what is currently the most recent edit, Special:Diff/960240485, which reveals that that this template is actually being called from {{ US$}}, so the above discussion Template talk:Inflation/Archive 2#This should be a module to reduce expansion depth might be relevant. A purge of that article changed nothing. That's all I have investigated. -- SoledadKabocha ( talk) 02:34, 16 August 2020 (UTC)
|round=
. I didn't read the documentation to find out why it worked, but it seems to have worked. The error message was not particularly helpful. –
Jonesey95 (
talk) 06:35, 16 August 2020 (UTC)This template runs too deep. I see a commented out workaround in the source code. Trigenibinion ( talk) 23:33, 16 January 2021 (UTC)
Inflation-year is wrong and German wikipedia has data to 2019. Trigenibinion ( talk) 19:21, 13 December 2020 (UTC)
German wikipedia has this. Trigenibinion ( talk) 02:45, 19 January 2021 (UTC)
The USD inflation year is still 2019; how do we update it? {{u| Sdkb}} talk 07:54, 8 March 2021 (UTC)
This
edit request to
Template:Inflation/US/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Paste above 1800 data on Template:Inflation/US/dataset, sources in invisible comment. |1634=66.5 |1636=118.75 |1637=102.25 |1638=53.75 |1639=88 |1640=76.25 |1641=76.25 |1642=77 |1643=111.25 |1644=80 |1645=70.5 |1646=43.5 |1647=33 |1648=58.25 |1649=85.5 |1650=45.25 |1651=60.5 |1652=47.75 |1653=62 |1654=62.25 |1655=5.25 |1656=58.75 |1657=48 |1658=30.75 |1659=34.5 |1660=39.75 |1661=33.5 |1662=36.25 |1663=36.25 |1664=36.25 |1665=31 |1666=31 |1667=33.5 |1668=34.5 |1669=32.25 |1670=31.5 |1671=32.25 |1672=32 |1673=30.5 |1674=32.75 |1675=30.5 |1676=30.75 |1677=30.75 |1678=30.25 |1679=30 |1680=34.5 |1681=35.25 |1682=28.75 |1683=28.75 |1684=28.75 |1685=31 |1686=29.25 |1687=28.75 |1688=26.5 |1689=27.25 |1690=27.75 |1691=28.5 |1692=27.75 |1693=25.75 |1694=27.5 |1695=25.25 |1696=30 |1697=29 |1698=27.75 |1699=30.25 |1700=43.9072 |1701=47.6225 |1702=45.9337 |1703=39.8543 |1704=36.476 |1705=35.1258 |1706=37.4900 |1707=40.1920 |1708=42.5562 |1709=39.1788 |1710=33.7748 |1711=35.4635 |1712=40.1920 |1713=43.2317 |1714=43.2317 |1715=29.7218 |1716=24.317 |1717=25.6688 |1718=29.7218 |1719=31.0728 |1720=25.6688 |1721=23.9801 |1722=25.3311 |1723=25.6688 |1724=27.0198 |1725=32.0860 |1726=31.0728 |1727=29.0463 |1728=27.3576 |1729=27.0198 |1730=27.0198 |1731=23.9801 |1732=22.6291 |1733=22.2913 |1734=22.6291 |1735=22.9668 |1736=21.953 |1737=22.2913 |1738=23.9801 |1739=21.2781 |1740=22.2913 |1741=30.7350 |1742=27.3576 |1743=23.9801 |1744=22.2913 |1745=21.6158 |1746=21.953 |1747=23.9801 |1748=27.6953 |1749=28.3708 |1750=28.3708 |1751=28.7086 |1752=29.3841 |1753=28.3708 |1754=27.3576 |1755=26.682 |1756=26.0066 |1757=27.3576 |1758=29.3841 |1759=33.4370 |1760=32.4238 |1761=30.3973 |1762=32.0860 |1763=32.0860 |1764=29.7218 |1765=30.0596 |1766=33.0993 |1767=32.0860 |1768=30.3973 |1769=31.4105 |1770=33.7748 |1771=32.4238 |1772=36.8145 |1773=34.1125 |1774=32.7615 |1775=31.0728 |1776=35.4635 |1777=43.2317 |1778=56.0662 |1779=49.6490 |1780=55.728 |1781=44.9205 |1782=49.3112 |1783=43.2317 |1784=41.5430 |1785=39.5165 |1786=38.5033 |1787=37.8278 |1788=36.1390 |1789=35.8013 |1790=37.1523 |1791=38.1655 |1792=38.841 |1793=40.1920 |1794=44.5827 |1795=51 |1796=53.7019 |1797=51.6754 |1798=49.9867 |1799=49.9867 Zoozaz1 talk 14:09, 17 May 2021 (UTC)
It would be important to get the data. Many ships are built there. China and Russia too, but prices are missing. Trigenibinion ( talk) 00:44, 30 December 2020 (UTC)
This
edit request to
Template:Inflation/US/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The US Inflation template data needs to be updated to 2020. This requires editing 3 pages. The source showing the 2020 data can be found here.
1. Template:Inflation/US/dataset requires a change from
| 2019 |#default = 768.3
to
| 2019 = 768.3
| 2020 |#default = 777.7
2. Template:Inflation/year requires a change from
| US|USD = 2019
to
| US|USD = 2020
3.
Template:Inflation/fn requires the current date be updated in two places on the line that starts with | US =
.
Thank you. Curious Eric 01:31, 21 May 2021 (UTC)
| US =
the date "May 1, 2021" should be "May 21, 2021" to match the DMY date. Thanks.
Curious
Eric 14:26, 21 May 2021 (UTC)
Template:Inflation#Currency_conversion is wrong - right now the {{
Inflation/DE}}
do converts (or
redenominates) marks to euro (see year 2002 in DE template).
MarMi wiki (
talk) 16:33, 8 June 2021 (UTC)
It doesn't have to be c, any value set (other than raw
of course), even empty, will add the comma(s), because of the condition at formatnum:
|{{#ifeq:{{{fmt|raw}}}|raw|R|}}
MarMi wiki (
talk) 14:00, 10 June 2021 (UTC)
Year 1635 is missing (or the starting year [1634] is incorrect). MarMi wiki ( talk) 15:46, 2 July 2021 (UTC)
121 / (151/51 = 2.96078431372549) = 40.86754966887417
, instead of 30.25
(which is 121/4
for some reason)?
MarMi wiki (
talk) 19:11, 2 July 2021 (UTC)
(121/100) * 25
, likely confusing 1850 for 1860, but what I would have done is (121/100) * 27 = 32.67
. I'm not sure where you got that equation.
Zoozaz1
talk 21:16, 2 July 2021 (UTC)
(130/100) * 27
(I'm assuming the 100 is from 1800 column 6 in McCusker, and 1860=27 is from minneapolisfed) equals 35.1
instead of 43.9072
("my" method: 130/(151/51) [or 130*(51/151)] = 43.90728476821192
[1700=130 and 1800=151 from McCusker, 1800=51 from minneapolisfed]).
MarMi wiki (
talk) 23:00, 3 July 2021 (UTC)
1800 number / 1860 number = 1.51
, while for the fed it's 1.89
. Therefore the Fed number/McCuscker number
should be greater at the 1800 number than the 1860 number. The equation I used in a different form is 130 * (27/100)
(with 27 being the fed number and 100 McCusker's number); the difference between our methods is because 51/151>27/100
, 51/151 being the 1800 relationship and 27/100 being the 1860 relationship.This
edit request to
Template:Inflation/US/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Replace 1634 to 1699 data with:
|1634=89.84088 |1635=0 |1636=160.4301 |1637=138.1388 |1638=72.61575 |1639=118.8871 |1640=103.0130 |1641=69.23827 |1642=104.0262 |1643=150.2977 |1644=108.0792 |1645=95.24484 |1646=58.76809 |1647=44.58269 |1648=78.69521 |1649=115.5097 |1650=61.13233 |1651=81.73494 |1652=64.50980 |1653=83.76142 |1654=84.09917 |1655=81.39719 |1656=79.37070 |1657=64.84755 |1658=41.54296 |1659=46.94692 |1660=54.03963 |1661=45.25819 |1662=48.97341 |1663=48.97341 |1664=48.97341 |1665=42.21846 |1666=42.21846 |1667=45.25819 |1668=46.94692 |1669=43.56945 |1670=42.89395 |1671=43.56945 |1672=43.23170 |1673=41.20521 |1674=44.58269 |1675=41.20521 |1676=41.54296 |1677=41.54296 |1678=40.86747 |1679=40.52972 |1680=46.60918 |1681=47.62242 |1682=38.84098 |1683=38.84098 |1684=38.84098 |1685=42.21846 |1686=39.51648 |1687=39.17873 |1688=35.80125 |1689=37.15224 |1690=37.48999 |1691=38.50323 |1692=37.48999 |1693=35.12576 |1694=37.15224 |1695=34.45026 |1696=40.52972 |1697=39.17873 |1698=37.48999 |1699=40.86747
The numbers should be easier to copy and paste in source mode. Zoozaz1 talk 01:30, 5 July 2021 (UTC)
Related - Template:Inflation/fn|PL:
Does the OECD data (starts at ~1989 in Inflation 1800-2000) is used in the dataset? Mitchell: I may be wrong, buy most likely the only one of his sources that has data for Poland is probably Europe 1750-1993.
Ref for convenience: 1914 to 2007: 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
Template:Inflation/PL/dataset:
Missing years - 1940-1944 and 1915-1919, would be good to set them to 0.
1848/9 - it seems that from 1949 there's another index used (or some other calculation is applied), can you (Zoozaz1, or someone else) explain to me how 1949 (8139.90909090909) was calculated? (I can't see formulas in the source, only color codes [4], if it has any meaning.)
Reference:
1948=7786
1949=8139.90909090909 MarMi wiki ( talk) 19:15, 19 July 2021 (UTC)
Is the Inflation/CH referencing the wrong dataset? I could well be missing something but it seems to using the Inflation/IN/dataset rather than the CH one. Jc5732 ( talk) 12:25, 21 August 2021 (UTC)
I'm writing this after noticing the following output of the Inflation template, in the article Margaret Brown:
"[Brown] also received a $700 monthly allowance (equivalent to $20,163 in 2020) to continue her travels and social work."
The problem here is that $20,163 is being reported to 5 significant digits, far beyond the precision of the calculation.
Inflation calculations are always approximate, because many very varied price histories are combined to obtain a useful average. In this case the starting figure is $700 in 1909. That probably represents only 2 significant digits. Then the amount reported should be rounded to the nearest $100, for a result in this case of $20,200 in 2020.
My point, then, is that the Inflation template should only report 2 or possibly 3 digits of precision. Dratman ( talk) 23:05, 28 September 2021 (UTC)
This
edit request to
Template:Inflation/US/dataset has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
2021 data for the US is now available and the dataset and related parts of the template may now be updated. 2600:6C64:507F:E6E1:C8CE:2644:2AE1:1025 ( talk) 17:58, 16 April 2022 (UTC)
Hello, I seem to be having some trouble using the NZ index. @ Zoozaz1 and I have updated the data on {{ Inflation/NZ/dataset}}, and the {{ Inflation/fn}} and {{ Inflation/year}} have been updated correctly (thanks @ Paine Ellsworth), but it seems to generate "NaN" errors when I try and use it. I have some tests on my sandbox page, and I started a topic on Template talk:Inflation/NZ/dataset before realising I should bring it up here. Any help greatly appreciated! Cheers — Jon ( talk) 03:27, 20 May 2022 (UTC)
This
edit request to
Template:Inflation/UK/dataset,
Template:Inflation/year and
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
This is a request to update the UK dataset to 2020. The 2020 value is obtained with Initial Year 2010 and Ending Year 2020 at The Annual RPI and Average Earnings for Britain, 1209 to Present (New Series).
1. In Template:Inflation/UK/dataset:
Before:
| 2019 | #default= 129.159
After:
| 2019 = 129.159 | 2020 | #default= 131.082
2. In Template:Inflation/year:
| UK|GBP = 2019
| UK|GBP = 2020
3. In Template:Inflation/fn:
| UK =
should be updated.Thank you very much. ネイ ( talk) 10:48, 2 December 2021 (UTC)
| 2020 | #default= 131.082
| 2020 = 131.082 | 2021 | #default= 136.404
| UK|GBP = 2020
| UK|GBP = 2021
| UK =
should be updated.It seems that when using non-named parameters (numbered arguments) for the index and amount, the template is whitespace sensitive (it shouldn't be? Update: or at least, other templates seem to handle it; I got a bit lost reading
this and
this). It's could be underlying Lua code, but I can't tell from here. e.g. {{inflation|NZ|100000| start_year=1970 | fmt=eq | r=-4}}
works, but not {{inflation | NZ | 100000 | start_year=1970 | fmt=eq | r=-4}}
(note the spaces around the NZ and 100000). Respectively: "equivalent to $1,670,000 in 2021" and "Error when using {{
Inflation}}: |index= NZ
(parameter 1) not a recognized index.". —
Jon (
talk) 23:33, 22 May 2022 (UTC)
|index= NZ
), but not positional ones like in your example above. Nothing in this template uses Lua, but if it did stripping off the whitespace would be trivial. As it is, given the number of times that the index is used, stripping whitespace from each instance would be very inefficient. --
Ahecht (
TALKIs there a bot that is searching for articles that don't use the inflation template but could/should be? Are there discussions on why we shouldn't do this? Can we at least create a bot which finds these articles and then recommends them to editors automatically? If its a matter of creating said bot I would gladly help. MrSirGuyFriendBuddyOlPal ( talk) 00:09, 3 August 2022 (UTC)
This
edit request to
Template:Inflation has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can the test for start_year being greater than end_year be removed? Right now I'm getting Error when using Inflation: start_year=2022 (parameter 3) is greater than end_year=2015 (parameter 4).
It would allow for use of the template in reverse calculations, like in the Minimum wage in Germany (values in 2015 euros). Tracerneo ( talk) 07:46, 5 August 2022 (UTC)
This template is not usable for euros. Is there another that allows us to convert historical euros (e.g., 2013) to their present value (or whatever latest year for which there is data)? Thanks! — Spike Toronto 09:39, 16 October 2022 (UTC)
I am going to document my work process here, in case I am doing it wrong.
There is no conversion factor in this template for euros! So I will make one.
As far as I can tell, it would be pretty simple: create Template:Inflation/EU and then create Template:Inflation/EU/dataset to populate it.
My buddy who knows quite a lot about economics tells me that you can get CSV tables from FRED that document CPI inflation for euros here: https://fred.stlouisfed.org/graph/fredgraph.csv?bgcolor=%23e1e9f0&chart_type=line&drp=0&fo=open%20sans&graph_bgcolor=%23ffffff&height=450&mode=fred&recession_bars=off&txtcolor=%23444444&ts=12&tts=12&width=1168&nt=0&thu=0&trc=0&show_legend=yes&show_axis_titles=yes&show_tooltip=yes&id=CPHPTT01EZM659N&scale=left&cosd=1997-01-01&coed=2022-09-01&line_color=%234572a7&link_values=false&line_style=solid&mark_type=none&mw=3&lw=2&ost=-99999&oet=99999&mma=0&fml=a&fq=Monthly&fam=avg&fgst=lin&fgsnd=2020-02-01&line_index=1&transformation=lin&vintage_date=2022-12-14&revision_date=2022-12-14&nd=1997-01-01
Am I missing out on something significant? jp× g 23:14, 14 December 2022 (UTC)
Let's say we have 50,000 francs in the year 1830 -- I want to know what is going on when I type the following.
Francs were converted to Euros at 1 euro for 6.55957 FRF on 31 December 1998 -- is it giving Euros in 2022, or francs in 1998? Or something else? jp× g 10:55, 14 December 2022 (UTC)
I'm trying to show an equivalent amount for a pre-decimal penny from 1830, and showing the equation {{Inflation|UK|{{Pounds, shillings, and pence|d=1}}|1830|fmt=eq|cursign=£}} gives "equivalent to £0 in 2023", which isn't much of a help! Has anyone got a way to show this - even if it ends up showing a fraction of a modern amount? Thanks - SchroCat ( talk) 17:28, 21 February 2023 (UTC)
Probably because of housecleaning at the Minneapolis Federal Reserve bank web site, the US template includes a dead link. The link that works is here, but I don't know how to fix templates. If you know how to fix this one, please do. Finetooth ( talk) 16:19, 25 February 2009 (UTC)
I'd like propose a change to this template to either remove the final period from the footnote produced or to at least make it optional by adding a "postscript" parameter as in {{ citation}}. -- Malleus Fatuorum 20:12, 4 February 2010 (UTC)
Is there an equivalent of this without the ref tags? If I'm putting the {{ inflation}} info itself in a footnote, I don't want another footnote linked to from within that, I just want the whole lot inline. Does that make sense? Pseudomonas( talk) 09:58, 17 October 2009 (UTC)
The current template produces a footnote of "Federal Reserve Bank of Minneapolis. Retrieved December 7, 2010" Is there any way of producing one that could produce one as "Federal Reserve Bank of Minneapolis. Retrieved 7 December 2010"? (Or is there a version that does that already?) I've had comments from reviewers of articles who want to see all the dates in the same format if possible. Cheers. - SchroCat ( ^ • @) 17:52, 5 October 2011 (UTC)
|df=yes
--
Redrose64 (
talk) 19:14, 5 October 2011 (UTC)
The docs say "When no country parameter is provided, or when an invalid country is provided, the generated footnote is a generic one:" but the examples, {{Inflation-fn}} and {{Inflation-fn|xyz}}, do not seem to be generating anything at all. — mjb ( talk) 22:06, 9 April 2011 (UTC)
At it currently stands that footnote generated by this template reads "Consumer Price Index (estimate) 1800–2008." I note, however, that the page title reads "CONSUMER PRICE INDEX (ESTIMATE) 1800-" Could the template be adjusted to show the correct title, i.e. to remove the 2008 date? Cheers - SchroCat ( ^ • @) 07:56, 9 October 2011 (UTC)
Some of the references specify that the values are generated automatically and some don't. I think it's important to include that the values are generated automatically and what the source/methodology is. How can I have it automatically include that info? Emschorsch ( talk) 03:30, 26 March 2016 (UTC)
I've noticed that the "Retrieved by" dates are not showing in footnotes, although I seem to remember that is always uaws to. Was there a decision to stop showing the date, or is this an error? Cheers - SchroCat ( talk) 12:55, 13 June 2016 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I'd like to add |UK-CAP after |UKNGDPPC and |US-CAP after |US-NGDPPC, as aliases. These are much easier for editors to remember, and the template redirects are already set up for them. Documentation and preferred use can be worked out after they're proven to work. SilverbackNet talk 03:10, 11 April 2017 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I request that the UK inflation index be updated to the 2016 value. According to The Annual RPI and Average Earnings for Britain, 1209 to 2016 (New Series), starting with £100 in the year 2010, that value will be £117.665 in 2016. So I have 3 requests.
Thank you for your time. 50.64.119.38 ( talk) 16:10, 5 November 2017 (UTC)
The Federal Reserve Bank of Minneapolis Community Development Project link referenced by the template for U.S. dollar CPI calulations is no longer available and gives a 404 page. Something new is needed, since an archived link is pointless for a page that performs a calculation. — Marcus( talk) 18:16, 31 December 2017 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please can somebody update the index for the US entry to 2017?
i.e. Replace {{Inflation-year|US}} = 2016
with {{Inflation-year|US}} = 2017
We are getting a multitude of errors at articles such as List_of_highest-grossing_films_in_Canada_and_the_United_States#Not_adjusted_for_inflation now that the year has progressed to 2018. I have updated the dataset but currently the 2017 entry is out of bounds until we update the year here. Best regards. Betty Logan ( talk) 11:45, 2 January 2018 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the Inflation year of India to 2017. TIA! :) Anirudh Emani ( talk) 20:44, 6 January 2018 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please make US-CAP and UK-CAP aliases for US-GDP and UK-GDP respectively. The previous series (US-/UK-NGDPPC) were introduced in error – and this has been fixed now (see Template talk:Inflation). cherkash ( talk) 04:05, 13 January 2018 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Time to remove the UK-NGDPPC and US-NGDPPC lines altogether now (all the references to them in other articles are fixed now: See Template talk:Inflation for details). Imzadi1979, will you do the honors? cherkash ( talk) 22:27, 13 January 2018 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can an administrator please update inflation data year for
India (IN) to 2017. As per this
reference. I have already updated dataset on
Template:Inflation/IN/dataset, and thereby, for
Template: INRConvert. Also, I have updated the reference on
Template:Inflation-fn.
Regards,
SshibumXZ (
Talk) (
Contributions). 13:04, 24 January 2018 (UTC)
This template really needs support for more use scenarios, such as shortened footnotes and nested footnotes. The current use case pretty much only works for the scenario where you have the full citation inline in the article text.
To do this there are two variables that need to be controllable: whether the output is wrapped in ref
-tags, and whether and what |ref=
parameter is passed to the underlying citation template. There also needs to be consistency on whether the output is a citation or an explanatory note. Compare:
References
(there is also some weird extra HTML wrapped around the US output for some reason).
I would propose something along the lines of moving most of the logic and citation data into a Lua module (handling logic in template syntax is… challenging), with the citation data in configuration tables, and turning the template into a thin wrapper. The output could then vary based on {{
inflation-fn|US|mode=shortened}}
(short author—date ref, linked to same ID generated by |mode=full
), {{
inflation-fn|US|mode=full}}
(full cite without ref
tags, generates same ID as |mode=shortened
), {{
inflation-fn|US|mode=inline}}
(default, what it does today), and maybe {{
inflation-fn|US|mode=nested}}
(if that is still necessary).
The cost and downsides would be having to write the Lua module in the first place, having to maintain the citation data there (instead of the template), and maintaining a more complex system.
Thoughts? Opinions? -- Xover ( talk) 07:04, 28 December 2017 (UTC)
This
edit request to
Template:Inflation-year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can add to inflation data year for South Korea (KRW) to 2017? -- The Snail is Reading a Book (Discuss with User) 11:46, 13 April 2018 (UTC)
This
edit request to
Template:Inflation-fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
{{Inflation-fn}}'s KRW references > {{#tag:ref|Statistics Korea(Index.go.kr)'s inflation [http://www.index.go.kr/potal/stts/idxMain/selectPoSttsIdxSearch.do?idx_cd=2909 Chart]. Checked 2018/4/3 |name="inflation-KRW"|group={{{group|}}}}} -- The Snail is Reading a Book (Discuss with User) 11:36, 13 April 2018 (UTC)
Please update Canada's inflation to 2017. The new value of 130.4 from Statscan is already inputted. Thank you. Keith 11:04, 22 April 2018 (UTC) — Preceding unsigned comment added by Keith o ( talk • contribs)
The docs for several of the template parameters claim This must been done each time the template is called in an article, or there will be an error message in the reference list.
Aside from the grammatical issues ("been" instead of "be", at a minimum), that claim doesn't appear to be accurate. Observe:
To promote consistency with an article that uses |last-author-amp=
to join the last author in a list with an ampersand, footnotes that list multiple authors and the {{
cite web}} base template can also use this parameter. This must been done each time the template is called in an article, or there will be an error message in the reference list.
{{
Inflation/fn|US-GDP|last-author-amp=yes}}
=
[1]{{
Inflation/fn|US-GDP}}
=
[1]If I'm interpreting it correctly, the quoted admonishment is implying that the second call above would cause an error, by not repeating the |last-author-amp=yes
parameter. But in reality, it doesn't seem to cause any problem at all. Should we just remove the "This must been done each time the template is called in an article, or there will be an error message in the reference list." admonishment from the various documentation sections where ti appears? Or is it still accurate for some parameters other than |last-author-amp=
? --
FeRD_NYC (
talk) 14:03, 9 August 2018 (UTC)
<ref name="inflation-US">…</ref>
which will generate an error message if two ref tags with the same name have different content (date format, last auth amp, etc.). See
H:CERDK. If you use a web inspector type tool you'll see that your example above contains the following:
<span class="error mw-ext-cite-error" lang="en" dir="ltr"><span class="brokenref">Cite error: <span class="brokenref">Invalid <code><ref></code> tag; name "inflation-USGDP" defined multiple times with different content (see the <a href="/info/en/?search=Help:Cite_errors/Cite_error_references_duplicate_key" title="Help:Cite errors/Cite error references duplicate key">help page</a>).</span></span>
</span>
span.brokenref { display: none }
This
edit request to
Template:Inflation has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update ZAR
inflation year to 2016
as per update on
Template:Inflation/ZAR/dataset. When done, please update year in
Template:Inflation/year/doc and
Template:Inflation/doc to correlate. Thanks,
Waddie96 (
talk) 15:42, 24 September 2018 (UTC)
This page shows the format as Inflation/year where the format shown on Template: Inflation shows it to be Inflation-year in its examples. I just tried this in the Great Chicago Fire article, and it works with Inflation-year, not using the slash character /. Is the separator character irrelevant? I did not try it with the / as I am spending my time on millions to billions reading correctly. Could both articles match each other, or explain why each page shows a different character? -- Prairieplant ( talk) 23:17, 25 September 2018 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the inflation year for Canada to 2017. The dataset and the references were updated several months ago. Alaney2k ( talk) 19:50, 6 October 2018 (UTC) Alaney2k ( talk) 19:50, 6 October 2018 (UTC)
This template appears to create duplicate reference definitions. For example, the "filming" section of Dr. No (film) invokes this template twice, and ends up with duplicate definitions of a reference named "inflation-UK". How can these errors be corrected? It seems like the template should create identical reference text for each invocation, but it apparently does not do so. How can multiple invocations of the template safely be used on the same page, without causing duplicate reference errors? -- Mikeblas ( talk) 14:13, 29 September 2018 (UTC)
(
edit conflict) Yeah, something is broken. I assert that it is MediaWiki's handling of TemplateStyles. There are no restrictions on what may be made part of a reference. Any template that uses TemplateStyles may be used within a reference so the problem is not confined to the cs1|2 templates; cs1|2, being the most common templates used in references, just happen to reveal the problem. MediaWiki handles template styles by insertion of a stripmarker where the template includes the <templatestyles src="Module:Citation/CS1/styles.css" />
; for cs1|2 at the tale end of the rendering. After cs1|2 has done its thing and after MediaWiki has discovered and flagged the duplicate-ref-different-text errors, then, MediaWiki replaces the stripmarker with the value of the stripmarker (I don't know exactly what that is; css file name? content of the css file?).
Stripmarkers are unique, even when they point to the same thing, because templates are processed in isolation from each other so that processing knows nothing about what has come before. Here are the code-view renderings of two identical {{
cite web}}
templates; stripmarkers are at the tail ends:
{{cite web |title=Title |url=//example.com}}
→
"Title".
'"`UNIQ--templatestyles-0000006F-QINU`"'<cite class="citation web cs1">[//example.com "Title"].</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Title&rft_id=%2F%2Fexample.com&rfr_id=info%3Asid%2Fen.wikipedia.org%3ATemplate+talk%3AInflation%2FArchive+2" class="Z3988"></span>
'"`UNIQ--templatestyles-00000071-QINU`"'<cite class="citation web cs1">[//example.com "Title"].</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Title&rft_id=%2F%2Fexample.com&rfr_id=info%3Asid%2Fen.wikipedia.org%3ATemplate+talk%3AInflation%2FArchive+2" class="Z3988"></span>
I can do nothing to fix this so you-all should report it at phabricator. — Trappist the monk ( talk) 15:01, 30 September 2018 (UTC)
<ref name="duplicate name">...</ref>
tags; identical named references references in article space don't show an error. This template though uses the {{#tag:ref}}
magic word. Apparently, handling of that is different from how the <ref name="duplicate name">...</ref>
tag is handled.{{#tag:ref|{{cite web |title=Title |url=//example.com}}|name="test1"}}
and <ref name="test1">{{cite web |title=Title |url=//example.com}}</ref>
{{#tag:ref}}
):
{{#tag:ref|{{cite web |title=Title |url=//example.com}}|name="test2"}}
and {{#tag:ref|{{cite web |title=Title |url=//example.com}}|name="test2"}}
<ref>...</ref>
):
<ref name="test3">{{cite web |title=Title |url=//example.com}}</ref>
and <ref name="test3">{{cite web |title=Title |url=//example.com}}</ref>
If you consider
<ref name="test3">{{cite web |title=Title |url=//example.com}}</ref>
and <ref name="test3">{{cite web |title=Title |url=//example.com}}</ref>
<ref name="test4">{{cite book |title=Title |url=//example.com}}</ref>
and <ref name="test4">{{cite book |title=Title |url=//example.com}}</ref>
But not in my sandbox, I suppose that is because I'm working in userspace. CV9933 ( talk) 16:03, 1 October 2018 (UTC)
<ref>...</ref>
tags. In your
Estradiol cypionate example the two <ref name="ArunNarendra2012">
references clearly have different page numbers so were different:
{{cite book|author1=Nagrath Arun|author2=Malhotra Narendra|author3=Seth Shikha|title=Progress in Obstetrics and Gynecology--3|url=https://books.google.com/books?id=AS3UBAAAQBAJ&pg=PA416|date=15 December 2012|publisher=Jaypee Brothers Medical Publishers Pvt. Ltd.|isbn=978-93-5090-575-3|pages=416–418}}
{{cite book|author1=Nagrath Arun|author2=Malhotra Narendra|author3=Seth Shikha|title=Progress in Obstetrics and Gynecology--3|url=https://books.google.com/books?id=AS3UBAAAQBAJ&pg=PA419|date=15 December 2012|publisher=Jaypee Brothers Medical Publishers Pvt. Ltd.|isbn=978-93-5090-575-3|pages=419–}}
<ref name="ArunNarendra" />
are all properly named. If you cannot determine which ref name goes where, do not attempt a fix, post a note on the article talk page and ping the editor who inserted the references.Sick of this error The template is broken, phabricator is not an answer. Why hasn't this change been reverted? How do I fix it? Hawkeye7 (discuss) 06:52, 13 October 2018 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the following:
| ERR = <span class="error">Error: no index specified when using {{tl|Inflation-year}}.{{main other|[[Category:Pages with errors in inflation template]]}}</span> |#default = <span class="error">Error: undefined index "{{{index|{{{1}}}}}}" when using {{tl|Inflation-year}}.{{main other|[[Category:Pages with errors in inflation template]]}}</span>
with this:
| ERR = <span class="error">Error: no index specified when using {{tl|Inflation/year}}.{{main other|[[Category:Pages with errors in inflation template]]}}</span> |#default = <span class="error">Error: undefined index "{{{index|{{{1}}}}}}" when using {{tl|Inflation/year}}.{{main other|[[Category:Pages with errors in inflation template]]}}</span>
This is simply to update the name of the template to match its current name. Jdaloner ( talk) 19:18, 16 October 2018 (UTC)
The original link for German cost of living data has gone dead due to a website redesign. I've temporarily replaced it with a link to the archived version just to avoid {{ dead link}} showing up on a bazillion articles. A permanent fix would be to replace the link with the new location for that data, but in the mean time they've rebased the calculations to 2010 (used to be 2000) so more updates than the link are needed in that case. And that's more significant changes than I'm comfortable making just now. -- Xover ( talk) 06:26, 6 July 2018 (UTC)
@ Alex 21: Thanks for the edits! However, the UK-GDP entry which you changed here seems to be a separate dataset that's still on 2016. Daß Wölf 15:45, 27 January 2019 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the inflation year for Canada to 2018. The dataset and the references have been updated. Alaney2k ( talk) 18:14, 6 March 2019 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the inflation year for India to 2018. The dataset has been updated. EcoWizard ( talk) 23:39, 12 March 2019 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can someone please update the US-GDP year to 2018? I updated the dataset and the footnote. Thanks, Daß Wölf 23:14, 6 April 2019 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update latest year for JP per the dataset update that was done in March. Thanks. CrimsonFox talk 08:38, 9 July 2019 (UTC)
| JP = 2019
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the end year values for AU, AU-road, PH, and ZAR to 2018, 2018, 2019, and 2018 respectively (because of these dataset updates plus this made by me). It should look like these:
|AU = 2018 |AU-road = 2018 |PH = 2019 |ZAR = 2018
Regards, Eye snore 20:12, 13 January 2020 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the inflation year for India to 2019. The dataset has been updated. EcoWizard ( talk) 00:56, 20 March 2020 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Change latest inflation end year for Pakistan to 2018; from | PK = 2013
to | PK = 2018
. I have updated the relevant
dataset.
Idell (
talk) 08:39, 18 June 2020 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add the follow to the template:
| IR = 1398
Benyamin (
talk) 23:48, 25 June 2020 (UTC)
This
edit request to
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the reference for Canada (CA)
From:
| CA = {{#tag:ref|Canadian inflation numbers based on Statistics Canada tables 18-10-0005-01 (formerly CANSIM 326-0021) {{cite web |publisher=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000501#timeframe |title=Consumer Price Index, annual average, not seasonally adjusted |accessdate=March 6, 2019|date = January 18, 2019}} and 18-10-0004-13 {{cite web |website=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000413#timeframe |title=Consumer Price Index by product group, monthly, percentage change, not seasonally adjusted, Canada, provinces, Whitehorse, Yellowknife and Iqaluit |accessdate=March 6, 2019}} |name = "inflation-CA" |group={{{group|}}}}}
to
| CA = {{#tag:ref|Canadian inflation numbers based on Statistics Canada tables 18-10-0005-01 (formerly CANSIM 326-0021) {{cite web |publisher=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000501#timeframe |title=Consumer Price Index, annual average, not seasonally adjusted |accessdate=November 15, 2020|date = November 15, 2020}} and 18-10-0004-13 {{cite web |website=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000413#timeframe |title=Consumer Price Index by product group, monthly, percentage change, not seasonally adjusted, Canada, provinces, Whitehorse, Yellowknife and Iqaluit |accessdate=November 15, 2020}} |name = "inflation-CA" |group={{{group|}}}}}
Thanks in advance Alaney2k ( talk) 21:17, 15 November 2020 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I have added the dataset for Singapore inflation, to be used for Singapore related articles. Please add the following line to the template:
| SG = 2020
Thanks. – robertsky ( talk) 17:14, 25 January 2021 (UTC)
This
edit request to
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please include the following reference for the Singapore dataset which I have added for the Inflation template to be used for Singapore related articles:
| SG = {{#tag:ref|{{cite web|url=https://www.tablebuilder.singstat.gov.sg/publicfacing/createDataTable.action?refId=16842|title=M212931 - Consumer Price Index (CPI), 2019 As Base Year, Annual|publisher= Department of Statistics, Singapore|access-date=26 January 2021|date=25 January 2021}} |name = "inflation-SG" |group={{{group|}}}}}
List of pages created (based largely on BD pages):
Related request: Template talk:Inflation/year#Template-protected edit request on 26 January 2021.
Let me know if I need to update anything. Thanks in advance. – robertsky ( talk) 17:14, 25 January 2021 (UTC)
References
This
edit request to
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I've created an article about the MeasuringWorth website, and we could link to it in footnotes that use that site. A replacement of "work = MeasuringWorth" by "work = MeasuringWorth" in this template might do the trick. Since people won't click through to it very often, perhaps it's not worth the trouble. Sometimes pages have so much wikicode that they exhaust the Wikipedia back end. I trust your decision on this, templateers. -- econterms ( talk) 23:16, 3 February 2021 (UTC)
This
edit request to
Template:Inflation/year has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I have updated the dataset for Canada inflation to 2020. Please update the CA param to 2020:
| CA = 2020
Thanks in advance,
Alaney2k ( talk) 16:50, 17 April 2021 (UTC)
This
edit request to
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please update the reference for Canada (CA)
From:
| CA = {{#tag:ref|Canadian inflation numbers based on Statistics Canada tables 18-10-0005-01 (formerly CANSIM 326-0021) {{cite web |publisher=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000501#timeframe |title=Consumer Price Index, annual average, not seasonally adjusted |accessdate=November 15, 2020|date = November 15, 2020}} and 18-10-0004-13 {{cite web |website=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000413#timeframe |title=Consumer Price Index by product group, monthly, percentage change, not seasonally adjusted, Canada, provinces, Whitehorse, Yellowknife and Iqaluit |accessdate=November 15, 2020}} |name = "inflation-CA" |group={{{group|}}}}}
to: (the urls are the same, but the accessdate is changed, and there is not a date provided by Stats Can on the table, so I have removed it)
| CA = {{#tag:ref|Canadian inflation numbers based on Statistics Canada tables 18-10-0005-01 (formerly CANSIM 326-0021) {{cite web |publisher=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000501#timeframe |title=Consumer Price Index, annual average, not seasonally adjusted |access-date=April 17, 2021}} and table 18-10-0004-13 {{cite web |website=Statistics Canada |url=https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1810000413#timeframe |title=Consumer Price Index by product group, monthly, percentage change, not seasonally adjusted, Canada, provinces, Whitehorse, Yellowknife and Iqaluit |access-date=April 17, 2021}} |name = "inflation-CA" |group={{{group|}}}}}
I have tested this in the sandbox.
Thanks in advance. Alaney2k ( talk) 17:17, 17 April 2021 (UTC)
This
edit request to
Template:Inflation/fn has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Add
| CH = {{#tag:ref|Switzerland inflation numbers based on FSO-EN to 2015, FSO-DE 2015-2021 {{cite web |publisher=Federal Statistical Office |url=https://www.bfs.admin.ch/bfs/en/home/statistics/prices/consumer-price-index.assetdetail.17084204.html |title=CPI, Global index on all index bases |access-date=May 14, 2021}} and table 18-10-0004-13 {{cite web |website=Federal Statistical Office |url=https://www.bfs.admin.ch/bfs/en/home/statistics/prices/consumer-price-index.assetdetail.17084203.html |title=LIK, Totalindex auf allen Indexbasen |access-date=May 14, 2021}} |name = "inflation-CH" |group={{{group|}}}}}
above CA listing Zoozaz1 talk 00:03, 15 May 2021 (UTC)