模板:Inflation/testcases
外觀
Examples
[編輯]
{{Inflation/sandbox|DE|100|2000}}→ 66
{{Inflation/sandbox|US|595|1982}}→ 1985
{{Inflation/sandbox|US|595|1982|fmt=eq}}→ 相當於2025年的$1,985
{{Inflation/sandbox|US|800|1942|fmt=eq|r=-3}}→ 相當於2025年的$16,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 (相當於2025年的$1,985)
US$595 ({{Inflation/sandbox|US|595|1982|fmt=eq|cursign=[[United States dollar|US$]]}})→ US$595 (相當於2025年的US$1,985)
$21 million (equivalent to ${{Inflation/sandbox|US|21|2005|r=2}} million in {{Inflation/year|US}})→ $21 million (equivalent to $34.62 million in 2025)
{{Inflation/sandbox|UK|1|1209|fmt=eq|cursign=£}}→ 相當於2023年的£1,780
{{Inflation/sandbox|AU|100|2026|fmt=eq}}→ 相當於2026年的$100
${{Inflation/sandbox|US|100|2026}} in {{Inflation/year|US}}→ $100 in 2025
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.
{{Inflation/sandbox|UK|10|1971|fmt=eq}}→ 相當於2023年的$179 (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=£}}→ 相當於2023年的£179
$595 (${{Inflation/sandbox|US|595|1982|fmt=c}} today)→ $595 ($1,985 today) (Misleading time reference)
$595 (${{Inflation/sandbox|US|595|1982|fmt=c}} in {{CURRENTYEAR}})→ $595 ($1,985 in 2026) (Misleading time reference)
$100 (${{Inflation/sandbox|US|595|1982|fmt=c}} adjusted for inflation)→ $100 ($1,985 adjusted for inflation) (Misleading time reference)
$595 ({{Inflation/sandbox|US|595|1982|fmt=eq}})→ $595 (相當於2025年的$1,985)
$595 (equivalent to ${{Inflation/sandbox|US|595|1982|fmt=c}} in {{Inflation/year|US}})→ $595 (equivalent to $1,985 in 2025)
Jane Doe amassed a fortune of $1 billion in 1975, making her worth ${{Inflation|US|1|1975|fmt=c}} billion in {{Inflation/year|US}}.→ Jane Doe amassed a fortune of $1 billion in 1975, making her worth $6 billion in 2025. (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|1|1975|fmt=c}} billion in {{Inflation/year|US}}.→ Jane Doe amassed a fortune of $1 billion in 1975, equivalent to $6 billion in 2025. (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.
{{Inflation/sandbox}}→ 使用{{Inflation}}時出錯:|index=(參數1),|value=(參數2) and|start_year=(參數3) 必須被指定。
{{Inflation/sandbox|abc}}→ 使用{{Inflation}}時出錯:|value=(參數2) and|start_year=(參數3) 必須被指定。
{{Inflation/sandbox|AU}}→ 使用{{Inflation}}時出錯:|value=(參數2) and|start_year=(參數3) 必須被指定。
{{Inflation/sandbox|AU|100}}→ 使用{{Inflation}}時出錯:|start_year=(參數3) 必須被指定。
{{Inflation/sandbox|abc|€100|1980}}→ 使用{{Inflation}}時出錯:|index=abc(參數1)為無法識別索引.
{{Inflation/sandbox|DE|€100|1980}}→ 使用{{Inflation}}時出錯: NaN, 檢查參數是否存在非數字值:|value=€100(參數2).
{{Inflation/sandbox|DE|€100|zzzz|zzzz|r=zzzz}}→ 使用{{Inflation}}時出錯: NaN, 檢查參數是否存在非數字值:|value=€100(參數2),|start_year=zzzz(參數3),|end_year=zzzz(參數4) and|r=zzzz.
{{Inflation/sandbox|AU|100|1200|2027}}→ 使用{{Inflation}}時出錯:|start_year=1200(參數3) 低於索引"AU"最早可用年(1901)。 and|end_year=2027(參數4) 大於索引"AU"的最新可用年(2018).
{{Inflation/sandbox|AU|100|2005|2004}}→ 使用{{Inflation}}時出錯:|start_year=2005(參數3) 大於|end_year=2004(參數4).
{{Inflation/sandbox|AU|100|2005|2027|fmt=eq}}→ 使用{{Inflation}}時出錯:|end_year=2027(參數4) 大於索引"AU"的最新可用年(2018).
{{Inflation/sandbox|AU|100|2026|2027|fmt=eq}}→ 使用{{Inflation}}時出錯:|end_year=2027(參數4) 大於索引"AU"的最新可用年(2018).
{{Inflation/sandbox|AU|100|2026|1905|fmt=eq}}→ 使用{{Inflation}}時出錯:|start_year=2026(參數3) 大於|end_year=1905(參數4).
{{Inflation/sandbox|AU|100|2027|fmt=eq}}→ 使用{{Inflation}}時出錯:|start_year=2027(參數3) 大於 索引"AU"的最新可用年(2018).