< Template:InflationRevision as of 19:55, 30 October 2020 by imported>Hawkeye7
Changes to data set
- dependencies
- Test cases for
| UK |
TEST
|
| A widget in 1900 was worth £90 (Approximately £9810 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 39p 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.
|
Errors
| 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|a|b|c}}
{{Inflation}}
Error when using {{Inflation}}: |index=a (parameter 1) not a recognized index.
{{Inflation/sandbox}}
Error when using {{Inflation}}: |index=a (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).
|
Significant digits
{{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}}
Equivalence
{{Inflation|US|96|2017|2018|fmt=eq|r=0}}
{{Inflation|US|96|2017|2018|fmt=eqm|r=0}}
Wrapping with Template:format price
Y ${{Format price|{{Inflation|US-GDP|10000000000000|1900}}}} → $259 trillion
Y ${{Format price|{{Inflation|US-GDP|1000000|1990}}}} → $1.76 million
Y DM {{Format price|{{Inflation|DE|1000000|1957|1978}}}} → DM 2.01 million
Y £{{Format price|{{Inflation|UK-GDP|1000|1323}}}} → £662 thousand
sandbox:
Other test cases
References