Wikipedia:Bots/Requests for approval/DannyS712 bot 23


 * 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 23
Operator:

Time filed: 19:13, Wednesday, March 20, 2019 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): AWB

Source code available: AWB

Function overview: Extend task 22 to other templates from the same TfD

Links to relevant discussions (where appropriate): WP:Bots/Requests for approval/DannyS712 bot 22 and the discussions linked there

Edit period(s): One time run

Estimated number of pages affected: Up to ~7000 (some may overlap) 2134

Exclusion compliant (Yes/No): No

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

Function details:


 * Substitute PBB Summary
 * Remove the html comment associated with it

Discussion

 * is doing this using AWB already. &#123;&#123;3x&#124;p&#125;&#125;ery (talk) 19:14, 20 March 2019 (UTC)
 * I can help, given the number - see User talk:DannyS712 for the discussion causing me to file this --DannyS712 (talk) 19:18, 20 March 2019 (UTC)
 * Makes sense. I didn't notice task 22 et al until after posting that comment. &#123;&#123;3x&#124;p&#125;&#125;ery (talk) 19:19, 20 March 2019 (UTC)
 * The content of PBB Summary is text that needs to be kept. Galobtter (pingó mió) 19:18, 20 March 2019 (UTC)
 * in that case, I can substitute both of the templates --DannyS712 (talk) 19:19, 20 March 2019 (UTC)
 * &, No objection to a bot taking this over! I'll gladly duck out once this is approved!  Zack mann  (Talk to me/What I been doing) 20:04, 20 March 2019 (UTC)
 * Pinging to this as he was manually doing one of those templates, but was ok with a bot to take over. --Gonnym (talk) 20:14, 20 March 2019 (UTC)
 * Thanks for the ping. Actually I was doing "summary" and "further reading" at the same time on most of my edits. Remember that all of the items in further reading need to stay just like the summary does. I'm guessing you already know this but I mention it just in case. MarnetteD&#124;Talk 20:19, 20 March 2019 (UTC)
 * Yes. Except, I just realized, while substituting further reading works great (Special:Diff/888699322), substituting the summary doesn't really (Special:Diff/888699171), so when I saw "substitute" the summary template, I mean replace it using a regex to achieve the intended display, not literally "substitute" the template, since that keeps the parser functions and everything. --DannyS712 (talk) 20:25, 20 March 2019 (UTC)
 * Thanks D! I'm not too familiar with all the ins and outs of bots so I appreciate your taking the time to explain things. MarnetteD&#124;Talk 20:28, 20 March 2019 (UTC)
 * , I've made the summary template cleanly subst. Galobtter (pingó mió) 20:34, 20 March 2019 (UTC)

Wow, I just developed a regex to do it without substituting, but I guess its all useless now. Anyway, just subst the templates and remove the inline comments. If anyone cares, the regex was:

becomes and becomes

(first regex for not having a section title, second for having one).

Anyway, I think this is good to go: substitute both templates, and remove the html comment. Thanks for the help, --DannyS712 (talk) 20:45, 20 March 2019 (UTC)
 * , get er doneeee!!!  Zack mann  (Talk to me/What I been doing) 19:15, 22 March 2019 (UTC)


 * One template done but the other still has over 2k uses. Is there any reason this has not gotten any response, even for a trial? --Gonnym (talk) 22:11, 31 March 2019 (UTC)
 * I had too many BRFAs at once, so this was removed from the main page. I'm hoping to add it again in the next few days, since I have 3 trials complete. --DannyS712 (talk) 22:13, 31 March 2019 (UTC)
 * I've re-transcluded it --DannyS712 (talk) 03:45, 4 April 2019 (UTC)
 * In the hopes of getting this task approved quickly (maybe speedy approval?) I ran a "trial" with my main account - every edit was reviewed manually before saving. See the 25 "trial" edits: (I chose 25 because that is what the trial amount was for task #22). The code was:
 * Find  and replace it with an empty string
 * Find  (a regex pattern) and replace it with
 * Thanks, --DannyS712 (talk) 23:29, 6 April 2019 (UTC)
 * — xaosflux  Talk 13:44, 7 April 2019 (UTC)
 * 50 edits made . I didn't see any issues. Thanks, --DannyS712 (talk) 17:43, 7 April 2019 (UTC)
 * in these edits, you left the HTML comment behind (maybe it has a one-off letter or something, but it doesn't belong for sure): 1 2. Please review and see if you can identify a way to improve this (You can have 20 more trial edits if needed). —  xaosflux  Talk 18:24, 7 April 2019 (UTC)
 * The HTML comment generally had 2 spaces between the sentences, but those only had one, so it was one character off. I have changed the first find-and-replace to be a regex:, which works with 1 or 2 spaces. See the 2 edits made:  . Thanks, --DannyS712 (talk) 19:30, 7 April 2019 (UTC)
 * task approved. — xaosflux  Talk 21:33, 7 April 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.
 * task approved. — xaosflux  Talk 21:33, 7 April 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.