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 Wikipedia:Bots/Noticeboard. The result of the discussion was Approved.
New to bots on Wikipedia? Read these primers!
- Approval process – How this discussion works
- Overview/Policy – What bots are/What they can (or can't) do
- Dictionary – Explains bot-related jargon
Operator: GoingBatty (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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#Cite web
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 (\{\{\s*[Cc]ite)\s*\n\s*(book|journal|news|web|GovTrack)
and remove the line break by replacing them with $1 $2
like this. The bot will also perform AWB's general fixes when making an edit. GoingBatty (talk) 20:47, 1 July 2021 (UTC)[reply]
Discussion
[edit]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) (please do not ping on reply)[reply]
- Could you please suggest a way to track how many per month? Thanks! GoingBatty (talk) 23:11, 1 July 2021 (UTC)[reply]
- 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)[reply]
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)[reply]
- @SD0001: All of my bot tasks are triggered manually. GoingBatty (talk) 19:39, 2 July 2021 (UTC)[reply]
Approved for trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Looks mostly harmless given the low volume of edits. – SD0001 (talk) 07:20, 3 July 2021 (UTC)[reply]
- @SD0001: Trial complete. See these 25 edits. Thanks! GoingBatty (talk) 01:53, 4 July 2021 (UTC)[reply]
- In Special:Diff/1031851773, the gen fixes appear to have defined
<ref name="ReferenceA">
3 times, rather than define once and reuse. Surely this shouldn't be happening?
In Special:Diff/1031850630 near the bottom,url-
andstatus=
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)[reply]
- In Special:Diff/1031851773, the gen fixes appear to have defined
- @SD0001: I opened an AWB bug report for the
<ref name="ReferenceA">
issue. - I agree that the bot should not have fixed the
url-
andstatus=
issue, and I fixed it manually. - Thanks for your review! GoingBatty (talk) 18:09, 4 July 2021 (UTC)[reply]
- @SD0001: 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)[reply]
- @SD0001: I opened an AWB bug report for the
Approved. Fair enough. – SD0001 (talk) 17:30, 6 July 2021 (UTC)[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 Wikipedia:Bots/Noticeboard.