Wikipedia:Bots/Requests for approval/MalnadachBot 3
- 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:18, Sunday, July 4, 2021 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): AutoWikiBrowser
Source code available: AWB, regexes are given below
Function overview: Fix HTML5 incompatible misnested tag Lint errors caused by substitution of Template:Huggle/warn-delete-1.
Links to relevant discussions (where appropriate):
Edit period(s): One time run
Estimated number of pages affected: at least 26,000 possibly till 35,000
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details: {{Huggle/warn-delete-1}} is a highly substed template used in the anti-vandalism tool Huggle. Due to an unclosed span tag, the older versions of the template had two HTML5 incompatible misnested tag errors, which is a high priority Lint error. The template spread the errors to user talk pages every time it was substed for four and half years between this and this edit. This bot task is for fixing these errors.
I will be using AWB's find and replace advanced settings. Find regexes are (with \<span class\=\"plainlinks\"\>\[http[^\]]* this edit\])\<span\>(, without explaining why)
and (with \<span class\=\"plainlinks\"\>\[http[^\]]* this edit\])\<span\>( without explaining why)
. Replace regex is $1</span>$2
. A sample edit in my sandbox: Special:Diff/1031876006.
This is a cosmetic edit, but qualifies for exemption per WP:COSMETICBOT as egregiously invalid HTML such as unclosed tags, even if it does not affect browsers' display or is fixed before output by RemexHtml
. Regex search for the error pattern breaks down around 26,000 pages, so there may be many more pages than that. Each edit fixes two high priority Lint errors, conservative estimate totaling more than 52,000 errors with a minimum of two per page. Firefly Linter count shows currently there are 89,400 HTML5 incompatible misnesting errors in User talk namespace. This task will potentially fix upto 3/4th of these.
Discussion
[edit]Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Primefac (talk) 21:44, 6 July 2021 (UTC)[reply]
- Trial complete. Results are here. I have done 25 edits for each of the two regexes. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 05:01, 7 July 2021 (UTC)[reply]
- Approved. Primefac (talk) 18:54, 20 July 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.