Wikipedia:Bots/Requests for approval/BattyBot 62

BattyBot 62

[[User:BattyBot|BattyBot 62]]

{{BRFA help}}

{{Newbot|BattyBot|62}}

Operator: {{botop|GoingBatty}}

Time filed: 00:38, Saturday, November 13, 2021 (UTC)

Function overview: Remove some empty sections

Automatic, Supervised, or Manual: Automatic

Programming language(s): AutoWikiBrowser

Source code available: AWB

Links to relevant discussions (where appropriate): Wikipedia:Bot requests#"Empty sections" that are not empty, Wikipedia:Bot requests#"Notes sections" that are empty

Edit period(s): Monthly (run against database dump to give editors time to revert vandalism)

Estimated number of pages affected: Identified over 11,000 articles based on database dump from November 1, 2021

Namespace(s): Mainspace/Articles

Exclusion compliant (Yes/No):

Function details: Remove empty Bibliography, Further reading, Gallery, Notes, See also, and External links sections, which may be tagged with {{tl|empty section}}. Also perform AWB general fixes.

Suggested code to remove empty sections followed by another level 2 section:

:== *(?:Bibliography|Further reading|Gallery|Notes|See also|External links) *==\s*(?:\{\{empty section\|date\=[A-Za-z]+ \d{4}\}\}\s*)?(== ?[A-Z])$1

Suggested code to remove empty sections followed by DEFAULTSORT or a category:

:== *(?:Bibliography|Further reading|Gallery|Notes|See also|External links) *==\s*(?:\{\{empty section\|date\=[A-Za-z]+ \d{4}\}\}\s*)?(\{\{DEFAULTSORT|\[\[Category)$1

Thank you for your consideration. GoingBatty (talk) 00:38, 13 November 2021 (UTC)

=Discussion=

{{BOTREQ|advertise}} This seems like something that needs an actual consensus behind it, not just one person asking at WP:BOTREQ. You should take the proposal to WP:VPR to see if there really is consensus that this should be done by a bot. Anomie 12:58, 13 November 2021 (UTC)

:{{ping|Anomie}} Posted at Wikipedia:Village pump (proposals)#Removing some empty sections via bot per your request. Thanks! GoingBatty (talk) 16:16, 13 November 2021 (UTC)

::{{tl|BAG assistance needed}} The discussion has been open at the Village pump for over two weeks. GoingBatty (talk) 17:54, 28 November 2021 (UTC)

:::Village pump discussion archived to Wikipedia:Village pump (proposals)/Archive 185#Removing some empty sections via bot. GoingBatty (talk) 03:09, 3 December 2021 (UTC)

:::: Well, we got a little feedback at least. The delay to try to give vandal fighters a chance to revert vandalism seems like a good idea. {{BotTrial|50}} Anomie 12:49, 3 December 2021 (UTC)

:::::{{ping|Anomie}} {{BotTrialComplete}} - 25 edits with the first rule, and 25 edits with the second rule. Created the lists based on the November 20 database dump. GoingBatty (talk) 04:22, 5 December 2021 (UTC)

::::::{{u|GoingBatty}}, please provide links to those diffs. Primefac (talk) 13:36, 5 December 2021 (UTC)

:::::::{{ping|Primefac|Anomie}} {{facepalm}}. Oops! [https://en.wikipedia.org/w/index.php?title=Special:Contributions&offset=20211205041000&target=BattyBot&namespace=all&tagfilter=&start=&end= Here's the link]. Sorry about that! GoingBatty (talk) 22:28, 5 December 2021 (UTC)

{{BotApproved}} Seems to have worked as intended. Don't forget about the requested time delay, it's not clear that part was tested. Anomie 12:37, 8 December 2021 (UTC)

: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.

:{{ping|Anomie}} Thanks for approving, and sorry I wasn't clear about the requested time delay. I created the list of articles that I edited on December 5 from the November 20 database dump, which is a 15 day delay. I will always use a database dump for this task, which will ensure a delay of several days. Thanks! GoingBatty (talk) 02:36, 9 December 2021 (UTC)