Examples for all supported currency types
edit
100 in 2000, adjusted to latest supported year
edit
{{Inflation|AU|100|2000}}
{{Inflation|AU-road|100|2000}}
{{Inflation|BD|100|2000}}
{{Inflation|CA|100|2000}}
{{Inflation|DE|100|2000}}
{{Inflation|IR|100|1379}}
{{Inflation|JP|100|2000}}
{{Inflation|KRW|100|2000}}
{{Inflation|PH|100|2000}}
{{Inflation|PK|100|2000}}
{{Inflation|UK|100|2000}}
{{Inflation|UK-GDP|100|2000}}
{{Inflation|US|100|2000}}
{{Inflation|US-GDP|100|2000}}
{{Inflation|ZAR|100|2000}}
100 in 2000, adjusted to 2014
edit
{{Inflation|AU|100|2000|2014}}
{{Inflation|AU-road|100|2000|2014}}
{{Inflation|BD|100|2000|2014}}
{{Inflation|CA|100|2000|2014}}
{{Inflation|DE|100|2000|2014}}
{{Inflation|IR|100|1379|1393}}
{{Inflation|JP|100|2000|2014}}
{{Inflation|KRW|100|2000|2014}}
{{Inflation|PH|100|2000|2014}}
{{Inflation|PK|100|2000|2014}}
{{Inflation|UK|100|2000|2014}}
{{Inflation|UK-GDP|100|2000|2014}}
{{Inflation|US|100|2000|2014}}
{{Inflation|US-GDP|100|2000|2014}}
{{Inflation|ZAR|100|2000|2014}}
- dependencies
- Test cases for
UK |
TEST
|
A widget in 1900 was worth £90 (Approximately £12300 today) |
A widget in 1900 was worth £90 (Approximately £8245 today)
|
A widget in 1900 was worth £90 (Approximately £2271 in 1980) |
A widget in 1900 was worth £90 (Approximately £2271 in 1980)
|
A pre-decimal penny was worth in 1854 about the same as 49p today. |
A pre-decimal penny was worth in 1854 about the same as 33p today.[1]
|
This should be 1.031252968557 |
£1 in 2011 is worth approximately £1.03 today.
|
Missing parameters fail
{{Inflation}}
{{Inflation}}
Error when using {{Inflation}}: |index=
(parameter 1), |value=
(parameter 2) and |start_year=
(parameter 3) must be specified.
{{Inflation/sandbox}}
Error when using {{Inflation}}: |index=
(parameter 1), |value=
(parameter 2) and |start_year=
(parameter 3) must be specified.
Index fail
{{Inflation|INVALID|b|c}}
{{Inflation}}
Error when using {{Inflation}}: |index=INVALID
(parameter 1) not a recognized index.
{{Inflation/sandbox}}
Error when using {{Inflation}}: |index=INVALID
(parameter 1) not a recognized index.
Non-numeric fail
{{Inflation|DE|b|c}}
{{Inflation}}
Error when using {{Inflation}}: NaN, check parameters for non-numeric data: |value=b
(parameter 2) and |start_year=c
(parameter 3).
{{Inflation/sandbox}}
Error when using {{Inflation}}: NaN, check parameters for non-numeric data: |value=b
(parameter 2) and |start_year=c
(parameter 3).
{{Inflation|US|1|2017|2018|r=1}}
{{Inflation|US|1|2017|2018|r=2}}
{{Inflation|US|1|2017|2018|r=3}}
{{Inflation|US|0.96|2017|2018|r=1}}
{{Inflation|US|0.96|2017|2018|r=2}}
{{Inflation|US|0.96|2017|2018|r=3}}
{{Inflation|US|96|2017|2018|fmt=eq |r=0}}
{{Inflation|US|96|2017|2018|fmt=eqm |r=0}}
{{Inflation|US|96|2017|2018|cursign=£ |fmt=eq |orig=yes |r=0}}
- Y
${{Format price|{{Inflation|US-GDP|10000000000000|1900}}}}
→ $301 trillion
- Y
${{Format price|{{Inflation|US-GDP|1000000|1990}}}}
→ $2.06 million
- Y
DM {{Format price|{{Inflation|DE|1000000|1957|1978}}}}
→ DM 2.01 million
- Y
£{{Format price|{{Inflation|UK-GDP|1000|1323}}}}
→ £830,513
sandbox:
- Y
${{Format price|{{Inflation/sandbox|US-GDP|10000000000000|1900}}}}
→ $301 trillion
- Y
${{Format price|{{Inflation/sandbox|US-GDP|1000000|1990}}}}
→ $2.06 million
- Y
DM {{Format price|{{Inflation/sandbox|DE|1000000|1957|1978}}}}
→ DM 2.01 million
- Y
£{{Format price|{{Inflation/sandbox|UK-GDP|1000|1323}}}}
→ £830,513