Wikipedia:Bots/Requests for approval/APersonBot 8


 * 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 Symbol keep vote.svg Approved

APersonBot 8
Operator:

Time filed: 19:53, Saturday, May 28, 2016 (UTC)

Automatic, Supervised, or Manual: supervised

Programming language(s): Python

Source code available: https://github.com/APerson241/APersonBot/blob/master/battle-catsort/battle-catsort.py

Function overview: Provides a sensible defaultsort for articles with titles that look like "Battle of X"

Links to relevant discussions (where appropriate): WP:BOTREQ and Wikipedia_talk:WikiProject_Military_history/Archive_135

Edit period(s): One time run

Estimated number of pages affected: Many (on the order of 5,000)

Exclusion compliant (Yes/No): No

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

Function details: When the bot encounters an article about a military battle whose title has the form "Battle of X" that doesn't already have a defaultsort, it adds one with the sort key "X" in the proper spot (right before the categories).

Discussion

 * . — xaosflux  Talk 14:57, 29 May 2016 (UTC)
 * D Was this trial ever run? — xaosflux  Talk 16:38, 11 June 2016 (UTC)
 * I ran a few edits and realized I needed to make the logic a bit more complex. Then I started using mwparserfromhell. I sort of stopped working on it because I was busy with other projects, but I'll try diagramming the logic on paper and writing it in today. Enterprisey (talk!) (formerly APerson) 16:44, 11 June 2016 (UTC)
 * OK - restarting the trial timer. — xaosflux  Talk 20:49, 11 June 2016 (UTC)


 * . Enterprisey (talk!) (formerly APerson) 03:42, 12 June 2016 (UTC)


 * Task approved. — xaosflux  Talk 17:47, 17 June 2016 (UTC)
 * Please use a staggered execution to leave time for any unusual use case feedback:
 * 1000 edits, 2 day wait
 * 1000 edits, 2 day wit
 * Rest of your run
 * — xaosflux  Talk 17:47, 17 June 2016 (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 WT:BRFA.