Wikipedia:Bots/Requests for approval/Qwerfjkl (bot)
- 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.
Operator: Qwerfjkl (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 09:18, Saturday, September 18, 2021 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): JavaScript
Source code available: User:Qwerfjkl (bot)/code
Function overview: Fix CW Error #48 (self link)
Links to relevant discussions (where appropriate):
Edit period(s): One time run?
Estimated number of pages affected: ~11,000
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No): No
Function details: I'm following Jonesey95's advice at Wikipedia:Bots/Noticeboard#CW Error #48 and filing a BRFA to fix the ~11,000 articles with self-links. I've already run this on a large number of articles with no problem (see my contribs), but I recently changed the code to work on section links (and some other minor changes).
Discussion
[edit]Qwerfjkl, cool, seems like a useful bot. In the code, it seems like you do some sort of manipulation to make sure the first character of the title is lowercase, and then use that in the regular expressions. What's the purpose of that? Enterprisey (talk!) 07:22, 25 September 2021 (UTC)[reply]
- @Enterprisey To handle links like Asda and asda, while leaving AsdA and asdA. ― Qwerfjkltalk 07:27, 25 September 2021 (UTC)[reply]
- Ah, I see. Well then, Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Enterprisey (talk!) 07:57, 25 September 2021 (UTC)[reply]
- @Enterprisey
Done - see Special:Contribs/Qwerfjkl (bot). Only one problem here - I've changed the RegEx so it will avoid links like[[Test#Example|text]]
and[[#Example|text]]
, but fix[[(Title)#Example]]
with {{Section link}}. Curiously, when fixing the error, I managed to use a script while logged out. ― Qwerfjkltalk 11:57, 25 September 2021 (UTC)[reply]- Cool! Approved. Thanks for your work on this. If it's possible to remove that long checkwiki URL from the edit summary, so that it would just be "Removed link(s) to title (CW error #48) (via Bandersnatch)", that would be cool; if not, don't sweat it. And yeah, I've edited while logged out a few times while testing a bot program. Always a fun little surprise... Enterprisey (talk!) 19:30, 27 September 2021 (UTC)[reply]
- @Enterprisey
- Ah, I see. Well then, Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Enterprisey (talk!) 07:57, 25 September 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.