Wikipedia:Bots/Requests for approval/RonBot 7
- 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: Ronhjones (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 19:50, Thursday, July 19, 2018 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python
Source code available: User:RonBot/7/Source1
Function overview: Adds Category:Association footballers not categorized by position to footballers articles, where their position has not been categorised.
Links to relevant discussions (where appropriate): Wikipedia:Bot_requests/Archive_76#Association_footballers_not_categorized_by_position
Edit period(s): Monthy
Estimated number of pages affected: Initial run 47,000, subsequent runs will be very small.
Namespace(s): Mainspace/Articles
Exclusion compliant (Yes/No): Yes
Function details:
- Constructs a list(1) of players already categorised with a position.
- To that list(1), adds a list of pages that do not need any attention (Category:Association football player non-biographical articles),
- Checks the contents of the existing Category:Association footballers not categorized by position for correctness. If they should be there then add to the list(1) (so we don't process again), if they have be categorised then remove the category.
- Get a list(2) of all football players. If they are in list(1) then ignore. Otherwise construct a list(3) for action later.
- When all checked use list(3) to add the category.
The adding and removing subroutines tested on user space pages - Special:Contributions/RonBot at 18:15, 16 July 2018. A dummy run, saving the list of players to a file, and then pasted gave User:Ronhjones/Sandbox5 as the potential list of pages to be changed on the first run.
NB: The list in Item 2 is currently at Category:Association football player support pages, we are moving the category to a more meaningful name. Cat rename done
Discussion
[edit]- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. please report back here after trial is done with diff range. — xaosflux Talk 16:09, 20 July 2018 (UTC)[reply]
- Trial complete. Five random pages were artificially "fixed" with Category:Association footballers not categorized by position :- (Brigitte Klinz, Nancy Gutiérrez, Laura Bassett, Vince Bartram, Denis Adamov , bot removed the category correctly at 16:54, 20 July 2018. Then correctly added the category to 45 pages, see Special:Contributions/RonBot at 19:15, 20 July 2018 to 19:16, 20 July 2018. Page User:Ronhjones/Sandbox5 contains the full list of pages (44503 pages) needing the category (including the 45 done in the trial)
- Some example diffs:-
- Removals...
- Additions...
- Ronhjones (Talk) 19:30, 20 July 2018 (UTC)[reply]
- We added a very minor tweak to stop it following redirects when it goes to add the category (won't add the category if it is a redirect). Ideally redirects should not be categorised, but it can be a left over from a change from an article. Ronhjones (Talk) 23:51, 23 July 2018 (UTC)[reply]
- {{BAGAssistanceNeeded}} Trial was over a week ago, no negative feedback received, can we more forward with this one? Ronhjones (Talk) 18:46, 27 July 2018 (UTC)[reply]
- Approved. with the following ramp-up schedule (you may always go slower and delay "wave 1":
- Wave 1: 1000 edits, 1 day pause
- Wave 2: 2000 edits, 1 day pause
- Wave 3: 3000 edits, 1 day pause
- Open editing.
- — xaosflux Talk 01:49, 1 August 2018 (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.