Wikipedia:Bots/Requests for approval/MalnadachBot 6
- 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: 10:48, Thursday, August 26, 2021 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): AutoWikiBrowser
Source code available: AWB, regexes given below
Function overview: Fix 3 Lint errors in substituted welcome template
Links to relevant discussions (where appropriate): Same function as Wikipedia:Bots/Requests for approval/MalnadachBot 5 but with different regexes
Edit period(s): One time run
Estimated number of pages affected: 65,000
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details: This task has same function as Task 5 but with different regexes due to different table style. It is to fix 3 Lint errors caused by substitution of {{W-graphical}} and its variants in User talk and User namespace. Each edit will fix three Lint errors; 1 deletable table tag (high priority error), 1 missing end tag div and 1 stripped table tag (low priority errors). Insource search for the pattern giving deletable table tag error gives 65,000 results. With 3 errors fixed per edit, this task will cleanup a total of 195,000 Lint errors.
I will be using 4 regexes in AWB's find and replace advanced settings -
(\{\| width\=\"100\%\" style\=\"background\:transparent\"\n)\{\| width\=\"100\%\" style\=\"background-color\:\<\!-- Bug --\>\#F5FFFA\"\n(\|style\=\"width\: 50\%\; border\:1px solid)
is replaced with$1$2
(\<\/p\>)(\n\|\}\n\{\| width\=\"100\%\" style\=\"background-color\:\<\!-- Bug --\>\#F5FFFA\"\n\|)
is replaced with$1</div>$2
(\* Practice \[\[Wikipedia\:Civility\|civility\]\]\n\* \[\[Wikipedia\:Wikipedia Signpost\|Discover what\'s going on in the Wikimedia community\]\]\n\|-\n\|\})\n\|\}(\n\|\}\n\|\})
is replaced with$1$2
(\* Follow \[\[Wikipedia\:Etiquette\|Wikipedia etiquette\]\]\n\* Practice \[\[Wikipedia\:Civility\|civility\]\]\n\|-\n\|\})\n\|\}(\n\|\}\n\|\})
is replaced with$1$2
All pages have 2 Lint error patterns that are handled by regex 1 and 2. For the third Lint error, a page will have one of the error patterns that are handled by regex 3 and 4. So regex 1 and 2 will be used for all edits, with regex 3 or 4 depending on the page.
Discussion
edit- Approved for trial. Please provide a link to the relevant contributions and/or diffs when the trial is complete. Please give at least 5 examples per replacement, no more than 25 total. I just want to make sure there are no surprise issues. Primefac (talk) 10:55, 26 August 2021 (UTC)[reply]
- Trial complete.
- 10 edits. Here regexes 1, 2 and 3 were used.
- 10 edits. Regexes 1, 2 and 4 were used.
- --ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 11:27, 26 August 2021 (UTC)[reply]
- Approved. Primefac (talk) 11:48, 26 August 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.