Malli arutelu:Koroonapandeemia riigiti

Lehekülje sisu ei toetata teistes keeltes.
Allikas: Vikipeedia

(Sorry for writing in English)

Greetings everyone. I developed a bot to automatically update the number of cases from the wiki.en template. This bot is currently active on wiki.pt and wiki.uk, and I am sending this message to check if there is interest in using the bot on this wiki as well. If so, please let me know. Thank you! Albertoleoncio (arutelu) 17. juuni 2020, kell 21:06 (EEST)[vasta]

Kruusamägi, Metsavend,. Albertoleoncio (arutelu) 22. juuni 2020, kell 02:21 (EEST)[vasta]
Yes, please! We would really like that. Ivo (arutelu) 22. juuni 2020, kell 02:48 (EEST)[vasta]
Kruusamägi, I didn't find a page to make a bot flag request. Andres, Jaan513, How do I do? Albertoleoncio (arutelu) 22. juuni 2020, kell 05:37 (EEST)[vasta]
Just let it make few edits, and if it seems to work, then write in here about that. Ivo (arutelu) 22. juuni 2020, kell 12:59 (EEST)[vasta]
Kruusamägi, Seems to work. See Δ5663062. Albertoleoncio (arutelu) 23. juuni 2020, kell 22:09 (EEST)[vasta]
BTW: It should also update the date. Ivo (arutelu) 23. juuni 2020, kell 22:54 (EEST)[vasta]
Kruusamägi, Shouldn't be necessary, since the bot will update every 15 minutes. It will be always the most updated. Albertoleoncio (arutelu) 24. juuni 2020, kell 04:40 (EEST)[vasta]
"every 15 minutes" seems like a total overkill. once a day is good enought. Ivo (arutelu) 24. juuni 2020, kell 15:30 (EEST)[vasta]
So we can take out the date if bot updates the template once or twice a day. More updates aren't necessary.
Bot should also update all the numbers and not just some of them.
It should be pointed out, that at a moment all the countries (etc) are included, that had at least 100 cases as of May 22nd. The rest of the countries are missing from this template.
If the bot works, then we will grant the bot flag in the coming days. Ivo (arutelu) 24. juuni 2020, kell 19:22 (EEST)[vasta]
Albertoleoncio, This template is now pretty problematic. Some numbers have been changed, but most haven't. It can't stay that way. Will you fix that? Ivo (arutelu) 27. juuni 2020, kell 16:56 (EEST)[vasta]

IMHO, currently, in a situation where officially confirmed data is going to surpass 10 million this month (bearing in mind that the "official data" is somewhere 2–3 times, if so, less than the actual situation) it is misleading to publish 5 instead of 10 million.—Pietadè (arutelu) 27. juuni 2020, kell 17:37 (EEST)[vasta]

Kruusamägi, Pietadè, In order to work, it is necessary to insert bot tags in the template like this example. Thus, the bot will update only the numbers between these markings. This was planned to limit the bot, allowing the community to make other changes to the table (such as style and country order) that are different from the wiki-en. Even if the community prefers to update any country independently, with data other than wiki-en, just remove the mark on the corresponding line and the bot will not edit it. I programmed the bot to update the template once a day, as requested. Albertoleoncio (arutelu) 27. juuni 2020, kell 20:41 (EEST)[vasta]
So I started adding more tags. I'll later also fix the country order.
Is it defined on when exactly will the bot do its edits? Ivo (arutelu) 27. juuni 2020, kell 21:09 (EEST)[vasta]
Kruusamägi, Yes, at 15:00 UTC. Albertoleoncio (arutelu) 27. juuni 2020, kell 21:30 (EEST)[vasta]
Albertoleoncio, I'll make few edits and could you please run it once more at 16:00 UTC? (or something like that) Should I take out the ones like "USS Theodore Roosevelt" etc? Ivo (arutelu) 28. juuni 2020, kell 18:14 (EEST)[vasta]
Kruusamägi, I just ran the bot. The items on the log list are the mismatch between here and wiki-en. "USS Theodore Roosevelt", for example, doesn't exist there and the bot cannot update, so it reports that. By the way, what do you think about a extra column with references? Albertoleoncio (arutelu) 28. juuni 2020, kell 18:55 (EEST)[vasta]
References don't seem that vital. Just linking to English template with "seem more info here" should do the trick pretty well. And it should still be mostly Johns Hopkins University data, yes?
I looked that log previously as well and that is from where that question came. If the bot copies numbers from countries, then why can't it copy them from ships as well? Ivo (arutelu) 28. juuni 2020, kell 19:02 (EEST)[vasta]
Kruusamägi, Not really, from Johns Hopkins University only the World statistics and every country has a different source, but states the English template as a source doesn't seems a problem. I had a bug with the ships, but I already fixed and it's working now. Albertoleoncio (arutelu) 28. juuni 2020, kell 19:34 (EEST)[vasta]

