Provides standard article footnotes for documenting the source of the inflated prices calculated by {{Inflation}}
.
Usage
{{Inflation/fn}}
{{Inflation/fn|index}}
{{Inflation/fn|index|group=groupname}}
When the index parameter is provided, a footnote about that specific data set is generated. The index codes are the same as those used by {{Inflation}}
:
{{Inflation/fn|AR}}
= [1]{{Inflation/fn|AT}}
= [2]{{Inflation/fn|AU}}
= [3]{{Inflation/fn|AU-road}}
= [4]
{{Inflation/fn|BD}}
= [5]{{Inflation/fn|BE}}
= [6]{{Inflation/fn|BR}}
= [7]{{Inflation/fn|CA}}
= [8]{{Inflation/fn|CH}}
= [9]{{Inflation/fn|CL}}
= [10]{{Inflation/fn|CN}}
= [11]{{Inflation/fn|DE}}
= [12]{{Inflation/fn|DK}}
= [13]{{Inflation/fn|EG}}
= [14]{{Inflation/fn|ES}}
= [15]{{Inflation/fn|FI}}
= [16]{{Inflation/fn|FR}}
= [17]{{Inflation/fn|GR}}
= [18]{{Inflation/fn|HK}}
= [19]{{Inflation/fn|ID}}
= [20]{{Inflation/fn|IL}}
= [21]{{Inflation/fn|IN}}
= [22]{{Inflation/fn|IR}}
= [23]{{Inflation/fn|IS}}
= [24]{{Inflation/fn|IT}}
= [25]{{Inflation/fn|JP}}
= [26]{{Inflation/fn|KRW}}
= [27]{{Inflation/fn|MX}}
= [28]{{Inflation/fn|NL}}
= [29]{{Inflation/fn|NO}}
= [30]{{Inflation/fn|PE}}
= [31]{{Inflation/fn|PH}}
= [32]{{Inflation/fn|PK}}
= [33]{{Inflation/fn|PL}}
= [34]{{Inflation/fn|PT}}
= [35]{{Inflation/fn|RU}}
= [36]{{Inflation/fn|SE}}
= [37]{{Inflation/fn|SG}}
= [38]{{Inflation/fn|TH}}
= [39]{{Inflation/fn|TR}}
= [40]{{Inflation/fn|TW}}
= [41]{{Inflation/fn|UK}}
= [42]{{Inflation/fn|UK-GDP}}
= [43]
{{Inflation/fn|US}}
= [44]{{Inflation/fn|US-GDP}}
= [45]
{{Inflation/fn|VN}}
= [46]{{Inflation/fn|ZAR}}
= [47]
When no index
parameter is provided, or when an invalid index is provided, a generic footnote is generated with an error:
{{Inflation/fn}}
= [48]{{Inflation/fn|xyz}}
= [49]
This is the reference list generated by the above examples:
Anchor names produced are based on the index parameter, or its lack thereof. As a result, the same {{Inflation/fn|index}}
code can be used many times in the same article while generating only one actual footnote per index code.
Reference grouping
If it is desired to place the footnote into a reference group other than the default, the |group=
parameter may be used:
{{Inflation/fn|UK|group=nb}}
= [nb 1]
NB to group the footnote with other footnotes rather than references, ({{notelist}}), use |group=lower-alpha
See the related section at {{Inflation}} for additional instructions and examples.
Date format
Where the country is either CA
or US
, the generated reference includes the retrieval date of the data, which is shown in month-first (MDY) format. For US
only, this may be altered to day-first (DMY) format by adding |df=yes
. This must be done each time the template is called in an article, or there will be an error message in the reference list.
{{Inflation/fn|US|df=yes}}
= [1]
Citation format
The citations for several indexes use {{cite web}} as a base template. This means the footnotes are output using Citation Style 1 (CS1) as a default. One (IN
) uses {{citation}} as a base template, resulting in Citation Style 2 (CS2) as a default. To switch between these, use |mode=cs1
or |mode=cs2
as appropriate. This must be done each time the template is called in an article, or there will be an error message in the reference list.
{{Inflation/fn|US|mode=cs2}}
= [1]{{Inflation/fn|IN|mode=cs1}}
= [2]
Name list styles
This template supports |name-list-style=
to promote consistency with other citations in an article.
{{Inflation/fn|US-GDP|name-list-style=amp}}
= [1]