Wikipedia:Bots/Requests for approval/DannyS712 bot 14

DannyS712 bot 14

[[User:DannyS712 bot|DannyS712 bot 14]]

{{Newbot|DannyS712 bot|14}}

Operator: {{botop|DannyS712}}

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 |name parameters in their calls to {{tl|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 {{subst:FULLPAGENAME}} 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 [https://en.wikipedia.org/w/index.php?limit=1000&title=Special%3AContributions&contribs=user&target=DannyS712&namespace=10&tagfilter=&start=2019-03-12&end=2019-03-12 here] that contain "Stub name.js" in their summary).

=Discussion=

  • {{BotTrial|edits=50}} {{re|DannyS712}} 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. :) --TheSandDoctor Talk 20:21, 13 March 2019 (UTC)
  • :{{ping|TheSandDoctor}} 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)
  • :{{ping|TheSandDoctor}} {{BotTrialComplete}} 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 [https://en.wikipedia.org/w/index.php?limit=50&title=Special%3AContributions&contribs=user&target=DannyS712+bot&namespace=10&tagfilter=&start=2019-03-16&end=2019-03-25 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)

:{{BotApproved}} Task seems fine after the fixes. {{ping|DannyS712}} 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)

::{{BotComment}} 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.