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: DannyS712 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

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 ([1])

Exclusion compliant (Yes/No): No

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

Function details:

Original (outdated) request

Removesubstitute ((PBB_Summary)). Only removed its html comment (and its inline html comment) - 3543 transclusions

Substitute ((PBB Further reading)) - 3539 transclusions (not deletion since its just a wrapper for citations that should be kept

Discussion[edit]

Outdated discussion

@Galobtter: 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:

Extended content
((PBB[ _]Summary\n\|\s+section_title\s+=\s+\|\s+summary_text\s+=\s+(.*)\n))

becomes

$1

and

((PBB[ _]Summary\n\|\s+section_title\s+=\s+(\S+)\n\|\s+summary_text\s+=\s+(.*)\n))

becomes

==$1==\n$2

(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)Reply[reply]

DannyS712, get er doneeee!!! Zackmann (Talk to me/What I been doing) 19:15, 22 March 2019 (UTC)Reply[reply]
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.xaosflux Talk 13:44, 7 April 2019 (UTC)Reply[reply]
@Xaosflux: Trial complete. 50 edits made [3]. I didn't see any issues. Thanks, --DannyS712 (talk) 17:43, 7 April 2019 (UTC)Reply[reply]
@DannyS712: 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)Reply[reply]
@Xaosflux: 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: <!-- The PBB_Summary template is automatically maintained by Protein Box Bot\. ?See Template:PBB_Controls to Stop updates\. -->, which works with 1 or 2 spaces. See the 2 edits made: [4] [5]. Thanks, --DannyS712 (talk) 19:30, 7 April 2019 (UTC)Reply[reply]
 Approved. task approved. — xaosflux Talk 21:33, 7 April 2019 (UTC)Reply[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.