• Home
  • Random
  • Nearby
  • Create account
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia
  • Create account
  • Log in

Template:Inflation/TEST

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Inflation
Template documentationviewedithistorypurge

This sub-template either contains a country/region inflation table or calls one located in another sub-template. Its output is used by the {{Inflation}} template and possibly others. It is not meant to be called directly, but if you do, it will produce one or more lines containing each a number preceded by an asterisk (the multiply character) for use in {{#expr:}} and related parser functions:

  • 1.020
  • 0.999
  • 1.002

Usage

edit

{{Inflation/TEST|year1|year2}}

where year1 and year2 determine the range of "multiply by n" lines that will be returned.

Failing to provide one or both parameters, providing a year2 lower than year1, or providing a year1 and a year2 that are both lower than the lowest or higher than the highest year in the table, is an undefined operation that will result in either "* 1" or an empty string, depending on how the dataset is constructed. Similarly, providing a year1 lower than the lowest year in the table, and a year2 higher than the highest year in the table, will also return either "* 1" or the whole table. Providing any non-numeric parameter will result in one or more red errors that should be handled with the {{#iferror:}} parser function.

See also

edit
  • This page's /dataset subpage
  • This page's /startyear subpage
  • {{Inflation}}
The above documentation is transcluded from Template:Inflation/doc/table. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Inflation/TEST&oldid=566155772"
Last edited on 28 July 2013, at 14:47

Languages

    • Slovenščina
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 28 July 2013, at 14:47 (UTC).
    • Page was rendered with Parsoid.
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Legal & safety contacts
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop view