Template talk:COVID-19 data

Old discussion 1
Why are the death toll is decreasing? Isn't supposed to be more than 5 million right now? Can someone explain this? And also, if you can, please fix this. I'm so confused. I used to check the statistics everyday, but now since the numbers were unexpectedly decreasing, I decided to use Worldometer instead of Wikipedia. Qhairun (talk) 15:33, 27 December 2021 (UTC)
 * , thanks for pointing out the incorrect death total. maintains the table that updates automatically every day. There must be a bug. Current worldwide death toll in the table is listed as 4,260,075. That is definitely wrong. --Timeshifter (talk) 22:37, 27 December 2021 (UTC)
 * I've checked the source data and manually run the bot again; it's back to the correct number of 5400292 deaths. I'm not sure what's going on here; if the next day's bot update is wrong again, I'll set up a debug log to try and see if there's some time of day dependent problem with the source data. It also might have just been a temporary problem that has been resolved. Tol  (talk &#124; contribs) @ 23:13, 27 December 2021 (UTC)

Old discussion 2
Does anyone know or can anyone explain why these OWID numbers have changed so much?

Has anyone found the reliable references for the information on the OWID table yet? I've been referred to the JHU references in the past but the OWID data is not the same as the JHU data so these can't be the correct references for OWID. Where do OWID get their numbers from? I can understand numbers remaining static if not updated over Christmas but they shouldn't reduce like this.BringBackTheStats (talk) 11:43, 27 December 2021 (UTC)


 * I see now that they've changed again to what they should be.BringBackTheStats (talk) 11:49, 27 December 2021 (UTC)
 * Sorry, my mistake, they've gone back to the Christmas day update figures. Looks like there's no update for the 26th. Strange that they would update on Christmas day but not on the 26th Dec. So, OWID can move pretty fast and change their updates if they want to. It's a shame they usually leave it 24-36 hours before they can get around to it.BringBackTheStats (talk) 12:04, 27 December 2021 (UTC)
 * I've noticed this and replied in § Death toll. Tol  (talk &#124; contribs) @ 23:15, 27 December 2021 (UTC)

Old discussion 3
Was there vandalism? I wonder why there are now half a million deaths and about 40 million cases less in the list than just a few days ago. Did someone tamper with the list? --Maxl (talk) 17:48, 26 December 2021 (UTC)
 * @Maxl: The source of the data, Our World in Data, revised its numbers downwards, and the data were updated to match it. World cases decreased by 41087574, though I can't figure out why. It may be an error on their part, in which case it should resolve itself tomorrow, or a change in the definition of a case. Tol  (talk &#124; contribs) @ 20:12, 26 December 2021 (UTC)
 * @Tol: Thank you for the information! A change of this dimension should be explained by those who make the change, shouldn't it? Well, let's hope it will be resolved by tomoprrow. --Maxl (talk) 21:57, 26 December 2021 (UTC)

