Template:Inflation-fn

维基百科,自由的百科全书
跳转至: 导航搜索
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

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

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 Consumer Price Index inflation figures are based on data from Gregory Clark (2016), "The Annual RPI and Average Earnings for Britain, 1209 to Present (New Series)", MeasuringWorth.com.
  3. ^ Federal Reserve Bank of Minneapolis Community Development Project. Consumer Price Index (estimate) 1800–. Federal Reserve Bank of Minneapolis. [January 2, 2017]. 
  4. ^ Inflated values automatically calculated. 错误:使用{{Inflation-fn}}时no index specified
  5. ^ Inflated values automatically calculated. 错误:使用{{Inflation-fn}}时undefined index "xyz"

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.

See also[编辑]