The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard. The result of the discussion was  Approved.

Operator: Qwerfjkl (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 18:03, Sunday, November 19, 2023 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python

Source code available: Pywikibot

Function overview: Implement WP:PIQA

Links to relevant discussions (where appropriate): Wikipedia:Bot requests/Archive 85#Implement project-independent quality assessments, WP:PIQA

Edit period(s): one time run (with future runs if necessary)

Estimated number of pages affected: hard to estimate, very high number - most talk pages I would assume

Exclusion compliant (Yes/No): No

Already has a bot flag (Yes/No): Yes

Function details: From the bot request:

  1. If there is a banner shell already on the page, then add |class= parameter and remove from project banners, e.g. [1]
  2. If there is no banner shell, then add it and move class rating from project banners, e.g. [2]
  3. If there are no assessments on page, then add empty |class= parameter to encourage editors to add a rating, e.g. [3]
  4. If assessments of projects differ, then add the majority rating to the banner shell and leave any different assessments on those banners, e.g. [4]. These will be manually reviewed by human editors.
  5. If assessments of projects differ, but there is no majority rating, then add banner shell with empty |class= parameter. These will be tracked and reviewed manually.
  6. If the page has ((WikiProject biography)) with |living=yes or |blp=yes then add |blp=yes to ((WikiProject banner shell)).
  7. If any project banner has |listas= then move this to ((WikiProject banner shell)) and remove from project banners, e.g. [5]
  8. For any of the projects which have opted out, the class parameter should not be changed or removed.

The bot will also replace redirects to wikiprojects with the actual template.

The bot will obey MOS:TALKORDER insofar as it is reasonable to do so (GIGO), including moving a pre-existing ((WikiProject banner shell)) (this can be changed if desirable).

Discussion[edit]

The bot does not handle duplicate wikiprojects. It will treat them as distinct. — Qwerfjkltalk 18:08, 19 November 2023 (UTC)[reply]

Approved for trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. In the interest of getting more eyes on this, please do not mark these as minor edits, and be sure to include a link to this page in the edit summary. Primefac (talk) 12:50, 14 December 2023 (UTC)[reply]

┌───────────────────────────┘
Primefac, I believe the plan was for Cewbot to run on vital article talk pages and my bot would handle the rest. My code has already been tested in previous bot tasks (#19). I'm also unsure that Cewbot has exactly the same functionality has mine (but I'm on my tablet right now and the code is 2000 lines long, so I might have missed something). Specifically I don't think Cewbot obeys MOS:TALKORDER (though as I said, I'm not entirely sure about this).
That said, if you feel it is unnecessary to have both bots run I will defer to your judgement. — Qwerfjkltalk 21:44, 17 December 2023 (UTC)[reply]
I think we can run together, after all, these templates a lot. cewbot follows MOS:TALKORDER, just for reference. Kanashimi (talk) 23:15, 17 December 2023 (UTC)[reply]
Fair enough. I've re-enabled the extended trial. Primefac (talk) 06:42, 18 December 2023 (UTC)[reply]
Primefac, Trial complete. See the latest edits here.
There were a few minor bugs (such as here where it added leading whitespace). The only non-cosmetic one that I could see was on Talk:Judicial Commission of Pakistan, where it didn't add the class because it treated a newline as a valid class. The only other bug was it not adding a blank |class= where the talk page already had a WikiProject banner shell but didn't have |class=.
I have fixed all of the bugs I found (described above). I also remembered not to make the edits minor this time. — Qwerfjkltalk 14:39, 18 December 2023 (UTC)[reply]
I'm not a bot operator but I noticed a non-cosmetic bug on Talk:Apple A14. I think reading the bot logic it should have added an empty class parameter for human assessment right? It just removed the 1=. PARAKANYAA (talk) 18:35, 18 December 2023 (UTC)[reply]
PARAKANYAA, yes, I noticed that one. I've fixed the bug. — Qwerfjkltalk 18:41, 18 December 2023 (UTC)[reply]
Looks good to me. Some minor issues:
  • Please use |class=GA instead of |class=Ga
  • On non-articles, there is no benefit in leaving the empty |class=
  • This removed an ((image requested)) template
  • [7] Can line breaks in the listas and the next | be removed?
— Martin (MSGJ · talk) 21:07, 18 December 2023 (UTC)[reply]
MSGJ, can you clarify what you mean by the second one? All the talk pages are of articles. — Qwerfjkltalk 21:59, 18 December 2023 (UTC)[reply]
No? Redirects and disambiguation pages are not articles. Example — Martin (MSGJ · talk) 22:14, 18 December 2023 (UTC)[reply]
MSGJ, ah right, I see what you mean.
Regarding the ((image requested)) being removed, should it be kept in the WPBS or moved outside (and similarly for other non-WikiProject templates in the WPBS)? — Qwerfjkltalk 07:07, 19 December 2023 (UTC)[reply]
Any non-project banners (i.e. not produced with Module:WikiProject banner) should be moved outside the banner shell ideally — Martin (MSGJ · talk) 09:28, 19 December 2023 (UTC)[reply]
Is it possible for the bot to consolidate the banners into one line? At [8] whoever added the banners added them in a non-conventional way, so now we are left with stuff like
((WikiProject Rowing
|importance=Low
))
Not an issue if it can't, just a "could be nice" to fix while the bot is working. Gonnym (talk) 09:27, 19 December 2023 (UTC)[reply]
Gonnym, this is kind of a GIGO situation that probably isn't worth fixing (I don't think it would be trivial to do so). — Qwerfjkltalk 15:09, 19 December 2023 (UTC)[reply]
Yeah, I had a feeling. Anyways, good job on the rest! Gonnym (talk) 15:12, 19 December 2023 (UTC)[reply]
I agree that would be nice. However there are banners which use a lot of parameters (e.g. MilHist) that display on multiple lines (example below). I don't think it would be received well if these parameters were bunched up
((WPMILHIST|class=Start
<!-- B-Class 5-criteria checklist -->
| B1 <!-- Referencing and citations --> = n
| B2 <!-- Coverage and accuracy --> = n
| B3 <!-- Structure --> = n
| B4 <!-- Grammar and style --> = y
| B5 <!-- Supporting materials --> = y
|Historiography-task-force=yes))
— Martin (MSGJ · talk) 12:44, 19 December 2023 (UTC)[reply]
Kanashimi, sorry, didn't see that. My mistake. — Qwerfjkltalk 14:33, 18 December 2023 (UTC)[reply]
That's all right. I think we should be able to work together. Kanashimi (talk) 21:12, 18 December 2023 (UTC)[reply]

Break[edit]

Will your bot make edits like this? Although it is cosmetic, I think it would be beneficial because it discourages editors from using the class parameter in individual banners — Martin (MSGJ · talk) 12:41, 19 December 2023 (UTC)[reply]

@Qwerfjkl: the |living= or |blp= parameter can now be migrated to the banner shell, or just removed if it is already there (example) — Martin (MSGJ · talk) 18:27, 22 December 2023 (UTC)[reply]

┌──────────────────────────────┘
MSGJ, I've done that. It will not switch |living= over to |blp=, but it will prefer to use |blp= when adding it to the WPBS. — Qwerfjkltalk 17:47, 31 December 2023 (UTC)[reply]
That's great — Martin (MSGJ · talk) 17:49, 31 December 2023 (UTC)[reply]
E.g. search for Talk:Joshua Cooper (1732–1800) on https://public-paws.wmcloud.org/User:Qwerfjkl%20(bot)/PIQA.ipynb. — Qwerfjkltalk 17:55, 31 December 2023 (UTC)[reply]

((BAG assistance needed)) I have just approved Cewbot 12, as it seems to have passed its trials with more aplomb than this task. I am looking for a second BAG opinion as I do not see a great need to approve both bots to do the same task, other than maybe the fact that the scope is essentially "every talk page with a banner shell". Primefac (talk) 13:36, 31 December 2023 (UTC)[reply]

I believe it would be a good idea to have a second bot approved for this task, mainly because of the huge number of pages to be touched, sharing responsibility and avoiding reliance on one operator. I support the ramped deployment that Cewbot is using. — Martin (MSGJ · talk) 09:43, 4 January 2024 (UTC)[reply]

A error has come to light and I have reinstated point 8 of the function details. Sorry for any confusion but what I wrote earlier was not quite accurate. — Martin (MSGJ · talk) 16:52, 2 January 2024 (UTC)[reply]

 Approved. I would ask that you start slowly (maybe batches of <1000 per day) at the outset just to make sure any lingering issues that weren't seen in the trials can be dealt with. Primefac (talk) 14:23, 6 January 2024 (UTC)[reply]

The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard.