Template talk:Inflation
![]() | Template:Inflation is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the talk page for discussing improvements to the Inflation template. |
|
Archives: 1, 2, 3, 4Auto-archiving period: 6 months ![]() |
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
|
|
||||
This page has archives. Sections older than 180 days may be auto-archived by Lowercase sigmabot III if there are more than 4. |
Invalid year issue
editSome weird stuff's happening on Template:ShipCost/doc and Template:AircraftCost/doc due to this template.
{{ShipCost|FRA|3600000|year=1795}}
Works fine.
{{ShipCost|FRA|3600000|year=1796}}
hell breaks loose. Claiming NaN and reports a misnested strong error.
{{AircraftCost|FRA|3600000|year=1795}}
Works fine.
{{AircraftCost|FRA|3600000|year=1796}}
Broken, claiming NaN and reports a misnested strong error.
If someone knows what's going on here and can correct the issue, would you? Thanks! Zinnober9 (talk) 23:09, 1 March 2025 (UTC)
Comma consistency
editI've just noticed that {{Inflation}} Will ignore any commas
. Why? Isn't it possible to have the input/output figures consistent with each other?
My example:
{{Inflation|UK|12000|1385|cursign=£|fmt=eq|orig=yes}}
results in:
£12000 (equivalent to £12,378,344 in 2023) (i.e., £12000, no comma, £12 million, commas.)
Cheers, —Fortuna, imperatrix 10:22, 13 June 2025 (UTC)
- The above example is confusing because it has no comma in the input but we worked it out at Wikipedia:Help desk#Template:Inflation (comma (in)consistency). Commas are only ignored when the value is used in calculations, not when the original value is displayed with
|orig=yes
, so "Will ignore any commas" in the documentation seems a little misleading. It turned out the poster had an unrelated issue: An empty|r=
causes an error.{{Inflation|KRW|100|2000|r=}}
produces: - Error when using {{Inflation}}: NaN/calculation error please notify Template talk:Inflation.
- Templates are usually coded to produce the same with an empty and an omitted parameter. It's done with the simple
{{{r|}}}
if there is no default but it gets messier with a default. If the call has an empty|r=
then{{{r|0}}}
will produce the empty string and not 0. I suggest this workaround to replace the two{{{r|0}}}
:{{#if:{{{r|}}}|{{{r}}}|0}}
. It says: If r is both set and non-empty then use r, otherwise use 0. PrimeHunter (talk) 13:51, 13 June 2025 (UTC)- Thanks PrimeHunter, apologies for posting twice. I realised after posting here that it didn't seem to get much footfall so went to yon desk instead. I meant to delete this one. —Fortuna, imperatrix 09:23, 14 June 2025 (UTC)
AWB request relating to this template
editJust an FYI: see Wikipedia:AutoWikiBrowser/Tasks § Articles using Template:Inflation with CURRENTYEAR. Graham87 (talk) 07:27, 15 June 2025 (UTC)
- I got no response there, so I'll go through and fix them myself. Graham87 (talk) 07:34, 19 July 2025 (UTC)
- All done ... including those that use the template {{CURRENTISOYEAR}}. Graham87 (talk) 11:20, 29 July 2025 (UTC)
Edit request 22 July 2025
editThis edit request to Template:Inflation/year and Template:Inflation/fn has been answered. Set the |answered= parameter to no to reactivate your request. |
please update the CL year in {{Inflation/year}} and the citation year in {{Inflation/fn}} from 2020 to 2024, see update to Template:Inflation/CL/dataset.
Diff:
− | + | 2024 |
B1mbo (talk) 20:14, 22 July 2025 (UTC)
- Completed. P.I. Ellsworth , ed. – welcome! – 20:23, 23 July 2025 (UTC)
Template-protected edit request on 29 July 2025
editThis edit request to Template:Inflation/year and Template:Inflation/fn has been answered. Set the |answered= parameter to no to reactivate your request. |
In Template:Inflation/year: | NL = 2024
In Template:Inflation/fn, add second source:
{{#tag:ref|'''1900–present:''' {{cite web |title=Prijzen toen en nu |url=https://www.cbs.nl/nl-nl/visualisaties/prijzen-toen-en-nu |language=nl |website=cbs.nl |publisher=[[Centraal Bureau voor de Statistiek]]}} '''1450–1900:''' {{cite web |date=2021-06-14 |title=Value of the Guilder versus Euro |url=https://hdl.handle.net/10622/VY7UY3 |website=iisg.amsterdam |publisher=[[International Institute of Social History]] |url-status=dead |archive-url=https://web.archive.org/web/20240524174557/https://iisg.amsterdam/en/research/projects/hpw/calculate.php |archive-date=2024-05-24 |access-date=2025-07-29}}|name=inflation-NL|group={{{group|}}} }}
1900–present: "Prijzen toen en nu". cbs.nl (in Dutch). Centraal Bureau voor de Statistiek. 1450–1900: "Value of the Guilder versus Euro". iisg.amsterdam. International Institute of Social History. 2021-06-14. Archived from the original on 2024-05-24. Retrieved 2025-07-29.}}
— TheThomanski | t | c | 18:26, 29 July 2025 (UTC)
UK inflation footnote source: date is 2017, should be newer?
editThanks for all the great work on this template. Regarding the footnotes for source of inflation data, for UK, it is
{{Inflation/fn|UK}}
producing a footnote that specifically names the year "2017" as the date of the a source (I'm trying to copy & paste the text of the footnote, but the paste is failing) The source is website: https://measuringworth.com/datasets/ukearncpi/ which appears to be up-to-date thru 2024. So, the "2017" date displayed in the footnote should be updated from "2017" to "2023" or "2024". Noleander (talk) 15:06, 31 July 2025 (UTC)
Iranian rials does not go past 1398?
editI am looking at Kandovan Tunnel to insert: {{inflation|IR|24,853,400|1938}}
which generates:
- Error when using {{Inflation}}:
|start_year=1938
(parameter 3) is greater than the latest available year (1398) in index "IR".
Indeed this template's documentation says the limit is 1398, with the source link dead. Is this an error or some sort of historical currency limitation?
Personal side note: the source used in the article - I will need to figure out a conversion to US dollars at some point. Commander Keane (talk) 11:55, 7 August 2025 (UTC)
Template-protected edit request on 25 August 2025
editThis edit request to Template:Inflation/fn has been answered. Set the |answered= parameter to no to reactivate your request. |
''[http://www.jstor.org/stable/43295548 Consumer Prices and Real Wages in Taiwan and Korea Under Japanese Rule]''. Hitotsubashi Journal of Economics
should be "[http://www.jstor.org/stable/43295548 Consumer Prices and Real Wages in Taiwan and Korea Under Japanese Rule]". ''Hitotsubashi Journal of Economics''
per MOS:MINORWORK and MOS:MAJORWORK. —DocWatson42 (talk) 08:20, 25 August 2025 (UTC) DocWatson42 (talk) 08:20, 25 August 2025 (UTC)
- Completed. P.I. Ellsworth , ed. – welcome! – 15:30, 25 August 2025 (UTC)
- Thank you. ^_^ —DocWatson42 (talk) 20:10, 25 August 2025 (UTC)
- Happy to help! Paine 21:36, 25 August 2025 (UTC)
- Thank you. ^_^ —DocWatson42 (talk) 20:10, 25 August 2025 (UTC)
Edit request 26 August 2025
editIt is requested that an edit be made to the template-protected template at Template:Inflation. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the template's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
Request: change | TR = 2021 to | TR = 2024 on Template:Inflation/year. Zoozaz1 (talk) 20:45, 26 August 2025 (UTC)