Wikipedia:Bots/Requests for approval/BattyBot 59


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Bots/Noticeboard. The result of the discussion was

BattyBot 59
Operator:

Time filed: 20:47, Thursday, July 1, 2021 (UTC)

Function overview: Remove line breaks in citation templates that cause templates to not display properly

Automatic, Supervised, or Manual: Automatic

Programming language(s): AutoWikiBrowser

Source code available: AWB

Links to relevant discussions (where appropriate): Wikipedia talk:AutoWikiBrowser/Typos

Edit period(s): Monthly

Estimated number of pages affected: 200

Namespace(s): Mainspace

Exclusion compliant (Yes/No):

Function details: Search the database dump for citation templates such as  and remove the line break by replacing them with. The bot will also perform AWB's general fixes when making an edit. GoingBatty (talk) 20:47, 1 July 2021 (UTC)

Discussion
Mainly out of curiosity, how much of a recurring issue is this? At the moment 200 pages would be trivial for a user to do manually, and if the number is only "a handful" then it should be easy to maintain. Of course, if it's 200 per month that changes the metrics a bit. Primefac (talk) 22:29, 1 July 2021 (UTC)
 * Could you please suggest a way to track how many per month? Thanks!  GoingBatty (talk) 23:11, 1 July 2021 (UTC)
 * No idea, other than clearing out the list and seeing how it progresses along in a month. Primefac (talk) 23:34, 1 July 2021 (UTC)

Out of curiosity, is this (and other bot tasks) set to automatically run once a month, or do you trigger them manually once a month? – SD0001  (talk) 08:09, 2 July 2021 (UTC)
 * All of my bot tasks are triggered manually. GoingBatty (talk) 19:39, 2 July 2021 (UTC)

Looks mostly harmless given the low volume of edits. – SD0001  (talk) 07:20, 3 July 2021 (UTC)
 * See these 25 edits. Thanks!  GoingBatty (talk) 01:53, 4 July 2021 (UTC)
 * In Special:Diff/1031851773, the gen fixes appear to have defined  3 times, rather than define once and reuse. Surely this shouldn't be happening? In Special:Diff/1031850630 near the bottom,   and   are on different lines, so there's a still a problem though not necessarily something this task should fix. Looks fine otherwise. –  SD0001  (talk) 05:28, 4 July 2021 (UTC)


 * I opened an AWB bug report for the  issue.
 * I agree that the bot should not have fixed the  and   issue, and I.
 * Thanks for your review! GoingBatty (talk) 18:09, 4 July 2021 (UTC)
 * I received a response from the AWB developers about the named references. Named references are not condensed if the first declaration is in a template call, because we cannot be sure the template will display all of its parameters (and hence the reference) and do not want to create an undefined reference error.  I have updated the AWB documentation at WP:DUPCITE accordingly.  GoingBatty (talk) 16:48, 6 July 2021 (UTC)

Fair enough. – SD0001  (talk) 17:30, 6 July 2021 (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 Bots/Noticeboard.