New discussion
Maxl, BringBackTheStats, Qhairun, Timeshifter: There were three discussions about this issue on two talk pages, so I've moved them all here so that we can discuss the issue in one place. I've run the bot manually (running it on command instead of the normally scheduled run), and the problem appears to have been resolved for now. I will monitor the data's next update, and if the problem persists, I will temporarily disable the bot's automatic run (and instead manually run it every day and check the data) so that I can figure out the issue. The bot's manual run (and the previous automatic runs) looked fine, so I think there was some unexplained change in the source data. Thank you all for bringing this issue to my attention. Tol (talk &#124; contribs) @ 23:40, 27 December 2021 (UTC)
 * Thanks ! --Timeshifter (talk) 23:55, 27 December 2021 (UTC)
 * No problem, @Timeshifter! Tol  (talk &#124; contribs) @ 00:01, 28 December 2021 (UTC)
 * Thank you, Tol, for your info! The figures seem to be back to normal for now, and thank you for keeping an eye on the issue. --Maxl (talk) 13:42, 28 December 2021 (UTC)
 * You're welcome, Maxl! The last update had normal data, so I think the problem's over. Thank you for notifying me of the problem! Tol  (talk &#124; contribs) @ 19:33, 28 December 2021 (UTC)

North Korea?
I'm surprised that we don't include North Korea. Even if there's no reliable data from there, readers may still be wondering about it, so it'd be a helpful cue to them to have an empty line. It also seems like a capitulation to the DPRK to exclude them, in a sense validating their strategy of pretending the pandemic isn't a thing there. &#123;{u&#124; Sdkb  }&#125;  talk 23:02, 15 January 2022 (UTC)


 * @Sdkb, I've added data for North Korea (zero vaccinations and  cases/deaths);   displays an em dash for no data.  Tol  (talk &#124; contribs) @ 02:32, 16 January 2022 (UTC)
 * Looks good; thanks! &#123;{u&#124; Sdkb  }&#125;  talk 02:56, 16 January 2022 (UTC)
 * No problem! Tol  (talk &#124; contribs) @ 22:02, 16 January 2022 (UTC)

Partial revert
I just saw your partial revert saying the template is intentionally styled normally instead of like the others. I was wondering if you could elaborate? I searched and couldn't find where the template is used. So, should I skip this template when updating all the templates to the new styles2.css? Jroberson108 (talk) 23:11, 20 January 2022 (UTC)


 * @Jroberson108: This template isn't really meant to be used in articles; it's mainly meant to just display the data as plainly as possible (with standard wikitable styles). It's left mostly unstyled so that someone working on the module can see what a generic table would look like without so much CSS, so that one can see what styles are applied by the module to all templates, without also seeing the styles layered on top of that. This template didn't have the original styles, and I don't think it should have the new styles, either. I've gone and restored some of your improvements that I mistakenly reverted along with the styles. Tol  (talk &#124; contribs) @ 23:18, 20 January 2022 (UTC)

North Korea cases < deaths
North Korea has 1 confirmed case, 21 of which has died. A very impressive death rate of 2100%. --魔琴 (Zauber Violino) (talk) 15:51, 16 May 2022 (UTC)


 * @魔琴: It's what they reported, so it's what this reports. These numbers are clearly wrong (if I recall correctly, the 21 deaths number was reported more recently than the 1 case) — but they're all the data we have. Tol  (talk &#124; contribs) @ 00:03, 17 May 2022 (UTC)

mw.loadJsonData, read-only table
Hi @Jroberson108, thanks for the revert and sorry for breaking things. What page did you see "Lua error in Module:COVID-19_data at line 58: table from mw.loadJsonData is read-only." on? I must've missed some use case in my testing... Legoktm (talk) 05:28, 24 October 2022 (UTC)
 * The template page at Template:COVID-19_pandemic_data. Jroberson108 (talk) 05:32, 24 October 2022 (UTC)
 * Both have sandbox pages. Templates that use the module are listed on Template:COVID-19_data/doc. Jroberson108 (talk) 05:40, 24 October 2022 (UTC)

Saint Martin
I don't know whether this has anything to do with yesterday's change, but "Saint Martin" now appears as a link to disambiguation page COVID-19 pandemic in Saint Martin on COVID-19 pandemic death rates and COVID-19 pandemic death rates by country. Judging by the figures, it refers to COVID-19 pandemic in the Collectivity of Saint Martin (the French bit). Please can anyone help? Certes (talk) 20:55, 11 March 2023 (UTC)


 * If by yesterday's change you mean the fix that was applied to the module, then no it has nothing to do with this. I looked at the JSON data and the name hasn't changed from "Saint Martin", which is where it links to based on the module: "COVID-19 pandemic in " + [name]. I do however see that prior to 9 March 2023 Saint Martin only had a name without any numerical data, so it's probable that it may not have displayed in the tables until recently? Not sure. do you have any input? Jroberson108 (talk) 13:35, 12 March 2023 (UTC)
 * @Certes, @Jroberson108: Thanks for letting me know. I believe this was a similar issue — data was added for a new entity, thereby uncovering previously hidden problems. I've fixed this one too. Tol  (talk &#124; contribs) @ 06:14, 14 March 2023 (UTC)

CDC data not sent to WHO
Since the US ended its public health emergency in early May 2023, it appears that the CDC has stopped reporting deaths to the WHO. However, it still collects and reports deaths on its own website. The data from this template for US haven’t changed since mid-May, but the CDC has since reported higher numbers (see https://covid.cdc.gov/covid-data-tracker/#datatracker-home). Is there a way to change where this template draws its data for the US or is just going to be out of date for the US for the foreseeable future? Elftm1m (talk) 16:47, 31 July 2023 (UTC)


 * @Elftm1m: This wouldn't really work without a reworking of the bot & module systems. I am, however, working on a rework of the COVID-19 pandemic data system (centralising the data with Commons tabular data, so it can be easily ported across wikis without having to set up the bot etc.); I'll see if I can get it to draw data from individual sources. Tol  (talk &#124; contribs) @ 19:16, 31 July 2023 (UTC)