<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AInflation%2Fdoc</id>
	<title>Template:Inflation/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AInflation%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Template:Inflation/doc&amp;action=history"/>
	<updated>2026-09-16T22:54:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.randombell.com/index.php?title=Template:Inflation/doc&amp;diff=969&amp;oldid=prev</id>
		<title>Randombell: Created page with &quot;{{Documentation subpage}} {{anchor|ombox}} {{ombox |type= content |imageright= 42px |text= This template defaults to calculating the inflation of Consumer Price Index values: staples, workers&#039; rent, small service bills (doctor&#039;s costs, train tickets). &#039;&#039;&#039;For inflating capital expenses, government expenses, or the personal wealth and expenditure of the rich&#039;&#039;&#039;, the US-NGDPPC or UKNGDPPC indexes should be used, which calculate inflation of the N...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Template:Inflation/doc&amp;diff=969&amp;oldid=prev"/>
		<updated>2025-07-30T14:00:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{anchor|ombox}} {{ombox |type= content |imageright= &lt;a href=&quot;/index.php?title=File:Emblem-money.svg&quot; title=&quot;File:Emblem-money.svg&quot;&gt;42px&lt;/a&gt; |text= This template defaults to calculating the inflation of Consumer Price Index values: staples, workers&amp;#039; rent, small service bills (doctor&amp;#039;s costs, train tickets). &amp;#039;&amp;#039;&amp;#039;For inflating capital expenses, government expenses, or the personal wealth and expenditure of the rich&amp;#039;&amp;#039;&amp;#039;, the US-NGDPPC or UKNGDPPC indexes should be used, which calculate inflation of the N...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{anchor|ombox}}&lt;br /&gt;
{{ombox |type= content |imageright= [[File:Emblem-money.svg|42px]] |text= This template defaults to calculating the inflation of Consumer Price Index values: staples, workers&amp;#039; rent, small service bills (doctor&amp;#039;s costs, train tickets). &amp;#039;&amp;#039;&amp;#039;For inflating capital expenses, government expenses, or the personal wealth and expenditure of the rich&amp;#039;&amp;#039;&amp;#039;, the US-NGDPPC or UKNGDPPC indexes should be used, which calculate inflation of the [[Nominal GDP|Nominal Gross Domestic Product]] per capita for the United States and United Kingdom, respectively.}}&lt;br /&gt;
{{ombox |type= content |imageright= [[File:Current event warning.svg|42px]] |text= &amp;lt;strong&amp;gt;Do not assume that using this template will mean that a calculated value is &amp;lt;em&amp;gt;&amp;quot;current&amp;quot;&amp;lt;/em&amp;gt;&amp;lt;/strong&amp;gt;, &amp;lt;em&amp;gt;&amp;quot;as of {{CURRENTYEAR}}&amp;quot;&amp;lt;/em&amp;gt;, &amp;lt;em&amp;gt;&amp;quot;as of {{#expr:{{CURRENTYEAR}}-1}}&amp;quot;&amp;lt;/em&amp;gt; or even necessarily &amp;lt;em&amp;gt;&amp;quot;recent&amp;quot;&amp;lt;/em&amp;gt;. Per [[MOS:REALTIME]], statements made using this template should either specify an &amp;lt;code&amp;gt;end_year&amp;lt;/code&amp;gt;, or rely on {{para|fmt|eq}} or &amp;lt;strong&amp;gt;{{tlx|Inflation-year}}&amp;lt;/strong&amp;gt; to automatically indicate the latest year this template provides an inflation calculation. &amp;lt;strong&amp;gt;Do not use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CURRENTYEAR}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&amp;lt;/strong&amp;gt;}}&lt;br /&gt;
{{Intricate}}&lt;br /&gt;
{{TOC right}}&lt;br /&gt;
This template calculates inflation based on several [[price index|inflation index]] data sets. The template uses an identification code for an inflation &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; (usually a [[Lists of country codes|country code]]), an original &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt;, an original &amp;lt;code&amp;gt;start_year&amp;lt;/code&amp;gt; and either a specific reference &amp;lt;code&amp;gt;end_year&amp;lt;/code&amp;gt; or by default the latest currently available end year&amp;lt;ref&amp;gt;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, {{#expr:{{CURRENTYEAR}}-1}}, others up to roughly June-July {{#expr:{{CURRENTYEAR}}-1}}, and others yet up to December 31, {{#expr:{{CURRENTYEAR}}-2}}.&amp;lt;/ref&amp;gt;, 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.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
 {{Tlx|Inflation|&amp;#039;&amp;#039;index&amp;#039;&amp;#039;|&amp;#039;&amp;#039;value&amp;#039;&amp;#039;|&amp;#039;&amp;#039;start_year&amp;#039;&amp;#039;}}&lt;br /&gt;
 {{Tlx|Inflation|&amp;#039;&amp;#039;index&amp;#039;&amp;#039;|&amp;#039;&amp;#039;value&amp;#039;&amp;#039;|&amp;#039;&amp;#039;start_year&amp;#039;&amp;#039;|&amp;#039;&amp;#039;end_year&amp;#039;&amp;#039;}}&lt;br /&gt;
 {{Tlx|Inflation|&amp;#039;&amp;#039;index&amp;#039;&amp;#039;|&amp;#039;&amp;#039;value&amp;#039;&amp;#039;|&amp;#039;&amp;#039;start_year&amp;#039;&amp;#039;|5=r=&amp;#039;&amp;#039;decimals&amp;#039;&amp;#039;|6=fmt=c}}&lt;br /&gt;
 {{Tlx|Inflation|&amp;#039;&amp;#039;index&amp;#039;&amp;#039;|&amp;#039;&amp;#039;value&amp;#039;&amp;#039;|&amp;#039;&amp;#039;start_year&amp;#039;&amp;#039;|5=r=&amp;#039;&amp;#039;decimals&amp;#039;&amp;#039;|6=fmt=eq}}&lt;br /&gt;
 {{Tlx|Inflation|&amp;#039;&amp;#039;index&amp;#039;&amp;#039;|&amp;#039;&amp;#039;value&amp;#039;&amp;#039;|&amp;#039;&amp;#039;start_year&amp;#039;&amp;#039;|5=r=&amp;#039;&amp;#039;decimals&amp;#039;&amp;#039;|6=fmt=eq|7=cursign=X}}&lt;br /&gt;
&lt;br /&gt;
The supported countries are listed below, with their &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; and available data periods:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; !! scope=&amp;quot;col&amp;quot; | Country !! scope=&amp;quot;col&amp;quot; | &amp;lt;code&amp;gt;start_year&amp;lt;/code&amp;gt; minimum !! scope=&amp;quot;col&amp;quot; | &amp;lt;code&amp;gt;end_year&amp;lt;/code&amp;gt; maximum&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | AU&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | Australia{{Inflation-fn|AU}}      || {{Inflation/AU/startyear}} || {{Inflation-year|AU}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | AU-road&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | Australia [...?]{{Inflation-fn|AU-road}} || {{Inflation/AU-road/startyear}} || {{Inflation-year|AU-road}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | BD&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | Bangladesh{{Inflation-fn|BD}}     || {{Inflation/BD/startyear}} || {{Inflation-year|BD}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | CA&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | Canada{{Inflation-fn|CA}}         || {{Inflation/CA/startyear}} || {{Inflation-year|CA}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | DE&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | Germany{{Inflation-fn|DE}}        || {{Inflation/DE/startyear}} || {{Inflation-year|DE}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | IN&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | India{{Inflation-fn|IN}}          || {{Inflation/IN/startyear}} || {{Inflation-year|IN}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | JP&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | Japan{{Inflation-fn|JP}}          || {{Inflation/JP/startyear}} || {{Inflation-year|JP}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | PH&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | Philippines{{Inflation-fn|PH}}    || {{Inflation/PH/startyear}} || {{Inflation-year|PH}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | PK&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | Pakistan{{Inflation-fn|PK}}       || {{Inflation/PK/startyear}} || {{Inflation-year|PK}}&lt;br /&gt;
&amp;lt;!-- |-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | TEST&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | TEST{{Inflation-fn|TEST}} || {{Inflation/TEST/startyear}} || {{Inflation-year|TEST}} --&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | UK&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | United Kingdom{{Inflation-fn|UK}} || {{Inflation/UK/startyear}} || {{Inflation-year|UK}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | UKNGDPPC&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | United Kingdom [[Nominal GDP|Nominal Gross Domestic Product]] per capita{{Inflation-fn|UKNGDPPC}} || {{Inflation/UKNGDPPC/startyear}} || {{Inflation-year|UKNGDPPC}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | US&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | United States{{Inflation-fn|US}}  || {{Inflation/US/startyear}} || {{Inflation-year|US}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | US-NGDPPC&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | United States [[Nominal GDP|Nominal Gross Domestic Product]] per capita{{Inflation-fn|US-NGDPPC}} || {{Inflation/US-NGDPPC/startyear}} || {{Inflation-year|US-NGDPPC}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | ZAR&lt;br /&gt;
| style=&amp;quot;text-align:left;&amp;quot; | South Africa{{Inflation-fn|ZAR}}     || {{Inflation/ZAR/startyear}} || {{Inflation-year|ZAR}}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
* {{para|index}} (parameter 1), &amp;lt;strong&amp;gt;required&amp;lt;/strong&amp;gt;, an index code for one of several available inflation indexes.&lt;br /&gt;
* {{para|value}} (parameter 2), &amp;lt;strong&amp;gt;required&amp;lt;/strong&amp;gt;, original price or value from which to base the inflation calculation on. Will ignore any commas, but must not have a [[currency symbol]].&lt;br /&gt;
* {{para|start_year}} (parameter 3), &amp;lt;strong&amp;gt;required&amp;lt;/strong&amp;gt;, 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 &amp;lt;em&amp;gt;current&amp;lt;/em&amp;gt; year is specified and no &amp;lt;code&amp;gt;end_year&amp;lt;/code&amp;gt; is specified, the template will output &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; unchanged, as it can be assumed an inflation of zero.&lt;br /&gt;
* {{para|end_year}} (parameter 4), &amp;lt;strong&amp;gt;optional&amp;lt;/strong&amp;gt;, reference year for which to calculate inflation. Must be higher (later) than &amp;lt;code&amp;gt;start_year&amp;lt;/code&amp;gt;, 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.&lt;br /&gt;
* {{para|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 &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;, i.e., without cents.&lt;br /&gt;
* {{para|fmt|c}} will insert [[thousands separator]] commas into the calculated value.&lt;br /&gt;
* {{para|fmt|eq}} will show an equivalent-to phrase, in the format, &amp;quot;{{xtn|equivalent to &amp;lt;code&amp;gt;cursign&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;end_value&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;end_year&amp;lt;/code&amp;gt;}}&amp;quot;. Uses [[thousands separator]] commas.&lt;br /&gt;
** {{para|cursign}} will set the [[currency symbol]] to be shown. Only functions when {{para|fmt|eq}} is used. Can use advanced symbol formats, but can only precede the calculated value. Default is &amp;lt;code&amp;gt;$&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|{{tlf|Inflation|DE|100|2000}}}}&amp;lt;/code&amp;gt; → {{xt|{{Inflation|DE|100|2000}}}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|{{tlf|Inflation|US|595|1982}}}}&amp;lt;/code&amp;gt; → {{xt|{{Inflation|US|595|1982}}}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|{{tlf|Inflation|US|595|1982|5=fmt=eq}}}}&amp;lt;/code&amp;gt; → {{xt|{{Inflation|US|595|1982|fmt=eq}}}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|{{tlf|Inflation|US|800|1942|5=fmt=eq|6=r=-3}}}}&amp;lt;/code&amp;gt; → {{xt|{{Inflation|US|800|1942|fmt=eq|r=-3}}}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|{{tlf|Inflation|US|100|2010|2012|6=fmt=eq|7=r=2}}}}&amp;lt;/code&amp;gt; → {{xt|{{Inflation|US|100|2010|2012|fmt=eq|r=2}}}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|&amp;lt;nowiki&amp;gt;US&amp;amp;nbsp;$595&amp;lt;/nowiki&amp;gt; ({{tlf|Inflation|US|595|1982|5=fmt=eq}})}}&amp;lt;/code&amp;gt; → {{xt|US&amp;amp;nbsp;$595 ({{Inflation|US|595|1982|fmt=eq}})}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|&amp;lt;nowiki&amp;gt;US&amp;amp;nbsp;$595&amp;lt;/nowiki&amp;gt; ({{tlf|Inflation|US|595|1982|5=fmt=eq|6=cursign=&amp;lt;nowiki&amp;gt;[[United States dollar|US$]]&amp;lt;/nowiki&amp;gt;}})}}&amp;lt;/code&amp;gt; → {{xt|US&amp;amp;nbsp;$595 ({{Inflation|US|595|1982|fmt=eq|cursign=[[United States dollar|US$]]}})}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|&amp;lt;nowiki&amp;gt;$21&amp;amp;nbsp;million&amp;lt;/nowiki&amp;gt; (equivalent to ${{tlf|Inflation|US|21|2005|5=r=2}} million in {{tlf|Inflation-year|US}})}}&amp;lt;/code&amp;gt; → {{xt|$21&amp;amp;nbsp;million (equivalent to ${{Inflation|US|21|2005|r=2}}&amp;amp;nbsp;million in {{Inflation-year|US}})}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|UK|1|1323|5=fmt=eq}}}}&amp;lt;/code&amp;gt; → {{!xt|{{Inflation|UK|1|1323|fmt=eq}}}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|{{tlf|Inflation|UK|1|1323|5=fmt=eq|6=cursign=£}}}}&amp;lt;/code&amp;gt; → {{xt|{{Inflation|UK|1|1323|fmt=eq|cursign=£}}}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|{{tlf|Inflation|AU|100|{{CURRENTYEAR}}|5=fmt=eq}}}}&amp;lt;/code&amp;gt; → {{xt|{{Inflation|AU|100|{{CURRENTYEAR}}|fmt=eq}}}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|${{tlf|Inflation|US|100|{{CURRENTYEAR}}}}}} in {{mxt|{{tlf|Inflation-year|US}}}}&amp;lt;/code&amp;gt; → {{xt|${{Inflation|US|100|{{CURRENTYEAR}}}} in {{Inflation-year|US}}}}&lt;br /&gt;
&lt;br /&gt;
It is possible to use the template in incorrect ways without producing error messages. &amp;lt;strong&amp;gt;[[#ombox|Please read the warnings and appropriate uses of this template at the beginning of the template description]].&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|$100 (${{tlf|Inflation|US|595|1982|5=fmt=c}} today)}}&amp;lt;/code&amp;gt; → {{!xt|$595 (${{Inflation|US|595|1982|fmt=c}} today)}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|$100 (${{tlf|Inflation|US|595|1982|5=fmt=c}} in {{tlf|CURRENTYEAR}})}}&amp;lt;/code&amp;gt; → {{!xt|$100 (${{Inflation|US|595|1982|fmt=c}} in {{CURRENTYEAR}})}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|$100 (${{tlf|Inflation|US|595|1982|5=fmt=c}} adjusted for inflation)}}&amp;lt;/code&amp;gt; → {{!xt|$100 (${{Inflation|US|595|1982|fmt=c}} adjusted for inflation)}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|$100 ({{tlf|Inflation|US|595|1982|5=fmt=eq}})}}&amp;lt;/code&amp;gt; → {{xt|$100 ({{Inflation|US|595|1982|fmt=eq}})}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|$100 (equivalent to ${{tlf|Inflation|US|595|1982|5=fmt=c}} in {{tlf|Inflation-year|US}})}}&amp;lt;/code&amp;gt; → {{xt|$100 (equivalent to ${{Inflation|US|595|1982|fmt=c}} in {{Inflation-year|US}})}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|Jane Doe amassed a fortune of $1 billion in 1975, making her worth ${{tlf|Inflation|US|1|1975|5=fmt=c}} billion in {{tlf|Inflation-year|US}}.}}&amp;lt;/code&amp;gt; → {{!xt|Jane Doe amassed a fortune of $1 billion in 1975, making her worth ${{Inflation|US|1|1975|fmt=c}} billion in {{Inflation-year|US}}.}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|Jane Doe amassed a fortune of $1 billion in 1975, equivalent to ${{tlf|Inflation|US|1|1975|5=fmt=c}} billion in {{tlf|Inflation-year|US}}.}}&amp;lt;/code&amp;gt; → {{!xt|Jane Doe amassed a fortune of $1 billion in 1975, equivalent to ${{Inflation|US|1|1975|fmt=c}} billion in {{Inflation-year|US}}.}}&lt;br /&gt;
&lt;br /&gt;
Entering invalid parameters or omitting required parameters will result in an error message and categorization into [[:Category:Pages with errors in inflation template]].&lt;br /&gt;
&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation}}}}&amp;lt;/code&amp;gt; → {{Inflation|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|abc}}}}&amp;lt;/code&amp;gt; → {{Inflation|abc|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|AU}}}}&amp;lt;/code&amp;gt; → {{Inflation|AU|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|AU|100}}}}&amp;lt;/code&amp;gt; → {{Inflation|AU|100|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|abc|€100|1980}}}}&amp;lt;/code&amp;gt; → {{Inflation|abc|€100|1980|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|DE|€100|1980}}}}&amp;lt;/code&amp;gt; → {{Inflation|DE|€100|1980|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|DE|€100|zzzz|zzzz|6=r=zzzz}}}}&amp;lt;/code&amp;gt; → {{Inflation|DE|€100|zzzz|zzzz|r=zzzz|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|AU|100|1200|{{#expr:{{CURRENTYEAR}}+1}}}}}}&amp;lt;/code&amp;gt; → {{Inflation|AU|100|1200|{{#expr:{{CURRENTYEAR}}+1}}|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|AU|100|2005|2004}}}}&amp;lt;/code&amp;gt; → {{Inflation|AU|100|2005|2004|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|AU|100|2005|{{#expr:{{CURRENTYEAR}}+1}}|6=fmt=eq}}}}&amp;lt;/code&amp;gt; → {{Inflation|AU|100|2005|{{#expr:{{CURRENTYEAR}}+1}}|fmt=eq|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|AU|100|{{CURRENTYEAR}}|{{#expr:{{CURRENTYEAR}}+1}}|6=fmt=eq}}}}&amp;lt;/code&amp;gt; → {{Inflation|AU|100|{{CURRENTYEAR}}|{{#expr:{{CURRENTYEAR}}+1}}|fmt=eq|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|AU|100|{{CURRENTYEAR}}|1905|6=fmt=eq}}}}&amp;lt;/code&amp;gt; → {{Inflation|AU|100|{{CURRENTYEAR}}|1905|fmt=eq|nocat=y}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|{{tlf|Inflation|AU|100|{{#expr:{{CURRENTYEAR}}+1}}|5=fmt=eq}}}}&amp;lt;/code&amp;gt; → {{Inflation|AU|100|{{#expr:{{CURRENTYEAR}}+1}}|fmt=eq|nocat=y}}&lt;br /&gt;
&lt;br /&gt;
=== Tips &amp;amp; tricks ===&lt;br /&gt;
==== Currency conversion ====&lt;br /&gt;
This template is currency agnostic, which means it doesn&amp;#039;t convert between different currencies. Thus, if you wanted to know how much DM&amp;amp;nbsp;1,000.00 marks in 1960 are worth nowadays, entering {{Tlx|Inflation|DE|1000|1960|5=r=2}} would provide a result (&amp;#039;&amp;#039;{{Inflation|DE|1000|1960|r=2}}&amp;#039;&amp;#039;) still in marks, not in euros.&lt;br /&gt;
&lt;br /&gt;
Consequently, if you need a result in another currency 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 €&amp;amp;nbsp;1 = DM&amp;amp;nbsp;1.95583:&lt;br /&gt;
&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|&amp;lt;nowiki&amp;gt;{{#expr:&amp;lt;/nowiki&amp;gt;({{tlf|Inflation|DE|1000|1960|5=r=2}}&amp;lt;nowiki&amp;gt; / 1.95583) round 2}}&amp;lt;/nowiki&amp;gt;}}&amp;lt;/code&amp;gt; → {{xt|{{#expr:({{Inflation|DE|1000|1960|r=2}} / 1.95583) round 2}}}}&lt;br /&gt;
&lt;br /&gt;
{{ToDo}} A currency conversion template to ease these conversion tasks is planned. This section will be updated accordingly once it&amp;#039;s developed.&lt;br /&gt;
&lt;br /&gt;
==== Rounding ====&lt;br /&gt;
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 {{para|r}} parameter which determines the number of decimals. To obtain cents use {{para|r|2}}, but other values can be used, including negative ones: {{para|r|-3}}, for example, will round to the nearest thousand, {{para|r|-6}} to the nearest million, and so on. It is advisable to avoid excessive precision; even if the start value is known to be exact, the template&amp;#039;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.&lt;br /&gt;
&lt;br /&gt;
==== Very large results ====&lt;br /&gt;
Very large results are expressed in scientific notation (&amp;quot;1.2E+14&amp;quot; instead of &amp;quot;120000000000000&amp;quot;) which is normally not desirable. A workaround is to express the value to be inflated with fewer digits, adding a multiplier text such as &amp;quot;trillion&amp;quot; after the result, using the &amp;quot;Show preview&amp;quot; button as many times as needed, changing parameters until the best result is found:&lt;br /&gt;
&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|${{tlf|Inflation|US|1000000000000|1900|5=r=-11|6=fmt=c}}}}&amp;lt;/code&amp;gt; → {{xt|${{Inflation|US|1000000000000|1900|r=-11|fmt=c}}}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|${{tlf|Inflation|US|10000000000000|1900|5=r=-12|6=fmt=c}}}}&amp;lt;/code&amp;gt; → {{!xt|${{Inflation|US|10000000000000|1900|r=-12|fmt=c}}}}&lt;br /&gt;
* {{Nay}} &amp;lt;code&amp;gt;{{!mxt|${{tlf|Inflation|US|10000000000|1900|5=r=-9|6=fmt=c}} &amp;#039;&amp;#039;&amp;#039;thousand&amp;#039;&amp;#039;&amp;#039;}}&amp;lt;/code&amp;gt; → {{!xt|${{Inflation|US|10000000000|1900|r=-9|fmt=c}} thousand}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|${{tlf|Inflation|US|10000000|1900|5=r=-6|6=fmt=c}} &amp;#039;&amp;#039;&amp;#039;million&amp;#039;&amp;#039;&amp;#039;}}&amp;lt;/code&amp;gt; → {{xt|${{Inflation|US|10000000|1900|r=-6|fmt=c}} million}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|${{tlf|Inflation|US|10000|1900|5=r=-3|6=fmt=c}} &amp;#039;&amp;#039;&amp;#039;billion&amp;#039;&amp;#039;&amp;#039;}}&amp;lt;/code&amp;gt; → {{xt|${{Inflation|US|10000|1900|r=-3|fmt=c}} billion}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|${{tlf|Inflation|US|10|1900|5=fmt=c}} &amp;#039;&amp;#039;&amp;#039;trillion&amp;#039;&amp;#039;&amp;#039;}}&amp;lt;/code&amp;gt; → {{xt|${{Inflation|US|10|1900|fmt=c}} trillion}}&lt;br /&gt;
&lt;br /&gt;
The following section provides an automated way of avoiding this trial and error scenario.&lt;br /&gt;
&lt;br /&gt;
==== Format price ====&lt;br /&gt;
{{Tlx|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 &amp;quot;953,783,409,856.12&amp;quot;, it would show it as &amp;quot;{{Formatprice|953783409856.12}}&amp;quot;, while small numbers have their cents part appearing as expected, &amp;quot;1234.5&amp;quot; being properly shown as &amp;quot;{{Formatprice|1234.5}}&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|$&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;[[Template:Format price|Format price]]&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;{{tlf|Inflation|US|10000000000000|1900}}&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;}}&amp;lt;/code&amp;gt; → {{xt|${{Formatprice|{{Inflation|US|10000000000000|1900}}}}}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|$&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;[[Template:Format price|Format price]]&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;{{tlf|Inflation|US|1000000|1990}}&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;}}&amp;lt;/code&amp;gt; → {{xt|${{Formatprice|{{Inflation|US|1000000|1990}}}}}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|DM &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;[[Template:Format price|Format price]]&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;{{tlf|Inflation|DE|1000000|1957|1978}}&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;}}&amp;lt;/code&amp;gt; → {{xt|DM {{Formatprice|{{Inflation|DE|1000000|1957|1978}}}}}}&lt;br /&gt;
* {{Aye}} &amp;lt;code&amp;gt;{{mxt|£&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;[[Template:Format price|Format price]]&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;{{tlf|Inflation|UK|1000|1323}}&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;}}&amp;lt;/code&amp;gt; → {{xt|£{{Formatprice|{{Inflation|UK|1000|1323}}}}}}&lt;br /&gt;
&lt;br /&gt;
==== Documenting ====&lt;br /&gt;
It&amp;#039;s a good practice to provide a valid reference for the prices calculated with this template in articles where it&amp;#039;s used. The template {{Tl|Inflation-fn|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}} 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:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;In 1985 a unit cost on average $1,040. This is {{Inflation|US|1040|1985|fmt=eq}}}}.{{Inflation-fn|US}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resulting in this converted code (notice the footnote link at the end):&lt;br /&gt;
&lt;br /&gt;
* In 1985 a unit cost on average $1,040. This is {{Inflation|US|1040|1985|fmt=eq}}.{{Inflation-fn|US}}&lt;br /&gt;
&lt;br /&gt;
The footnote thus generated appears whenever {{Tlx|reflist}} or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;references /&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is used in an article, usually in its &amp;quot;References&amp;quot; section. See below for the live example in this document&amp;#039;s own [[Template:Inflation#References|References]] section, or click the above generated footnote to jump to it.&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
# Currently it isn&amp;#039;t possible to &amp;quot;de-inflate&amp;quot; a value to what it would have been in a previous year. If you need this functionality, please request it at the [[Template talk:Inflation|talk page]]. Adding it won&amp;#039;t be difficult, but there&amp;#039;s no point in doing so before someone actually needs it.&lt;br /&gt;
# [[Wikipedia:substitution|Substitution]] isn&amp;#039;t supported at all. Trying to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{subst:&amp;lt;/nowiki&amp;gt;[[Template:Inflation|Inflation]]&amp;lt;nowiki&amp;gt;|...}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; 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 [[Special:ExpandTemplates|ExpandTemplates]] page then copy the result and paste it at the desired location.&lt;br /&gt;
&lt;br /&gt;
== Developer documentation ==&lt;br /&gt;
An inflation series represents templates in the following categories:&lt;br /&gt;
* Template:Inflation/&amp;#039;&amp;#039;index&amp;#039;&amp;#039;&lt;br /&gt;
* Template:Inflation/&amp;#039;&amp;#039;index&amp;#039;&amp;#039;/dataset&lt;br /&gt;
* Template:Inflation/&amp;#039;&amp;#039;index&amp;#039;&amp;#039;/startyear&lt;br /&gt;
* Template:Inflation/doc/&amp;#039;&amp;#039;index&amp;#039;&amp;#039;  (Which is then displayed at Inflation/name/dataset as the documentation, and needs to refer to the original data source)&lt;br /&gt;
Modifications need to be made to:&lt;br /&gt;
* [[Template:Inflation-fn]]&lt;br /&gt;
* [[Template:Inflation-year]]&lt;br /&gt;
Current subpages:&lt;br /&gt;
{{list subpages|Inflation|Template}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Inflation-year}}&lt;br /&gt;
* {{tl|Inflation-fn}}&lt;br /&gt;
* {{tl|Format price}}&lt;br /&gt;
* [[:Category:Currency templates]]&lt;br /&gt;
* [[Inflation]]&lt;br /&gt;
* [[Consumer price index]]&lt;br /&gt;
* [[Harmonised Index of Consumer Prices]]&lt;br /&gt;
* [[Lists of country codes]]&lt;br /&gt;
* [[List of circulating currencies]]&lt;br /&gt;
* [[United States Consumer Price Index]]&lt;br /&gt;
* [[Consumer Price Index (United Kingdom)]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Math templates|conversion}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist|33em}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!--Categories below this line, please; interwikis at Wikidata--&amp;gt;&lt;br /&gt;
[[Category:Currency conversion templates]]&lt;br /&gt;
[[Category:Economics formatting and function templates]]&lt;br /&gt;
[[Category:Finance formatting and function templates]]&lt;br /&gt;
[[Category:United States economic templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;value&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;2&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Value&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Original price or value from which to base the inflation calculation on. Will ignore any commas.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;1000&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;start_year&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;3&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Start year&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;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 &amp;#039;End year&amp;#039; is specified, the template will output value unchanged, as it can be assumed an inflation of zero.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;1975&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;index&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;1&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Index&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;An index code for one of several available inflation indexes. One of AU, AU-road, BD, CA, DE, IN, JP, PH, PK, UK, UKNGDPPC, US, US-NGDPPC, ZAR.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;US&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;end_year&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;4&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;End year&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Reference year for which to calculate inflation. Must be higher (later) than &amp;#039;Start year&amp;#039;, 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.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;2015&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;r&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Number of digits&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;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.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;1&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;0&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;fmt&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Format&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;\&amp;quot;c\&amp;quot; will insert thousands separator commas into the calculated value. \&amp;quot;eq\&amp;quot; will show an equivalent-to phrase, in the format, \&amp;quot;equivalent to (cursign)(end_value) in (end_year)\&amp;quot;. Uses thousands separator commas.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;eq&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;cursign&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Currency sign&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Sets the currency symbol to be shown. Only functions when Format \&amp;quot;eq\&amp;quot; is used. Can use advanced symbol formats, but can only precede the calculated value. Default is $.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;€&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;$&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;paramOrder&amp;quot;: [&lt;br /&gt;
		&amp;quot;index&amp;quot;,&lt;br /&gt;
		&amp;quot;value&amp;quot;,&lt;br /&gt;
		&amp;quot;start_year&amp;quot;,&lt;br /&gt;
		&amp;quot;end_year&amp;quot;,&lt;br /&gt;
		&amp;quot;r&amp;quot;,&lt;br /&gt;
		&amp;quot;fmt&amp;quot;,&lt;br /&gt;
		&amp;quot;cursign&amp;quot;&lt;br /&gt;
	],&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;,&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template calculates inflation based on several inflation index data sets. \n\nNote that this template defaults to calculating the inflation of Consumer Price Index values: staples, workers&amp;#039; rent, small service bills (doctor&amp;#039;s costs, train tickets). For inflating capital expenses, government expenses, or the personal wealth and expenditure of the rich, the US-NGDPPC or UKNGDPPC indexes should be used, which calculate inflation of the Nominal Gross Domestic Product per capita for the United States and United Kingdom, respectively.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;/div&gt;</summary>
		<author><name>Randombell</name></author>
	</entry>
</feed>