────────────────────────────────────────────────────────────────────────────────────────────────────Well, at least when I manually made it, then it was based on Johns Hopkins University data. I don't feel that references add that much more. In general, the data quality is somewhat poor anyway (for example look the numbers that Jersey has). So to me, it seems that adding references just makes it look too trustworthy. There is "Uuendatud 28. juuni 2020 kell 15.00 UTC" -- might it be possible to update the date as well (for instance "28.06.2020 15.00 UTC" is ok as well). Ivo (arutelu) 28. juuni 2020, kell 19:45 (EEST)[vasta]

Like that? (Δ5666001) Albertoleoncio (arutelu) 28. juuni 2020, kell 20:43 (EEST)[vasta]
Perfect. Ivo (arutelu) 28. juuni 2020, kell 20:45 (EEST)[vasta]
Kruusamägi, Andres, OK! How about the bot flag? Albertoleoncio (arutelu) 28. juuni 2020, kell 20:54 (EEST)[vasta]

Weirdly it seems that when trying to align the numbers based on how many have been recovered, then it doesn't give the right alignment.  Ivo (arutelu) 1. juuli 2020, kell 06:53 (EEST)[vasta]


Smth has went wrong with the latest update (India).—Pietadè (arutelu) 3. juuli 2020, kell 18:09 (EEST)[vasta]

Albertoleoncio, Bot should actually arrange the list according to the number of identified cases. The only loose case here is Tanzania. Can it be done? Ivo (arutelu) 1. september 2020, kell 17:44 (EEST)[vasta]

Kruusamägi, Hi Ivo! Unfortunately, Tanzania is the only country that do not report cases. Since the wiki-en shows "No data", the bot just insert a "-". If you want, you can remove the bot tag in the Tanzania line and insert the most recent number manually. Albertoleoncio (arutelu) 1. september 2020, kell 18:24 (EEST)[vasta]
If the bot would to the sorting, would it be a problem, when there would be something without a bot to recognize? Ivo (arutelu) 1. september 2020, kell 18:34 (EEST)[vasta]

Albertoleoncio, could you please avoid using {{formatnum:{{color|darkgray|–}}}} where non-numeric argument is invalid. Pikne 20. detsember 2020, kell 12:17 (EET)[vasta]

Pikne, I'll check it out. Meanwhile, I've created the system category with the hidden cat magicword here. Albertoleoncio (arutelu) 20. detsember 2020, kell 14:58 (EET)[vasta]

Hong Kong error[muuda lähteteksti]

Viga, mis kuvab põhiartiklisse / error that is displayed in the main article too, is originated by (lines 681–688): — Pietadè Kaastöö 17. jaanuar 2021, kell 09:55 (EET):[vasta]

