Wikipedia:Bots/Requests for approval/WikiCleanerBot 11
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Approved.
Operator: NicoV (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 21:17, Tuesday, March 10, 2020 (UTC)
Function overview: Do edit for fixing CW Error #547 (Empty list item).
Automatic, Supervised, or Manual: Automatic
Programming language(s): Java (WPCleaner)
Source code available: On GitHub (especially algorithm 547)
Links to relevant discussions (where appropriate):
Edit period(s): Twice a month
Estimated number of pages affected: Unknown for the moment: I will generate a dump analysis for error #547 to see how many pages could be concerned. As this fix will probably be considered as cosmetic, it will only be performed with other tasks (non-cosmetic edits), so only a small portions of the pages listed will be modified. I've generated a list at Wikipedia:CHECKWIKI/WPC 547 dump, around 27k pages are reported by the detection. A dry run on the first 100 pages gives 93 pages that could be modified but with no other non-cosmetic errors except 1 December 2013 Euromaidan riots for "missing end bold/italic", so only one page would be modified among the 100 pages. A dry run on about 20k pages gives 580 pages that would be really modified (with another non-cosmetic edit). So should be around 1k pages.
Namespace(s): Main
Exclusion compliant (Yes/No): Yes
Function details: The bot will simply remove empty list items (like *
, :
...). If the line is followed by an empty line or another list item, or preceded by an empty line, one carriage return will be removed too. Currently, modifications will be excluded in <nowiki>
, <score>
, <source>
, <syntaxhighlight>
and in images.
As it will be cosmetics edits, it will be performed only with other non-cosmetic edits. My bot has already run the same task on frwiki (around 8000 pages), but there was no constraints on cosmetic edits there, so each page was fixed.
As empty list items may be used to make a separation in wikitext between 2 list items, without impact on final rendering, my bot won't remove empty list items which are between other list items.
Discussion
[edit]Please provide a general idea of how many pages are affected. Primefac (talk) 19:49, 15 March 2020 (UTC)[reply]
- {{OperatorAssistanceNeeded}} @NicoV: --TheSandDoctor Talk 07:15, 26 March 2020 (UTC)[reply]
- Thanks TheSandDoctor. I was having trouble generating the list due to its size, and just found out a bug in MediaWiki which doesn't display some edits in the watch list when they are too big (see phab:T248564). Now that I know that the list is generated even if it doesn't show up in my watch list, I will analyze it and complete the description above (number of pages reported, number of pages that would be fixed...). I will remove the {{OperatorAssistanceNeeded}} when it's done. --NicoV (Talk on frwiki) 09:49, 26 March 2020 (UTC)[reply]
- @Primefac and TheSandDoctor: I've given an estimation of the affected pages. --NicoV (Talk on frwiki) 19:19, 26 March 2020 (UTC)[reply]
- Thanks TheSandDoctor. I was having trouble generating the list due to its size, and just found out a bug in MediaWiki which doesn't display some edits in the watch list when they are too big (see phab:T248564). Now that I know that the list is generated even if it doesn't show up in my watch list, I will analyze it and complete the description above (number of pages reported, number of pages that would be fixed...). I will remove the {{OperatorAssistanceNeeded}} when it's done. --NicoV (Talk on frwiki) 09:49, 26 March 2020 (UTC)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Please run these as the only edit to the page so that it is clear what is being changed, and be sure to link to this BRFA. Primefac (talk) 12:09, 3 April 2020 (UTC)[reply]
- Trial complete. Hello Primefac. I've done the 50 edits, my bot behaved as I expected. --NicoV (Talk on frwiki) 08:11, 4 April 2020 (UTC)[reply]
- Approved. Primefac (talk) 21:31, 19 April 2020 (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 WT:BRFA.