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 Wikipedia:Bots/Noticeboard. The result of the discussion was Approved.
Operator: ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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 -
\{\|\n\|-(\n\[\[Image\:Fruit bowl\.jpg\|thumb\|280px\|Although some prefer welcoming new users with \[\[cookie\]\]s, I find \[\[fruit\]\] to be a \[\[health\|healthier\]\] alternative\. \[\[File\:Face-smile\.svg\|25px\]\]\]\]\n)\|\}
is replaced with$1
(\{\{boxboxtop\|)\<small\>(Fun and interesting pages\}\}\n\*\[\[Wikipedia\:User page\|Userpage guidelines\]\])
is replaced with<div style="font-size:smaller;">$1$2
(\*\[\[Special\:Random\/user\|Meet a random user\!\]\])\<\/small\>(\n\{\{boxboxbottom\}\})
is replaced with$1$2</div>
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 (simply click \[\[Special\:MyPage\|here\]\] to start it\.)\<\/div\>(\n\nThere are many ways you can)
replaced with $1$2
.
Discussion
[edit]Approved for trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Primefac (talk) 11:13, 15 September 2021 (UTC)[reply]
- Trial complete. Result is here. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 13:48, 15 September 2021 (UTC)[reply]
- 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)[reply]
- 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 [1]. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 06:00, 16 September 2021 (UTC)[reply]
- Looks great. – Jonesey95 (talk) 13:22, 16 September 2021 (UTC)[reply]
- Approved. Primefac (talk) 16:19, 20 September 2021 (UTC)[reply]
- Looks great. – Jonesey95 (talk) 13:22, 16 September 2021 (UTC)[reply]
- 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 [1]. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 06:00, 16 September 2021 (UTC)[reply]
- 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)[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.