|-
! style="text-align:left;" |{{Pisilipp|Hongkong}}
|{{formatnum:<ref>{{cite web|url=https://chp-dashboard.geodata.gov.hk/covid-19/en.html|title=Coronavirus Disease (COVID-19) in HK|publisher=Department of Health|location=Hong Kong|date=15 January 2021|access-date=15 January 2021}}</ref>
Meaning: {{ in '{{formatnum:...' is orphan, and contains “<ref>{{cite web...” (the only instance of ‘<ref>{{cite web’ in this template)... — Pietadè Kaastöö 17. jaanuar 2021, kell 22:15 (EET)[vasta]

Name of the template[muuda lähteteksti]

Albertoleoncio, Template name was changed to "Koroonapandeemia riigiti". Please "inform" the bot. Ivo (arutelu) 18. jaanuar 2021, kell 17:15 (EET)[vasta]

Kruusamägi, J Korras. Albertoleoncio (arutelu) 18. jaanuar 2021, kell 17:41 (EET)[vasta]
Albertoleoncio, And what about my previous remark on Hongkong orphan “{{”? — Pietadè Kaastöö 18. jaanuar 2021, kell 18:03 (EET)[vasta]
Pietadè, Errors like that happens when someone mess up the template on wiki-en. When the bot runned last time the error is gone, so someone already fixed over there. If this happen again, please ping me, so I can be notified. Albertoleoncio (arutelu) 18. jaanuar 2021, kell 18:42 (EET)[vasta]
Albertoleoncio, Grazie mille! — Pietadè Kaastöö 18. jaanuar 2021, kell 18:46 (EET)[vasta]

Maailma maade loend[muuda lähteteksti]

Ehk ei ole siia seda (mall pisilipp, viitega riigile, mitte koroonaartiklile) siiski vaja; hommikul oli u poolel viidetest märge "lua memory nappus", pärast vasakpoolses leviku tabelis arvutusmalli (letaalsus) asendamist "elus numbritega" taastus ka artikli kuva.— Pietadè Kaastöö 2. aprill 2021, kell 16:13 (EEST)[vasta]

See pisilipu mall ei kasuta mooduleid. Indoneesia puhul võtab Wikidatast andmeid ja see kasutab ainukesena. Ivo (arutelu) 2. aprill 2021, kell 18:33 (EEST)[vasta]
Tolle artikli puhul tekitas seda Lua error viga see letaalsuse mall + kõik need cite web viited. Siinsel "Koroonapandeemia riigiti" tabelil polnud sellega pea mingit pistmist. Ivo (arutelu) 3. aprill 2021, kell 11:23 (EEST)[vasta]
Ilmselt ei ole sul õigus, aga see sex; hetkel on "maailma maade loendi tabelis" (artikli pahem veerg) lua (Indoneesia) punane; kuna artikli kui üksuse võime kuvada andmeid (kogu see mass, mis Koroonapandeemia artiklisse sisse tuleb) on piiratud mahuga suurus, siis on ilmselt kiir-/pakiline lahendus teha nt Leviku osa eraldi artikliks (nt Epidomoloogia alt minevad lingid, ja siduda nt artikliga COVID-19 pandemic by country and territory).— Pietadè Kaastöö 4. aprill 2021, kell 12:15 (EEST)[vasta]
Sedand küll, et artiklis Koroonapandeemia on eelvaate all kuvatavate profiilimisandmete järgi enamvähem kogu Lua mälu jätkuvalt kasutatud ning on juhuslik, et praegu on puhvris versioon, mis tõrketeateid ei näita. Valdav osa mälukasutusest on seotud infokastis ja siin mallis sisalduvate pöördumistega Vikiandmete poole. Kui need pöördumised artiklist ära jätta, siis on mälust kasutatud umbes 5%. Pikne 4. aprill 2021, kell 18:52 (EEST)[vasta]
Sedand minagi, sa ei saa lisada ühele ja ainsale artiklile lõputult väljakutsutavat andmemahtu (egas ta kummist ole; enwi mitmes kohas on sellest ka juttu olnud); ent, minu PC on järjekordselt ründe all (nu, kes sa oleksid, kui sind isegi ei rünnataks, null...;-))— Pietadè Kaastöö 4. aprill 2021, kell 19:17 (EEST)[vasta]
Lahendus seega enwi jt eeskujul pikemad teemad eraldi artikliteks; isegi Iisraeli andmekuva ei ole senini stabiliseerunud (st paar päeva võib olla nt letaalsus 0, siis ent jrg päev lastakse käibele uued andmed, kus on uuendatud ca kogu 365 p andmed).— Pietadè Kaastöö 4. aprill 2021, kell 19:25 (EEST)[vasta]
Selles artiklis pole praegu kuigi palju andmeid ja probleem on seotud kokku kaheksa Vikiandmetest võetud arvuga. Asjade ümbertõstmine iseenesest ei lahenda mälukasutuse probleemi. Lihtsalt Vikiandmetega seotud päringud on kulukad. Tuleks uurida, kas neid päringuid saab teha tõhusamal kujul või siis tuleks antud juhul Vikiandmeid mitte kasutada. Pikne 4. aprill 2021, kell 19:33 (EEST)[vasta]
Ma hetkel tekitasin selle levikuinfo tarbeks ka eraldi artikli (COVID-19 levik maailmas), lisasin pandeemiaartiklile juurde uusi teemasid (s.t asju, mida varem polnud mainitud, aga mille kohta on meil isegi eraldi artiklid) ning paigutasin artikliosasid loogilisemasse järjestusse. Vähemalt seal koroonapandeemia artiklis peaks nüüd mälukasutusega asjad korras olema. Ivo (arutelu) 4. aprill 2021, kell 19:53 (EEST)[vasta]
Mulle näitab praegu eelvaates, et selles uues artiklis on ikkagi umbes 85% mälust kasutatud. Et mälu üsna kindlasti lõhki ajada piisab vaid sellest, kui võtta siin tabelis veel ühe riigi arvud Vikiandmetest. Pikne 4. aprill 2021, kell 20:04 (EEST)[vasta]
Ma ei mõista, et miks see vikiandmete asi nii katkine on (samas on ka teisi kohti, nagu artikkel Talutuba soemüüriga, kus võtab wikidatast kraami). Siin peaks küll seda ingliskeelset malli ümber tegema, sest igapäevaselt uuendab bot selle pealt numbrid ja nii ei aitaks see, kui India ja Indoneesia juures WD kasutus siit mallist välja praakida, sest bot paneks selle järgmine päev tagasi. Ivo (arutelu) 4. aprill 2021, kell 20:13 (EEST)[vasta]
Nende andmetega opereerimiseks on eri mooduseid. Antud juhul on koroonaga seotud andmeüksused ka üsna pirakad. Artiklis Koroonapandeemia Austrias ajasid enne mälu lõhki ainuüksi ühe riigi andmed infokastis. WikedKentaur ehk jagab rohkem seda asja. Samas kõige lihtsam oleks siin vist paluda roboti omanikul Vikiandmeid mitte kasutada. Pikne 4. aprill 2021, kell 20:26 (EEST)[vasta]
Jätsin siia ka kommetaari. Antud juhul näiks mõistlik ingliskeelsest mallist see WD päringute osa välja võtta, sest see lõhub mitmes keelversioonis artikleid. Ivo (arutelu) 4. aprill 2021, kell 20:27 (EEST)[vasta]
Lisaks paistavad Wikidatast tulema valed numbrid. Vähemalt meil siin. Ivo (arutelu) 4. aprill 2021, kell 21:20 (EEST)[vasta]

Kui teeks siis nii, et jätaks selle "maailma maade nimistu" KP leviku artiklisse (tavaliselt on maad/riigid seotud vastavate "koroonaartiklitega") ja piirduks koroonapandeemia artiklis vastakpoolse Our World in Data andmestul põhinevaga. Võib-olla avaldatakse kunagi ka excess deaths data, nt Brasiilia terviseameti teatel oli see ~+60%, idanaabri kohta on BBC World News analoogsetele andmetele viidanud; Our World in Data andmetel on käimasolev langetanud kogu maailmas oodatavat eluiga ~1+ aasta võrra (see teadmus on mõne kuu vanune, tänast seisu ei tea).— Pietadè Kaastöö 5. aprill 2021, kell 09:18 (EEST)[vasta]
Nt enne oli, ja on ka praegu tõrge artiklis Koroonapandeemia Indias (et:Kategooria:Skriptitõrgetega leheküljed)— Pietadè Kaastöö 5. aprill 2021, kell 12:14 (EEST)[vasta]
Ja on endiselt, eeldaks manuaalset sisestamist, või asjatundlikku sekkumist koodidesse..., ühtlasi jätan mahupärssimise eesmärgil Koroonapandeemia artiklisse vaid vasema veeru leviku andmestuga (infokastis on hõlmatud riigid juba niigi olemas).— Pietadè Kaastöö 6. aprill 2021, kell 22:09 (EEST)[vasta]

Ma ise usun, et see riikide tabel huvitaks rohkemaid lugejaid. Aga nojah.
Samas võiks see Koroonahaiguslevi tabel ehk ka lühem olla. Nt 10M pealt hakata edasi liikuma 10M sammuga. Ivo (arutelu) 6. aprill 2021, kell 22:59 (EEST)[vasta]
Levitabel läheb ilmselt lühema sammu peale, pikemat aega juba sellele mõelnud (võib-olla nt juhtumid 50M pealt 25M sammuga; "letalismid" siis ehk mingist ajapunktist samuti mingi pikema sammu peale); infokasti nakatunud riikide/territooriumite loend on kronoloogilisse jrk pandav, seni viimane üksus lisandus vist käesoleva a jaanuaris; riikide tabel huvitaks / oleks asisem kui riigid (territooriumid, laevad) oleksid lingitud vastavate üksuste koroonaartiklitega, enwikis on need (vist) kaetud.— Pietadè Kaastöö 6. aprill 2021, kell 23:32 (EEST)[vasta]
Pm saame ka siin sellist linkimist teha, aga me ei suuda neid lingitud artikleid lugemisväärseteks kirjutada. Seepärast pole ma ka püüdnud neid linke sisse tuua, sest nii saaks linkida ainult väikse hulga riike (täna 57) ning sealgi pole enamus neist artiklitest üldse asjalikud (ning inimesed on tänaseks ammu koroonateemast nii tüdinud, et suurt keegi neid artikleid ei ka loe). Samuti: kui sellised lingid lisada, siis oleks see lingirägastik paras lapitekk. Ivo (arutelu) 7. aprill 2021, kell 02:12 (EEST)[vasta]
Siin oleks näide. Ühteaegu on ära võetud nii mall (ilma, et midagi näha oleks) kui ka kasutatud ühte võimalikku lahendust "linkide lapiteki" vältimiseks. Mõlemat ei ole loomulikult vaja, aga mõte selles, et selliseid asju saab lihtsasti teha. Küsimus, et mida oleks mõistlik teha... Soove? Ivo (arutelu) 7. aprill 2021, kell 02:39 (EEST)[vasta]
Tabeli hetke kolmas (India) ütleb juhtumite arvuks 049, kellest siis 547 on surnud ja 279 paranenud ... — Pietadè Kaastöö 7. aprill 2021, kell 08:23 (EEST)[vasta]
Sest India puhul võtab tabel arvud Wikidatast, aga nagu me juba hulk aega tagasi tuvastasime, siis see lahendus ei tööta. Ivo (arutelu) 7. aprill 2021, kell 09:14 (EEST)[vasta]
Ehk siis kui me ignoreerime seda loodetavasti mingi hetk lahenevat India ja Indoneesia jama, siis milline peaks see tabel sinu arvates välja nägema? Eriti pidades silmas just toda näidet.Ivo (arutelu) 7. aprill 2021, kell 20:14 (EEST)[vasta]

──────────────────────────────────────────────────────────────────────────────────────────────────── Ideaalis Statistika lõigu alguses vasemal olev tabel, "asi" ent areneb kiirelt ja suht ettearvamatult...
või siis kopeerida nt see (jms) tabel(id): Surmadjuhtumid riigiti...— Pietadè Kaastöö 7. aprill 2021, kell 21:07 (EEST)[vasta]

Meil ongi ju see tabel? Ainult selle erinevusega, et me ei lingi riikide vastavate artiklite juurde, sest meil pole neid artikleid enamuse riikide kohta (ja pole mõtet ka tekitada). Palun selgita lähemalt. Ma ei mõista. Ivo (arutelu) 7. aprill 2021, kell 21:21 (EEST)[vasta]

Albertoleoncio, We do have a problem with India and Indonesia, which try to take information from WD. Shown numbers are wrong and that is a huge strain in resources generating Lua error messages in articles. Ivo (arutelu) 6. aprill 2021, kell 23:02 (EEST)[vasta]

Albertoleoncio, what should we do with those two countries? Ivo (arutelu) 8. aprill 2021, kell 15:57 (EEST)[vasta]
Kruusamägi, Hi! Sorry for the delay. I had the same issue on Portuguese Wikipedia and I didn't find a way to fix it yet. In the meantime, I removed the bot tag in those countries and the bot will ignore it on the next update. Albertoleoncio (arutelu) 9. aprill 2021, kell 01:13 (EEST)[vasta]
Thanks! BTW: it is weird, that to bot it seems that "Saint Helena, Ascension and Tristan da Cunha" is misssing, but it isn't. Ivo (arutelu) 9. aprill 2021, kell 01:19 (EEST)[vasta]

Template change[muuda lähteteksti]

Albertoleoncio, as the English template is changed, then so should this. What are the plans with the bot? Ivo (arutelu) 8. oktoober 2021, kell 23:09 (EEST)[vasta]

Kruusamägi, Well, as the update will now be done via Wikidata, the bot is unnecessary. I didn't have time to look at the new code in depth, but just copying the template and the module is already halfway there. Albertoleoncio (arutelu) 9. oktoober 2021, kell 04:46 (EEST)[vasta]
Albertoleoncio, ok. What raises some questions, is where have some numbers been diverted. There are locations like French Polynesia (that in this table had 45 181 cases and where the new table has --), and there are also some ships (like Costa Atlantica and Greg Mortimer). Do you happen to know about it? Ivo (arutelu) 9. oktoober 2021, kell 22:48 (EEST)[vasta]
@Kruusamägi: Hello. (I hope English is fine.) I am the one who made the new English Wikipedia template, module, and bot. I can copy the module and data over, and direct the bot to run here too. Should I do this? Thank you. Tol (arutelu | kaastöö) 16. oktoober 2021, kell 02:00 (EEST)[vasta]
@Kasutaja:Tol: I'd love that. Ivo (arutelu) 16. oktoober 2021, kell 02:07 (EEST)[vasta]
@Kruusamägi: Alright; I will set up the module. I will need some help translating, though. I can usually do country names automatically with Wikidata, but a few notes will need translation. Do I need to request approval to run the bot? Tol (arutelu | kaastöö) 16. oktoober 2021, kell 02:22 (EEST)[vasta]
How many edits will the bot do? What shall I translate? Ivo (arutelu) 16. oktoober 2021, kell 10:41 (EEST)[vasta]
@Kruusamägi: The bot will edit daily. Could you please translate:
  1. "Does not include special administrative regions (Hong Kong and Macau) or Taiwan."
  2. "Data on member states of the European Union are individually listed, but are also summed here for convenience. They are not double-counted in world totals."
  3. "Countries which do not report data for a column are not included in that column's world total."
Thank you! Tol (arutelu | kaastöö) 17. oktoober 2021, kell 04:09 (EEST)[vasta]
────────────────────────────────────────────────────────────────────────────────────────────────────
@Kasutaja:Tol One edit per day is ok. Few test edits, and we'll grant the bot flag.
1) Hongkong, Macao ja Taiwan on eraldi.
2) Euroopa Liidu liikmesriigid on ühtlasi eraldi üles loetletud. Maailma koondnumbrite juures on Euroopa Liidu riikide näitajaid arvestatud siiski ainult üks kord.
3) Maailma koondnumbrites ei ole arvesse võetud näitajaid riikidest, kust ei ole tulemusi raporteeritud.
Ivo (arutelu) 18. oktoober 2021, kell 02:10 (EEST)[vasta]
@Kruusamägi: Thank you! I will start running the bot after I set up the module and data (within two days). Tol (arutelu | kaastöö) 18. oktoober 2021, kell 05:07 (EEST)[vasta]
The bot has started to update the table. Please, let me know if there are any problems. Tol (arutelu | kaastöö) 20. oktoober 2021, kell 02:16 (EEST)[vasta]
@Kruusamägi: The bot has edited for two weeks, could it have the bot flag? Tol (arutelu | kaastöö) 4. november 2021, kell 02:54 (EET)[vasta]
Aitäh, @Andres! Tol (arutelu | kaastöö) 4. november 2021, kell 20:32 (EET)[vasta]