Wikipedia:Bots/Requests for approval/Yobot 37


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was

Yobot 37
Operator:

Time filed: 00:24, Thursday, February 2, 2017 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): AWB / WPCleaner

Source code available:

Function overview: Remove small tags from image description.

Links to relevant discussions (where appropriate): WP:NOSTRIKE. Image description text is already smaller. Adding a small tag causes the text to be smaller than 85%. This goes against accessibility guidelines.

Edit period(s): Daily

Estimated number of pages affected: xx pages per day.

Exclusion compliant (Yes/No): Yes

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

Function details: Detect and remove small tag and/or template from image descriptions. -- Magioladitis (talk) 00:24, 2 February 2017 (UTC)

Detect and remove small tags ( Text ) and templates ( Text ) that wrap around image (  or  [[File: ) description field. Example, Example:


 *  [[Image:Example.jpg|thumb| Example ]]  →  [[Image:Example.jpg|thumb|Example]] 
 *  [[Image:Example.jpg|thumb|Example]]  →  [[Image:Example.jpg|thumb|Example]] </tt>

Any other fields are preserved untouched:


 * <tt> [[Image:Example.jpg|thumb|left|border| Example ]] </tt> → <tt> [[Image:Example.jpg|thumb|left|border|Example]] </tt>
 * <tt> [[Image:Example.jpg|thumb| Example |alt=Hi]] </tt> → <tt> [[Image:Example.jpg|thumb|Example|alt=Hi]] </tt>

This can remove double tag:


 * <tt> [[Image:Example.jpg|thumb| Example  ]] </tt> → <tt> [[Image:Example.jpg|thumb|Example]] </tt>

This does not alter mixed formatting:


 * <tt> [[Image:Example.jpg|thumb|left| Small Big]] </tt> → <tt> [[Image:Example.jpg|thumb|left| Small Big]] </tt>

This doesn't alter captions that aren't rendered (no <tt>thumb</tt> or <tt>frame</tt> options):


 * <tt> [[Image:Example.jpg| Example ]] </tt> → <tt> [[Image:Example.jpg| Example ]] </tt>
 * <tt> [[Image:Example.jpg|frameless| Example ]] </tt> → <tt> [[Image:Example.jpg|frameless| Example ]] </tt>

This does not modify images in <tt> </tt>:.

Discussion

 * Support. This is a serious accessibility issue. ~ Rob 13 <sup style="margin-left:-1.0ex;">Talk 00:31, 2 February 2017 (UTC)
 * Will it also look for small? How are we finding pages that need these fixes? Is the task exclusion compliant? &mdash; MusikAnimal  talk  01:55, 3 February 2017 (UTC)
 * Please add an example to function details (including, if you are also fixing small or something like <tt> </tt> or <tt> </tt>). I don't see any issues otherwise. —  HELL KNOWZ  ▎TALK 22:57, 3 February 2017 (UTC)

, the current script does not look for font/div tags nor for small templates. It searchs only for small tag. Should I add it? This will require CHECKWIKI / AWB to be both updated. So I need further consensus to add these two suggestions? -- Magioladitis (talk) 09:34, 11 February 2017 (UTC)
 * You don't need to add them if you don't want to, they aren't any sort of requirement; though I imagine users have thought of various weird ways to modify the size. Still wanting full function details, including an example. — HELL KNOWZ  ▎TALK 12:35, 11 February 2017 (UTC)
 * added example. -- Magioladitis (talk) 13:16, 11 February 2017 (UTC)

This is error 66 of CHECKWIKI and was approved before in Bots/Requests for approval/Yobot 16 and in Bots/Requests for approval/MenoBot 4. -- Magioladitis (talk) 13:17, 11 February 2017 (UTC)

I added something for small templates. These are not still detected by CHECKWIKI. We need to add this. Thanks for the heads up. -- Magioladitis (talk) 13:20, 11 February 2017 (UTC)

I expanded the function details (to what I would expect them to contain) -- please confirm that the bot does/doesn't do the things listed and what it does instead or in addition, if anything. — HELL KNOWZ  ▎TALK 14:12, 11 February 2017 (UTC)

Wow. Thanks. The bot will do all fo them and won't affect the caption if it contains small tag/template in only a portion of it. The bot works with both File/Image. -- Magioladitis (talk) 00:21, 12 February 2017 (UTC)
 * This sounds good. I still am interested in how the bot will identify pages that need these fixes. Will it do a normal AWB thing and pick a category, going page to page until it finds these errors? Why are we limiting it to two pages a day when this could be done continuously, as needed, along with any other approved Yobot fixes? &mdash; MusikAnimal  talk  22:32, 12 February 2017 (UTC)

I take the pages via CHECKWIKI daily lists, WPCleaner bi-weekly lists and CHECKWIKI monthly lists. This is the average amount of pages we get. after 's very useful comments probably there are more pages. I can assk or someone else to help me generate a list of pages to fix. -- Magioladitis (talk) 22:53, 12 February 2017 (UTC)

Me and Bgwhite have been very efficient till now fixing those that the monthly report CHECKWIKI/066 dump was always no pages since July 2016 when we added this error in our monthly report. I left a comment here so the detection is expanded: Wikipedia_talk:WikiProject_Check_Wikipedia. -- Magioladitis (talk) 22:56, 12 February 2017 (UTC)
 * What is the status of adding support for small? I'm OK with just looking for <small ></small> for now, but if wanted to add small it'd be nice to bundle that into the trial &mdash; MusikAnimal  talk  18:03, 20 February 2017 (UTC)
 * I added the fix but no pages are detected yet. I had not the chance to run a database scan for this. In fact, due to my internet limitations by databases scan is totally depended on CHECKWIKI. -- Magioladitis (talk) 18:18, 20 February 2017 (UTC)
 * Could you link me to these CHECKWIKI lists? The one you mentioned above, CHECKWIKI/066 dump, is empty &mdash; MusikAnimal  talk  22:54, 20 February 2017 (UTC)
 * Yes, this one plus this one for the daily fixes. -- Magioladitis (talk) 22:56, 20 February 2017 (UTC)

I wonder if you could help in generating lists for this one. -- Magioladitis (talk) 02:09, 23 February 2017 (UTC)

— HELL KNOWZ  ▎TALK 14:45, 28 February 2017 (UTC)

Can you help with the list generation? -- Magioladitis (talk) 12:16, 5 March 2017 (UTC)
 * I'm not too familiar with this system of generating lists so I may not be of much help, sorry! &mdash; MusikAnimal  talk  15:32, 6 March 2017 (UTC)

CHECKWIKI is most probably shutting down. -- Magioladitis (talk) 11:32, 17 March 2017 (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 WT:BRFA.