Wikipedia:Bots/Requests for approval/WOSlinkerBot 22

WOSlinkerBot 22

[[User:WOSlinkerBot|WOSlinkerBot 22]]

{{BRFA help}}

{{Newbot|WOSlinkerBot|22}}

Operator: {{botop|WOSlinker}}

Time filed: 16:41, Wednesday, March 30, 2022 (UTC)

Function overview: Fix pages with the Old behaviour of link-wrapping font tags lint issue.

Automatic, Supervised, or Manual: Automatic

Programming language(s): Javascript

Source code available: At User:WOSlinkerBot/linttask22.js

Links to relevant discussions (where appropriate):

Edit period(s): one time run

Estimated number of pages affected: currently 90,000 of those lint errors, but multiple errors per page so guessing about 30,000

Namespace(s): wikipedia & talk pages

Exclusion compliant (Yes/No): No

Function details: Similar to previous tasks, such as task 21, fixing lint issues. This task will be fxing the Old behaviour of link-wrapping font tags lint issues. While fixing though pages, some additions will be made to the javascript code as additional combinations of the font tag and wikilinks are found.

=Discussion=

Shouldn't this actually be a supervised task? There are lots of different cases involved that would make it difficult as an automatic task. I tested User:WOSlinkerBot/linttask22.js against a variety of cases here. It had one false positive of replacing abc with abc. You can add more regexes to catch the ones it skipped. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 18:41, 30 March 2022 (UTC)

:I support this task, of course, but I think Malnadach is correct. I think instead of \#[a-f0-9]*, the bot op may need to specify only three or six characters in the font color. It should probably skip any other number of characters. I also recommend a supervised task with inspection, or at least starting with known signatures, as collected here. – Jonesey95 (talk) 19:27, 30 March 2022 (UTC)

::I've changed the \#[a-f0-9]* to 3 and 6 fixed length versions. -- WOSlinker (talk) 21:47, 30 March 2022 (UTC)

{{BotTrial|edits=50}} Primefac (talk) 13:20, 23 April 2022 (UTC)

:{{BotTrialComplete}} [https://en.wikipedia.org/w/index.php?target=WOSlinkerBot&offset=20220427200000&namespace=2&wpfilters%5B%5D=nsInvert&tagfilter=&start=&end=&title=Special%3AContributions&limit=50 50 edits here]. -- WOSlinker (talk) 20:00, 27 April 2022 (UTC)

::{{BotApproved}} Primefac (talk) 15:01, 7 May 2022 (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 Wikipedia:Bots/Noticeboard.