Wikipedia:Bots/Requests for approval/MalnadachBot 7


 * 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

MalnadachBot 7
Operator:

Time filed: 07:20, Wednesday, September 15, 2021 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): AutoWikiBrowser

Source code available: AWB, regexes given below

Function overview: Fix fostered content and misnested tag Lint errors in welcome template

Links to relevant discussions (where appropriate):

Edit period(s): One time run

Estimated number of pages affected: 473

Exclusion compliant (Yes/No): Yes

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

Function details: This task is to fix a substed welcome template in User talk and User namespaces. This template has 3 Lint errors - 1 fostered content, 1 misnested tag (medium priority Lint errors) and 1 missing end tag (low priority error). The bot will fix all 3 in the same edit.

Three regexes will be used in AWB's find and replace advanced settings -
 * 1)   is replaced with
 * 2)   is replaced with
 * 3)   is replaced with

A sample edit in my sandbox: Special:Diff/1044438509.

Update: the template has a stripped tag error as well. This is will be fixed by using the regex  replaced with.

Discussion
Primefac (talk) 11:13, 15 September 2021 (UTC)
 * Result is here. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 13:48, 15 September 2021 (UTC)
 * Nice work. It appears that there is also a stripped tag in this template that should be removed while you are at it. – Jonesey95 (talk) 16:05, 15 September 2021 (UTC)
 * Good catch. I have updated the function with another regex to remove this div stripped tag. I have made 10 more edits using the 4 regexes together . ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 06:00, 16 September 2021 (UTC)
 * Looks great. – Jonesey95 (talk) 13:22, 16 September 2021 (UTC)
 * Primefac (talk) 16:19, 20 September 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.