Template:Inflation-fn/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for Template:Inflation-fn (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Provides standard article footnotes for documenting the source of the inflated prices calculated by {{Inflation}}.

[edit] Usage

 {{Inflation-fn}}
 {{Inflation-fn|country}}

When the country parameter is provided, a footnote about that specific data set is generated. The country codes are the same used by {{Inflation}}:

When no country parameter is provided, or when an invalid country is provided, the generated footnote is a generic one:

This is the reference list generated by the above examples:

  1. ^ German inflation numbers based on data available from Deutsches Statistisches Bundesamt.
  2. ^ UK CPI inflation numbers based on data available from Measuring Worth: UK CPI.
  3. ^ US CPI inflation data obtained from Federal Reserve Bank of Minneapolis - Consumer Price Index (Estimate).
  4. ^ a b Inflated values automatically calculated.

Notice that the anchor names produced are based on the country parameter, or its lack thereof. As a result, the same {{Inflation-fn|country}} code can be used many times in the same article while generating only one actual footnote per country code.

See the related section at {{Inflation}} for additional instructions and examples.

[edit] See also