Template:Inflation/year
Jump to navigation
Jump to search
Provides a standard way of indicating the "current" year of the inflated prices calculated by {{Inflation}}
. This template is relied upon by {{Inflation}}
, but can also be called directly in articles needing to specify the currently most recent year for which inflation is calculated for a given index. See {{Inflation}}
for usage examples.
Usage[edit source]
{{Inflation/year|index}}
When the required index
parameter is provided, the last year given by the inflation data is printed. The index codes are the same as those used by {{Inflation}}
:
{{Inflation/year|AU}}
= 2010{{Inflation/year|AU-road}}
= 2013
{{Inflation/year|BD}}
= 2014{{Inflation/year|CA}}
= 2018{{Inflation/year|DE}}
= 2009{{Inflation/year|IN}}
= 2018{{Inflation/year|JP}}
= 2019{{Inflation/year|PH}}
= 2013{{Inflation/year|PK}}
= 2013{{Inflation/year|UK}}
= 2018{{Inflation/year|UK-GDP}}
= 2016
{{Inflation/year|US}}
= 2018{{Inflation/year|US-GDP}}
= 2018
{{Inflation/year|ZAR}}
= 2016{{Inflation/year|KRW}}
= 2017
When no index
parameter is provided, or when an invalid index is provided, an error is shown:
{{Inflation/year}}
= Error: no index specified when using {{Inflation/year}}.- also
{{Inflation/year|ERR}}
= Error: no index specified when using {{Inflation/year}}.
- also
{{Inflation/year|xyz}}
= Error: undefined index "xyz" when using {{Inflation/year}}.
External links[edit source]
- Template:Inflation/year at Wikipedia, the free Terran-based encyclopedia that anyone can edit.
The above documentation is transcluded from Template:Inflation/year/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |