Template:Inflation/testcases
Examples
编辑-
{{Inflation/sandbox|DE|100|2000}}
→ 66 -
{{Inflation/sandbox|US|595|1982}}
→ 1879 -
{{Inflation/sandbox|US|595|1982|fmt=eq}}
→ 相当于2023年的$1,879 -
{{Inflation/sandbox|US|800|1942|fmt=eq|r=-3}}
→ 相当于2023年的$15,000 -
{{Inflation/sandbox|US|100|2010|2012|fmt=eq|r=2}}
→ 相当于2012年的$105.28 -
US$595 ({{Inflation/sandbox|US|595|1982|fmt=eq}})
→ US$595 (相当于2023年的$1,879) -
US$595 ({{Inflation/sandbox|US|595|1982|fmt=eq|cursign=[[United States dollar|US$]]}})
→ US$595 (相当于2023年的US$1,879) -
$21 million (equivalent to ${{Inflation/sandbox|US|21|2005|r=2}} million in {{Inflation/year|US}})
→ $21 million (equivalent to $32.76 million in 2023) -
{{Inflation/sandbox|UK|1|1209|fmt=eq|cursign=£}}
→ 相当于2021年的£1,499 -
{{Inflation/sandbox|AU|100|2024|fmt=eq}}
→ 相当于2024年的$100 -
${{Inflation/sandbox|US|100|2024}} in {{Inflation/year|US}}
→ $100 in 2023
It is possible to use the template in incorrect ways without producing error messages. Please read the warnings and appropriate uses of this template at the beginning of the template description.
-
Template:!mxt
→ 相当于2021年的$150 (Omitting the|cursign=
parameter will show the $ symbol by default, which is the wrong currency symbol for British currency) -
{{Inflation/sandbox|UK|10|1971|fmt=eq|cursign=£}}
→ 相当于2021年的£150 -
Template:!mxt
→ $595 ($1,879 today) (Misleading time reference) -
Template:!mxt
→ $595 ($1,879 in 2024) (Misleading time reference) -
Template:!mxt
→ $100 ($1,879 adjusted for inflation) (Misleading time reference) -
$595 ({{Inflation/sandbox|US|595|1982|fmt=eq}})
→ $595 (相当于2023年的$1,879) -
$595 (equivalent to ${{Inflation/sandbox|US|595|1982|fmt=c}} in {{Inflation/year|US}})
→ $595 (equivalent to $1,879 in 2023) -
Template:!mxt
→ Jane Doe amassed a fortune of $1 billion in 1975, making her worth $6 billion in 2023. (CPI is not for personal wealth of the wealthy – use GDP deflator instead) -
Template:!mxt
→ Jane Doe amassed a fortune of $1 billion in 1975, equivalent to $6 billion in 2023. (CPI is not for personal wealth of the wealthy – use GDP deflator instead) -
Jane Doe amassed a fortune of $1 billion in 1975, equivalent to ${{Inflation/sandbox|US-GDP|1|1975|fmt=c}} billion in {{Inflation/year|US-GDP}}.
→ Jane Doe amassed a fortune of $1 billion in 1975, equivalent to $4 billion in 2020
Entering invalid parameters or omitting required parameters will result in an error message and categorization into Category:Pages with errors in inflation template.
-
Template:!mxt
→ 使用{{Inflation}}时出错:|index=
(参数1),|value=
(参数2) and|start_year=
(参数3) 必须被指定。 -
Template:!mxt
→ 使用{{Inflation}}时出错:|value=
(参数2) and|start_year=
(参数3) 必须被指定。 -
Template:!mxt
→ 使用{{Inflation}}时出错:|value=
(参数2) and|start_year=
(参数3) 必须被指定。 -
Template:!mxt
→ 使用{{Inflation}}时出错:|start_year=
(参数3) 必须被指定。 -
Template:!mxt
→ 使用{{Inflation}}时出错:|index=abc
(参数1)为无法识别索引. -
Template:!mxt
→ 使用{{Inflation}}时出错: NaN, 检查参数是否存在非数字值:|value=€100
(参数2). -
Template:!mxt
→ 使用{{Inflation}}时出错: NaN, 检查参数是否存在非数字值:|value=€100
(参数2),|start_year=zzzz
(参数3),|end_year=zzzz
(参数4) and|r=zzzz
. -
Template:!mxt
→ 使用{{Inflation}}时出错:|start_year=1200
(参数3) 低于索引"AU"最早可用年(1901)。 and|end_year=2025
(参数4) 大于索引"AU"的最新可用年(2018). -
Template:!mxt
→ 使用{{Inflation}}时出错:|start_year=2005
(参数3) 大于|end_year=2004
(参数4). -
Template:!mxt
→ 使用{{Inflation}}时出错:|end_year=2025
(参数4) 大于索引"AU"的最新可用年(2018). -
Template:!mxt
→ 使用{{Inflation}}时出错:|end_year=2025
(参数4) 大于索引"AU"的最新可用年(2018). -
Template:!mxt
→ 使用{{Inflation}}时出错:|start_year=2024
(参数3) 大于|end_year=1905
(参数4). -
Template:!mxt
→ 使用{{Inflation}}时出错:|start_year=2025
(参数3) 大于 索引"AU"的最新可用年(2018).