Wikipedia:Bots/Requests for approval/BattyBot 62
- 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.
New to bots on Wikipedia? Read these primers!
- Approval process – How this discussion works
- Overview/Policy – What bots are/What they can (or can't) do
- Dictionary – Explains bot-related jargon
Operator: GoingBatty (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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 {{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)[reply]
Discussion
[edit]Needs wider discussion. 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)[reply]
- @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)[reply]
- {{BAG assistance needed}} The discussion has been open at the Village pump for over two weeks. GoingBatty (talk) 17:54, 28 November 2021 (UTC)[reply]
- 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)[reply]
- 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. Approved for trial (50). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Anomie⚔ 12:49, 3 December 2021 (UTC)[reply]
- @Anomie: Trial complete. - 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)[reply]
- GoingBatty, please provide links to those diffs. Primefac (talk) 13:36, 5 December 2021 (UTC)[reply]
- @Primefac and Anomie: Facepalm . Oops! Here's the link. Sorry about that! GoingBatty (talk) 22:28, 5 December 2021 (UTC)[reply]
- GoingBatty, please provide links to those diffs. Primefac (talk) 13:36, 5 December 2021 (UTC)[reply]
- @Anomie: Trial complete. - 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)[reply]
- 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. Approved for trial (50). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Anomie⚔ 12:49, 3 December 2021 (UTC)[reply]
- 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)[reply]
- {{BAG assistance needed}} The discussion has been open at the Village pump for over two weeks. GoingBatty (talk) 17:54, 28 November 2021 (UTC)[reply]
Approved. 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)[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.