• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Inflation/year

  • Language
  • Watch
  • View source
< Template:Inflation
(Redirected from Template:Inflation year)
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 28,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:Inflation (sandbox)

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

 {{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|AR}} = 2020
  • {{Inflation/year|AT}} = 2018
  • {{Inflation/year|AU}} = 2022
    • {{Inflation/year|AU-road}} = 2018
  • {{Inflation/year|BD}} = 2023
  • {{Inflation/year|BE}} = 2020
  • {{Inflation/year|BR}} = 2020
  • {{Inflation/year|CA}} = 2023
  • {{Inflation/year|CA}} = 2023
  • {{Inflation/year|CH}} = 2021
  • {{Inflation/year|CL}} = 2020
  • {{Inflation/year|CN}} = 2019
  • {{Inflation/year|DE}} = 2021
  • {{Inflation/year|DK}} = 2022
  • {{Inflation/year|EG}} = 2018
  • {{Inflation/year|ES}} = 2022
  • {{Inflation/year|EU}} = 2023
  • {{Inflation/year|FI}} = 2023
  • {{Inflation/year|FR}} = 2022
  • {{Inflation/year|GR}} = 2007
  • {{Inflation/year|HK}} = 2020
  • {{Inflation/year|ID}} = 2007
  • {{Inflation/year|IL}} = 2021
  • {{Inflation/year|IN}} = 2023
  • {{Inflation/year|IR}} = 1398
  • {{Inflation/year|IS}} = 2020
  • {{Inflation/year|IT}} = 2020
  • {{Inflation/year|JP}} = 2019
  • {{Inflation/year|KRW}} = 2017
  • {{Inflation/year|MX}} = 2007
  • {{Inflation/year|NL}} = 2016
  • {{Inflation/year|NO}} = 2017
  • {{Inflation/year|NZ}} = 2021
  • {{Inflation/year|PE}} = 2017
  • {{Inflation/year|PH}} = 2021
  • {{Inflation/year|PK}} = 2021
  • {{Inflation/year|PL}} = 2021
  • {{Inflation/year|PT}} = 2007
  • {{Inflation/year|RU}} = 2023
  • {{Inflation/year|SE}} = 2023
  • {{Inflation/year|SG}} = 2022
  • {{Inflation/year|TEST}} = 2012
  • {{Inflation/year|TH}} = 2020
  • {{Inflation/year|TR}} = 2021
  • {{Inflation/year|TW}} = 2021
  • {{Inflation/year|UK}} = 2023
    • {{Inflation/year|UK-CAP}} = 2023
    • {{Inflation/year|UK-GDP}} = 2023
    • {{Inflation/year|UKGDP}} = 2023
  • {{Inflation/year|US}} = 2023
    • {{Inflation/year|US-CAP}} = 2023
    • {{Inflation/year|US-GDP}} = 2023
    • {{Inflation/year|USGDP}} = 2023
  • {{Inflation/year|VN}} = 2022
  • {{Inflation/year|ZAR}} = 2018


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}}.
  • {{Inflation/year|INVALID}} = Error: undefined index "INVALID" when using {{Inflation/year}}.

Provides a standard way of indicating the "current" year of the inflated prices calculated by the Inflation template. This template is relied upon by the Inflation template, 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 the Inflation template for usage examples.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Indexindex 1

An index code for one of several available inflation indexes. One of AU, AU-road, BD, CA, DE, IN, IR, JP, PH, PK, UK, UK-GDP, US, US-GDP, ZAR.

Example
US
Stringrequired
The above documentation is transcluded from Template:Inflation/year/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Inflation/year&oldid=6425016"
Last edited on 20 September 2024, at 16:42

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 20 September 2024, at 16:42.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop