Wikipedia:Bots/Requests for approval/MalnadachBot 4
- 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:18, Wednesday, August 11, 2021 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): AutoWikiBrowser
Source code available: Regexes given below
Function overview: Remove navbox class from Deletion review archives to make them readable in mobile
Links to relevant discussions (where appropriate): There have been complaints about mobile inaccessibility of DRV archives - Wikipedia talk:Deletion review/Archives/2020/June#Mobile view, Wikipedia talk:Deletion review/Archives/2021/January#DRV archives on mobile
Edit period(s): One time run
Estimated number of pages affected: 3,650
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details:The template {{DRV top}} is used to close Deletion review discussions. Till it was modified by User:Izno in April, the template used navbox class in table to collapse a closed discussion. Navboxes are invisible in wikipedia mobile website, making closed discussions unreadable in mobile as can be seen in the picture. This is a major accessibility problem for mobile users. The archives since the template modification in April are readable in mobile. However about 3,650 archives before that dating back to 2006 continue to be unreadable. This bot task is to modify these archives and solve the problem.
I will be replacing navbox collapsible collapsed
and navbox mw-collapsible mw-collapsed
table classes with mw-collapsible mw-collapsed
. In addition I will be adding width: 100%;
to table style. This will largely preserve the existing look in desktop site.
Two regex find and replace will be used -
(\{\| class\=\")navbox collapsible collapsed(\" style\=\")(text-align\: left\;)
is replaced with$1mw-collapsible mw-collapsed$2width: 100%; $3
(\{\| class\=\")navbox (mw-collapsible mw-collapsed\" style\=\")(text-align\: left\;)
is replaced with$1$2width: 100%; $3
Discussion
[edit]- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. ProcrastinatingReader (talk) 13:12, 12 August 2021 (UTC)[reply]
- Trial complete. Results are here. I have done 25 edits per regex. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 07:40, 13 August 2021 (UTC)[reply]
- Approved. ProcrastinatingReader (talk) 14:12, 18 August 2021 (UTC)[reply]
- Trial complete. Results are here. I have done 25 edits per regex. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 07:40, 13 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.