Wikipedia:Bots/Requests for approval/DannyS712 bot 11
[[User:DannyS712 bot|DannyS712 bot 11]]
{{Newbot|DannyS712 bot|11}}
Operator: {{botop|DannyS712}}
Time filed: 06:38, Tuesday, March 5, 2019 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): Javascript
Source code available: User:DannyS712 test/PC bot.js
Function overview: Extend Task 3 to userspace drafts namesapce:2 in Polluted categories
Links to relevant discussions (where appropriate):
Edit period(s): As needed
Estimated number of pages affected: Not many (~10 per run?), likely more (~1000?) the first time
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No): Yes
Function details: I'd like to extend Wikipedia:Bots/Requests for approval/DannyS712 bot 3, which allows me to remove categories from userspace and draftspace pages tagged with {{tl|AFC submission}}, to also include userspace drafts that pollute articles' categories. I would manually run it on each category, but within each category it would automatically edit all pages in userspace.
=Discussion=
- {{tl|BAGAssistanceNeeded}} --DannyS712 (talk) 16:28, 13 March 2019 (UTC)
- {{BotTrial|edits=50}} {{ping|DannyS712}} Sorry for the delay/leaving you waiting here. --TheSandDoctor Talk 20:03, 13 March 2019 (UTC)
- {{ping|TheSandDoctor}} {{BotTrialComplete}}. See [https://en.wikipedia.org/w/index.php?limit=500&title=Special%3AContributions&contribs=user&target=DannyS712+bot&namespace=2&tagfilter=&start=2019-03-14&end=2019-03-14]. 50 edits made (search for Task 11), and 1 error made at the start because I hadn't anonymized the code properly ([https://en.wikipedia.org/w/index.php?title=User:Rmmiller364/Bust_of_Costanza_Bonarelli&diff=prev&oldid=887679988&diffmode=source]). However, I did this trial by running it User:DannyS712 test/PC.js on each category individually. My goal is to run User:DannyS712 test/PC bot.js from the main page, which would then automatically on every category, except AfC ones which I screen for. Would that be okay? (I altered the description to fit what I had intended; if you look at the bot code now, you'll see it log in your console a list of all categories to be run on, and separately, the one-cat code in .../PC is run with an input of a category name, making it easy to link the two). Hope this makes sense. Thanks, --DannyS712 (talk) 04:31, 14 March 2019 (UTC)
- :{{ping|TheSandDoctor}} don't know if you saw my post above --DannyS712 (talk) 06:23, 19 March 2019 (UTC)
- {{ping|DannyS712}} how are you identifying that some ns:2 page is a "userspace draft" vs some other sort of sandbox? — xaosflux Talk 20:29, 20 March 2019 (UTC)
- :{{ping|Xaosflux}} I'm not differentiating between the two - userspace drafts, or any other userspace pages, should not be categorized with articles as far as I am aware --DannyS712 (talk) 20:33, 20 March 2019 (UTC)
- ::OK, I updated the description above. — xaosflux Talk 21:48, 20 March 2019 (UTC)
- {{ping|DannyS712}} in [https://en.wikipedia.org/w/index.php?title=User:Ehdeejay/sandbox&diff=prev&oldid=887681223 this edit] you removed :Category:History timeline templates - please point to the version of Wikipedia:Database_reports/Polluted_categories where this was present (since the task is only about removing categories that are on that list per the description above). — xaosflux Talk 21:48, 20 March 2019 (UTC)
- :{{ping|Xaosflux}} See Special:Permalink/886872073 (search for "History_timeline_templates") --DannyS712 (talk) 21:55, 20 March 2019 (UTC)
:{{BotApproved}} OK, looks good. Be sure that you only run this in namespace 2 (User:) and that you only remove those 'polluted' article-based cats. — xaosflux Talk 21:57, 20 March 2019 (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.