Wikipedia:Bots/Requests for approval/DannyS712 bot 14


 * 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

DannyS712 bot 14
Operator:

Time filed: 10:59, Tuesday, March 12, 2019 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): JavaScript

Source code available:

Function overview: Fix stub templates with impropere  parameters in their calls to Asbox.

Links to relevant discussions (where appropriate):

Edit period(s): As needed

Estimated number of pages affected: ~30 per run

Exclusion compliant (Yes/No): No

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

Function details: Process the pages in Category:Stub message templates needing attention - only those with erroneous name parameters would be changed, but they all would be "edited" be replacing the name parameter with  to fix the template. I would manually trigger the task as needed, but it would automatically edit the templates. A current version of the code to edit the page the user is looking at is available at User:DannyS712 test/stubname.js, and I have used it repeatedly (see, eg, the occasion that prompted me to file this BRFA: the 51 edits listed here that contain "Stub name.js" in their summary).

Discussion

 * I realize I have approved 2 of your tasks for trial at this time. There is no rush by any means, take all the time you need. Please perm link to the contribs area with these diffs when done. Questions? Ask. :) -- The SandDoctor Talk 20:21, 13 March 2019 (UTC)
 * Thanks. This task will be run as-needed, so it may be a while. Also, since I was going to have it run automatically once triggered, when should the cutoff be for doing another run or not? (Eg, if I have 46 so far, should I do another run and potentially edit 30?) Thanks, --DannyS712 (talk) 21:43, 13 March 2019 (UTC)
 * Given the lack of response to my previous question, I decided to play it safe; I didn't know my guess would be spot-on, but 46 edits made. The code had a mistake at the start (the subst wasn't nowiki'ed, so it was executed when I saved the code and thus used the code's page name instead of the template) but I fixed that and since then it has worked like a charm. Code located at User:DannyS712 test/Stub bot.js. Thanks, --DannyS712 (talk) 18:10, 25 March 2019 (UTC)


 * Task seems fine after the fixes.  be sure to create User:DannyS712/Stub bot so your summaries are not redlinks before running this. —  xaosflux  Talk 13:34, 28 March 2019 (UTC)
 * Per a discussion at this BRFA by the same user, null edits that occur during the course of this bot task being performed are allowed. Primefac (talk) 01:00, 16 June 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.