This is the template test cases page for the sandbox of Template:Inflation. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Examples for all supported currency types edit
100 in 2000, adjusted to latest supported year edit
{{Inflation|AU|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
178 |
Error when using {{Inflation}}: |index=AU (parameter 1) not a recognized index. |
{{Inflation|AU-road|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
184 |
Error when using {{Inflation}}: |index=AU-road (parameter 1) not a recognized index. |
{{Inflation|BD|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
400 |
Error when using {{Inflation}}: |index=BD (parameter 1) not a recognized index. |
{{Inflation|CA|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
165 |
Error when using {{Inflation}}: |index=CA (parameter 1) not a recognized index. |
{{Inflation|DE|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
70 | 70 |
{{Inflation|IR|100|1379}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
2400 |
Error when using {{Inflation}}: |index=IR (parameter 1) not a recognized index. |
{{Inflation|JP|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
102 |
Error when using {{Inflation}}: |index=JP (parameter 1) not a recognized index. |
{{Inflation|KRW|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
155 |
Error when using {{Inflation}}: |index=KRW (parameter 1) not a recognized index. |
{{Inflation|PH|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
219 |
Error when using {{Inflation}}: |index=PH (parameter 1) not a recognized index. |
{{Inflation|PK|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
509 |
Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. |
{{Inflation|UK|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
213 |
Error when using {{Inflation}}: |index=UK (parameter 1) not a recognized index. |
{{Inflation|UK-GDP|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
145 |
Error when using {{Inflation}}: |index=UK-GDP (parameter 1) not a recognized index. |
{{Inflation|US|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
177 |
Error when using {{Inflation}}: |index=US (parameter 1) not a recognized index. |
{{Inflation|US-GDP|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
168 |
Error when using {{Inflation}}: |index=US-GDP (parameter 1) not a recognized index. |
{{Inflation|ZAR|100|2000}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
319 |
Error when using {{Inflation}}: |index=ZAR (parameter 1) not a recognized index. |
100 in 2000, adjusted to 2014 edit
{{Inflation|AU|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
148 |
Error when using {{Inflation}}: |index=AU (parameter 1) not a recognized index. |
{{Inflation|AU-road|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
173 |
Error when using {{Inflation}}: |index=AU-road (parameter 1) not a recognized index. |
{{Inflation|BD|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
253 |
Error when using {{Inflation}}: |index=BD (parameter 1) not a recognized index. |
{{Inflation|CA|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
131 |
Error when using {{Inflation}}: |index=CA (parameter 1) not a recognized index. |
{{Inflation|DE|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
64 | 64 |
{{Inflation|IR|100|1379|1393}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
968 |
Error when using {{Inflation}}: |index=IR (parameter 1) not a recognized index. |
{{Inflation|JP|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
98 |
Error when using {{Inflation}}: |index=JP (parameter 1) not a recognized index. |
{{Inflation|KRW|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
149 |
Error when using {{Inflation}}: |index=KRW (parameter 1) not a recognized index. |
{{Inflation|PH|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
180 |
Error when using {{Inflation}}: |index=PH (parameter 1) not a recognized index. |
{{Inflation|PK|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
329 |
Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. |
{{Inflation|UK|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
150 |
Error when using {{Inflation}}: |index=UK (parameter 1) not a recognized index. |
{{Inflation|UK-GDP|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
134 |
Error when using {{Inflation}}: |index=UK-GDP (parameter 1) not a recognized index. |
{{Inflation|US|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
137 |
Error when using {{Inflation}}: |index=US (parameter 1) not a recognized index. |
{{Inflation|US-GDP|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
133 |
Error when using {{Inflation}}: |index=US-GDP (parameter 1) not a recognized index. |
{{Inflation|ZAR|100|2000|2014}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
261 |
Error when using {{Inflation}}: |index=ZAR (parameter 1) not a recognized index. |
Changes to data set edit
- 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. |
Errors edit
Missing parameters fail
Index fail
Non-numeric fail
Significant digits edit
{{Inflation|US|1|2017|2018 |r=1}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
1 |
Error when using {{Inflation}}: |index=US (parameter 1) not a recognized index. |
{{Inflation|US|1|2017|2018 |r=2}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
1.02 |
Error when using {{Inflation}}: |index=US (parameter 1) not a recognized index. |
{{Inflation|US|1|2017|2018 |r=3}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
1.024 |
Error when using {{Inflation}}: |index=US (parameter 1) not a recognized index. |
{{Inflation|US|0.96|2017|2018 |r=1}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
1 |
Error when using {{Inflation}}: |index=US (parameter 1) not a recognized index. |
{{Inflation|US|0.96|2017|2018 |r=2}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
0.98 |
Error when using {{Inflation}}: |index=US (parameter 1) not a recognized index. |
{{Inflation|US|0.96|2017|2018 |r=3}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
0.983 |
Error when using {{Inflation}}: |index=US (parameter 1) not a recognized index. |
Equivalence edit
{{Inflation|US|96|2017|2018 |fmt=eq |r=0}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
equivalent to $98 in 2018 |
Error when using {{Inflation}}: |index=US (parameter 1) not a recognized index. |
{{Inflation|US|96|2017|2018 |fmt=eqm |r=0}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
98 |
Error when using {{Inflation}}: |index=US (parameter 1) not a recognized index. |
{{Inflation|US|96|2017|2018 |cursign=£ |fmt=eq |orig=yes |r=0}}
{{Inflation}} | {{Inflation/sandbox}} |
---|---|
£96 (equivalent to £98 in 2018) |
Error when using {{Inflation}}: |index=US (parameter 1) not a recognized index.) |
Wrapping with Template:format price edit
-
${{Format price|{{Inflation|US-GDP|10000000000000|1900}}}}
→ $301 trillion -
${{Format price|{{Inflation|US-GDP|1000000|1990}}}}
→ $2.06 million -
DM {{Format price|{{Inflation|DE|1000000|1957|1978}}}}
→ DM 2.01 million -
£{{Format price|{{Inflation|UK-GDP|1000|1323}}}}
→ £830,513
sandbox:
-
${{Format price|{{Inflation/sandbox|US-GDP|10000000000000|1900}}}}
→ $Format price error: cannot parse value "Error when using {{Inflation}}:|index=US-GDP
(parameter 1) not a recognized index." -
${{Format price|{{Inflation/sandbox|US-GDP|1000000|1990}}}}
→ $Format price error: cannot parse value "Error when using {{Inflation}}:|index=US-GDP
(parameter 1) not a recognized index." -
DM {{Format price|{{Inflation/sandbox|DE|1000000|1957|1978}}}}
→ DM 2.01 million -
£{{Format price|{{Inflation/sandbox|UK-GDP|1000|1323}}}}
→ £Format price error: cannot parse value "Error when using {{Inflation}}:|index=UK
(parameter 1) not a recognized index."
Other test cases edit
Very large amount of money
References edit
- ^ UK Retail Price Index inflation figures are based on data from Clark, Gregory (2017). "The Annual RPI and Average Earnings for Britain, 1209 to Present (New Series)". MeasuringWorth. Retrieved May 7, 2024.