This template defaults to calculating the inflation of Consumer Price Index values: staples, workers' rent, small service bills (doctor's costs, train tickets). For inflating capital expenses, government expenses, or the personal wealth and expenditure of the rich, the US-GDP or UK-GDP indexes should be used, which calculate inflation based on the gross domestic product (GDP) for the United States and United Kingdom, respectively.
Do not assume that using this template will mean that a calculated value is "current", "as of 2024", "as of 2023" or even necessarily "recent". Per , statements made using this template should either specify an end_year, or rely on |fmt=eq or {{Inflation/year}} to automatically indicate the latest year this template provides an inflation calculation. Do not use {{CURRENTYEAR}}.
This template calculates inflation based on several inflation index data sets. The template uses an identification code for an inflation index (usually a country code), an original value, an original start_year and either a specific reference end_year or by default the latest currently available end year,[1] and calculates the equivalent value from historical economic changes between the original and reference years. For example, this template calls the United States inflation table located in the sub-template Template:Inflation/US/dataset to perform the U.S. calculation.
Aside from a convenient way to calculate values from different specified time periods, this template allows a regularly automatically updated calculation of value based on the most recent available inflation data. Whenever inflation tables are updated, potentially annually, all articles using this template have their displayed values updated accordingly.
|index= (parameter 1), required, an index code for one of several available inflation indexes.
|value= (parameter 2), required, original price or value from which to base the inflation calculation on. Will ignore any commas, but must not have a currency symbol.
|start_year= (parameter 3), required, original year from which to base the inflation calculation on. 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.
|end_year= (parameter 4), optional, reference year for which to calculate inflation. Must be higher (later) than start_year, but not higher than the highest (most recent) year available in the chosen inflation index, and will default to the highest (most recent) available year if omitted.
|r=digit sets the digits to which the value must be rounded. A negative value indicates rounding to an upper significant digit, and a positive value indicates a fractional digit including trailing zeros. Defaults to 0, i.e., without cents.
|cursign= will set the currency symbol to be shown. Only functions when |fmt=eq is used. Can use advanced symbol formats, but can only precede the calculated value. Default is $.
|orig=yes will display the original value too, with the currency sign provided.
Y{{Inflation|KRW|100|2000}} → Ошибка выражения: неопознанный символ пунктуации «[»
Y{{Inflation|DE|100|2000}} → Ошибка выражения: неопознанный символ пунктуации «[»
Y{{Inflation|US|595|1982}} → Ошибка выражения: неопознанный символ пунктуации «[»
Y{{Inflation|US|595|1982|fmt=eq}} → Ошибка выражения: неопознанный символ пунктуации «[»
Y{{Inflation|US|800|1942|fmt=eq|r=-3}} → Ошибка выражения: неопознанный символ пунктуации «[»
Y{{Inflation|US|100|2010|2012|fmt=eq|r=2}} → Ошибка выражения: неопознанный символ пунктуации «[»
YUS$595 ({{Inflation|US|595|1982|fmt=eq}}) → US$595 (Ошибка выражения: неопознанный символ пунктуации «[»)
YUS$595 ({{Inflation|US|595|1982|fmt=eq|cursign=[[United States dollar|US$]]}}) → US$595 (Ошибка выражения: неопознанный символ пунктуации «[»)
Y$21 million (equivalent to ${{Inflation|US|21|2005|r=2}} million in {{Inflation/year|US}}) → $21 million (equivalent to $Ошибка выражения: неопознанный символ пунктуации «[» million in 2021)
Y{{Inflation|UK|1|1209|fmt=eq|cursign=£}} → Ошибка выражения: неопознанный символ пунктуации «[»
Y{{Inflation|AU|100|2024|fmt=eq}} → Ошибка выражения: неопознанный символ пунктуации «[»
Y${{Inflation|US|100|2024}} in {{Inflation/year|US}} → $Ошибка выражения: неопознанный символ пунктуации «[» in 2021
Y{{Inflation|UK|100|1982|fmt=eq|orig=yes|cursign=£}} → Ошибка выражения: неопознанный символ пунктуации «[»)
NАшаблон:!mxt → Ошибка выражения: неопознанный символ пунктуации «[» (Omitting the |cursign= parameter will show the $ symbol by default, which is the wrong currency symbol for British currency)
Y{{Inflation|UK|10|1971|fmt=eq|cursign=£}} → Ошибка выражения: неопознанный символ пунктуации «[»
NАшаблон:!mxt → $595 ($Ошибка выражения: неопознанный символ пунктуации «[» today) (Misleading time reference)
NАшаблон:!mxt → $595 ($Ошибка выражения: неопознанный символ пунктуации «[» in 2024) (Misleading time reference)
NАшаблон:!mxt → $100 ($Ошибка выражения: неопознанный символ пунктуации «[» adjusted for inflation) (Misleading time reference)
Y$595 ({{Inflation|US|595|1982|fmt=eq}}) → $595 (Ошибка выражения: неопознанный символ пунктуации «[»)
Y$595 (equivalent to ${{Inflation|US|595|1982|fmt=c}} in {{Inflation/year|US}}) → $595 (equivalent to $Ошибка выражения: неопознанный символ пунктуации «[» in 2021)
NАшаблон:!mxt → Jane Doe amassed a fortune of $1 billion in 1975, making her worth $Ошибка выражения: неопознанный символ пунктуации «[» billion in 2021. (CPI is not for personal wealth of the wealthy – use GDP deflator instead)
NАшаблон:!mxt → Jane Doe amassed a fortune of $1 billion in 1975, equivalent to $Ошибка выражения: неопознанный символ пунктуации «[» billion in 2021. (CPI is not for personal wealth of the wealthy – use GDP deflator instead)
YJane Doe amassed a fortune of $1 billion in 1975, equivalent to ${{Inflation|US-GDP|1|1975|fmt=c}} billion in {{Inflation/year|US-GDP}}. → Jane Doe amassed a fortune of $1 billion in 1975, equivalent to $Ошибка выражения: неопознанный символ пунктуации «[» billion in 2021
Many datasets are currency agnostic, which means they don't convert between different currencies. Thus, if you wanted to know today's equivalent value of 1,000.00 Austrian schillings in 1960, entering {{Inflation|AT|1000|1960|r=2}} would provide a result (Ашаблон:Xtn) still in schillings, not in euros.
Consequently, if you need a result in a currency other than the one in which the original value is stated, for now you must do the conversion manually, as in the following example which uses the defined conversion rate of 13.7603 schillings to one Euro:
The template does not accept non-decimal inputs such as £sd; these must be decimalized beforehand. For example, if you wanted to know the value of three shillings and sixpence (3s 6d) Sterling in 1950 in 2018, you must convert to the appropriate decimal value (in this case £0.175) for use in the template:
Y{{Inflation|GBP|0.175|1950|2018}} → Ошибка выражения: неопознанный символ пунктуации «[»
For £sd specifically {{Pounds, shillings, and pence}} can be used to convert to decimal. For other non-decimal currencies, such as the old Indian rupee, templates can be made for decimalization upon request.
Y{{Inflation|GBP|{{Pounds, shillings, and pence|s=3|d=6}}|1950|2018|r=0|fmt=eq|cursign=£}} → Ошибка выражения: неопознанный символ пунктуации «[»
Y{{Inflation|UK|{{Pounds, shillings, and pence|s=10|d=6}}|1865|fmt=eq|cursign=£}} → Ошибка выражения: неопознанный символ пунктуации «[»
By default the values are calculated to the unit, as for all but very low values cents are undesirable. You can specify rounding with the |r= parameter which determines the number of decimals. To obtain cents use |r=2, but other values can be used, including negative ones: |r=-3, for example, will round to the nearest thousand, |r=-6 to the nearest million, and so on. It is advisable to avoid false precision; even if the start value is known to be exact, the template's result will not be because the inflation index tables are rarely accurate to more than about 1%, and a granularity of whole years is used.
Very large results are expressed in scientific notation ("1.2E+14" instead of "120000000000000") which is normally not desirable. A workaround is to express the value to be inflated with fewer digits, adding a multiplier text such as "trillion" after the result, using the "Show preview" button as many times as needed, changing parameters until the best result is found:
Y${{Inflation|US-GDP|1000000000000|1900|r=-11|fmt=c}} → $Ошибка выражения: неопознанный символ пунктуации «[»
NАшаблон:!mxt → $Ошибка выражения: неопознанный символ пунктуации «[»
NАшаблон:!mxt → $Ошибка выражения: неопознанный символ пунктуации «[» thousand
Y${{Inflation|US-GDP|10000000|1900|r=-6|fmt=c}} million → $Ошибка выражения: неопознанный символ пунктуации «[» million
Y${{Inflation|US-GDP|10000|1900|r=-3|fmt=c}} billion → $Ошибка выражения: неопознанный символ пунктуации «[» billion
Y${{Inflation|US-GDP|10|1900|fmt=c}} trillion → $Ошибка выражения: неопознанный символ пунктуации «[» trillion
The following section provides an automated way of avoiding this trial and error scenario.
{{Format price}} is a template specifically designed to display price values, both big and small, in a readable way. For example, instead of showing the whole of a huge number such as "953,783,409,856.12", it would show it as "Ашаблон:Format price", while small numbers have their cents part appearing as expected, "1234.5" being properly shown as "Ашаблон:Format price".
It's a good practice to provide a valid reference for the prices calculated with this template in articles where it's used. The template {{Inflation/fn}} was developed to ease this task. It accepts as its single parameter the same country codes used here, and will generate one or more appropriate footnotes. Typically, this is how a piece of text using it looks like:
In 1985 a unit cost on average $1,040. This is {{Inflation|US|1040|1985|fmt=eq}}.{{Inflation/fn|US}}
Resulting in this converted code (notice the footnote link at the end):
In 1985 a unit cost on average $1,040. This is Ошибка выражения: неопознанный символ пунктуации «[».[46]
The footnote thus generated appears whenever {{reflist}} or <references /> is used in an article, usually in its "References" section. See below for the live example in this document's own References section, or click the above generated footnote to jump to it.
Currently it isn't possible to "de-inflate" a value to what it would have been in a previous year. If you need this functionality, please request it at the talk page. Adding it won't be difficult, but there's no point in doing so before someone actually needs it.
Substitution isn't supported at all. Trying to {{subst:Inflation|...}} would only result in a long sequence of embedded parser code without any direct benefit. If you need to obtain an inflated price only once, please use the special ExpandTemplates page then copy the result and paste it at the desired location.
Historical Prices and Wages (HPW): Datafiles: Includes Inflation 1800-2000, which has data for a very large number of countries, most dating back to the early 20th century and ending in 2007, and various other very long term datafiles.
Здесь приведена документация в формате TemplateData для данного шаблона, которая используется в визуальном редакторе и прочих инструментах.
Документация TemplateData для шаблона: Inflation
This template calculates inflation based on several inflation index data sets.
Note that this template defaults to calculating the inflation of Consumer Price Index values: staples, workers' rent, small service bills (doctor's costs, train tickets). For inflating capital expenses, government expenses, or the personal wealth and expenditure of the rich, the US-GDP or UK-GDP indexes should be used, which calculate inflation based on the [[gross domestic product]] (GDP) for the [[United States]] and [[United Kingdom]], respectively.
Шаблон использует строчное форматирование параметров.
Параметр
Описание
Тип
Статус
Index
index1
An index code for one of several available inflation indexes. One of AU, AU-road, BD, CA, DE, IN, JP, PH, PK, UK, UK-GDP, US, US-GDP, ZAR, and various others.
Пример
US
Строковый (без форматирования)
обязательный
Value
value2
Original price or value from which to base the inflation calculation on. Will ignore any commas.
Пример
1000
Число
обязательный
Start year
start_year3
Original year from which to base the inflation calculation on. 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.
Пример
1975
Число
обязательный
End year
end_year4
Reference year for which to calculate inflation. Must be higher (later) than 'Start year', but not higher than the highest (most recent) year available in the chosen inflation index, and will default to the highest (most recent) available year if omitted.
Пример
2015
Число
необязательный
Number of digits
r
Sets the digits to which the value must be rounded. A negative value indicates rounding to an upper significant digit, and a positive value indicates a fractional digit including trailing zeros. Defaults to 0.
По умолчанию
0
Пример
1
Число
необязательный
Format
fmt
"c" will insert thousands separator commas into the calculated value. "eq" will show an equivalent-to phrase, in the format, "equivalent to (cursign)(end_value) in (end_year)". Uses thousands separator commas.
Пример
eq
Строковый (без форматирования)
необязательный
Currency sign
cursign
Sets the currency symbol to be shown. Only functions when Format "eq" is used. Can use advanced symbol formats, but can only precede the calculated value. Default is $.
↑How recently depends on how the data set for each country is constructed, and on the internal tables being updated accordingly every January. Some data tables provide inflation data up to December 31, 2023, others up to roughly June-July 2023, and others yet up to December 31, 2022.
↑1864 to 1912: Jeffrey G. Williamson, 1998. Real Wages and Relative Factor Prices in the Third World 1820-1940: Latin America, Appendix, Nominal Wage, Cost of Living, Real Wage, and Land Price in Argentina, 1864-1940 Harvard Institute of Economic Research Working Papers 1853, Harvard - Institute of Economic Research, 1913 to 1993: 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, 1994 to 2020: Bank for International Settlements, Consumer prices
↑1850-1899: McLean, I.W. (1999), Consumer Prices and Expenditure Patterns in Australia 1850–1914. Australian Economic History Review, 39: 1-28. For later years, Australian Consumer Price Inflation figures follow the Long Term Linked Series provided in Australian Bureau of Statistics (2011) 6461.0 – Consumer Price Index: Concepts, Sources and Methods, 2011 as explained at §§3.10–3.11; this series comprises "from 1901 to 1914, the A Series Retail Price Index; from 1914 to 1946–47, the C Series Retail Price Index; from 1946–47 to 1948–49, a combination of the C Series Index, excluding rent, and the housing group of the CPI; and from 1948–49 onwards, the CPI." (3.10). Retrieved May 4, 2015
↑Inflated values automatically calculated using the "3101 Road and bridge construction Australia" series provided in Australian Bureau of Statistics (2014) 6427.0 – Producer Price Indexes, Australia, Mar 2014: Table 17 Output of the Construction industries, subdivision and class index numbers. Retrieved 14 June 2014.
↑1820 to 1911: Guilherme Alexandre Tombolo, O PIB brasileiro nos séculos XIX e XX: duzentos anos de flutuações econômicas – Curitiba, 2013 1912 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
↑1500 to 1850: Ulrich Pfister, 2010. "Consumer prices and wages in Germany, 1500 - 1850," CQE Working Papers 1510, Center for Quantitative Economics (CQE), University of Muenster. 1851-1882: 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. After 1883, German inflation numbers based on data available from the Deutsches Statistisches Bundesamtarchive and GENESIS database.
↑1915 to 1993: 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 1994 to 2018: World BankInflation, consumer prices (annual %) - Egypt, Arab Rep.
↑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
↑1833-1913: South-Eastern European Monetary and Economic Statistics from the Nineteenth Century to World War II, published by: Bank of Greece, Bulgarian National Bank, National Bank of Romania, Oesterreichische Nationalbank, 2014, Athens, Sofia, Bucharest, Vienna. Afterwards, Coos Santing, 2007, Inflation 1800-2000, data from OECD, Organisation for Economic Co-operation and Development, Economic Outlook. Historical Statistics and Mitchell, B. R. International Historical Statistics, Africa, Asia and Oceania 1750-1993 London : Macmillan ; New York : Stockton, 1998, International Historical Statistics, Europe 1750-1993 London : Macmillan ; New York : Stockton, 1998, and International Historical Statistics, The Americas 1750-1993 London : Macmillan ; New York : Stockton, 1998
↑1820 to 1919: Williamson J., Real Wages and Relative Factor Prices in the Third World 1820-1940: Asia. 2000, Appendix 3 Nominal Wage, Cost of Living and Real Wage Data for Indonesia Java 1820-1940, Outer Provinces 1878-1939, 1920 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
↑1595 to 1872: Bob Allen, Prices and Wages in India, 1595-19301873 to 1919: Williamson J., Real Wages and Relative Factor Prices in the Third World 1820-1940: Asia. 2000, Appendix 2 Nominal Wage, Cost of Living and Real Wage Data for India 1873-1939 and Land Prices for the Punjab 1871-1939, 1920 to 1953: 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, 1954 to 2020: Ашаблон:Citation
↑1525 to 1770: Leticia Arroya Abad, Elwyn A. R. Davies, and Jan Luiten van Zanden, Prices and wages in Argentina, Bolivia, Chile, Colombia, Mexico and Peru1771 to 1930: Challú, A., & Gómez-Galvarriato, A. (2015). MEXICO'S REAL WAGES IN THE AGE OF THE GREAT DIVERGENCE, 1730-1930. Revista De Historia Económica / Journal of Iberian and Latin American Economic History, 33 (1), 83-122, 1931 to 1934: Estadísticas Históricas de México, 1935 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.
↑1899 to 1938: Williamson J., Real Wages and Relative Factor Prices in the Third World 1820-1940: Asia, Nominal Wage, Cost of Living and Real Wage Data for the Philippines 1899-19401949 to 1958: 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. Afterwards, Consumer Price Index,Inflation Rate and Purchasing Power of the Peso (national averages)
↑1672 to 1928: Pimenta, Carlos Explicação da Inflação em Portugal. ISEG. Lisbon: UTL. 1929 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
↑1820 to 1941: Williamson J., Real Wages and Relative Factor Prices in the Third World 1820-1940: Asia. 2000, Nominal Wage, Cost of Living and Real Wage Data for Thailand (Siam) 1820-1939, 1944 to 1993: 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, 1994 to 2020: Bank for International Settlements, Consumer prices
↑1903 to 1958: 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, 1959 to 2021: Statistical Bureau of the Republic of China, Time Series of Consumer Price Indices in Taiwan Area