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 Withdrawn by operator.
Operator: Magioladitis (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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)[reply]
Detect and remove small tags (<small>Text</small>) and templates ({{small|Text}}) that wrap around image (<small>[[Image:Cat|options|Text]]</small> or [[File:) description field. Example, Example:
- [[Image:Example.jpg|thumb|<small>Example</small>]] → [[Image:Example.jpg|thumb|Example]]
- [[Image:Example.jpg|thumb|{{small|Example}}]] → [[Image:Example.jpg|thumb|Example]]
Any other fields are preserved untouched:
- [[Image:Example.jpg|thumb|left|border|<small>Example</small>]] → [[Image:Example.jpg|thumb|left|border|Example]]
- [[Image:Example.jpg|thumb|<small>Example</small>|alt=Hi]] → [[Image:Example.jpg|thumb|Example|alt=Hi]]
- [[Image:Example.jpg|thumb|<small><small>Example</small></small>]] → [[Image:Example.jpg|thumb|Example]]
This does not alter mixed formatting:
- [[Image:Example.jpg|thumb|left|<small>Small</small> Big]] → [[Image:Example.jpg|thumb|left|<small>Small</small> Big]]
This doesn't alter captions that aren't rendered (no thumb or frame options):
- [[Image:Example.jpg|<small>Example</small>]] → [[Image:Example.jpg|<small>Example</small>]]
- [[Image:Example.jpg|frameless|<small>Example</small>]] → [[Image:Example.jpg|frameless|<small>Example</small>]]
This does not modify images in <gallery>...</gallery>:.
Discussion
[edit]- Support. This is a serious accessibility issue. ~ Rob13Talk 00:31, 2 February 2017 (UTC)[reply]
- Will it also look for {{small}}? How are we finding pages that need these fixes? Is the task exclusion compliant? — MusikAnimal talk 01:55, 3 February 2017 (UTC)[reply]
- Please add an example to function details (including, if you are also fixing {{small}} or something like <font size=2> or <div style="font-size:small">). I don't see any issues otherwise. — HELLKNOWZ ▎TALK 22:57, 3 February 2017 (UTC)[reply]
MusikAnimal, Hellknowz 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)[reply]
- 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. — HELLKNOWZ ▎TALK 12:35, 11 February 2017 (UTC)[reply]
- Hellknowz added example. -- Magioladitis (talk) 13:16, 11 February 2017 (UTC)[reply]
Hellknowz This is error 66 of CHECKWIKI and was approved before in Wikipedia:Bots/Requests for approval/Yobot 16 and in Wikipedia:Bots/Requests for approval/MenoBot 4. -- Magioladitis (talk) 13:17, 11 February 2017 (UTC)[reply]
Hellknowz 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)[reply]
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. — HELLKNOWZ ▎TALK 14:12, 11 February 2017 (UTC)[reply]
Hellknowz 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)[reply]
- 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? — MusikAnimal talk 22:32, 12 February 2017 (UTC)[reply]
MusikAnimal 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 Hellknowz's very useful comments probably there are more pages. I can assk Bgwhite or someone else to help me generate a list of pages to fix. -- Magioladitis (talk) 22:53, 12 February 2017 (UTC)[reply]
MusikAnimal Me and Bgwhite have been very efficient till now fixing those that the monthly report Wikipedia: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#Image_description_with_full_small. -- Magioladitis (talk) 22:56, 12 February 2017 (UTC)[reply]
- @Magioladitis: 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 — MusikAnimal talk 18:03, 20 February 2017 (UTC)[reply]- MusikAnimal 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)[reply]
- Could you link me to these CHECKWIKI lists? The one you mentioned above, Wikipedia:CHECKWIKI/066 dump, is empty — MusikAnimal talk 22:54, 20 February 2017 (UTC)[reply]
- MusikAnimal 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)[reply]
- Yes, this one plus this one for the daily fixes. -- Magioladitis (talk) 22:56, 20 February 2017 (UTC)[reply]
MusikAnimal I wonder if you could help in generating lists for this one. -- Magioladitis (talk) 02:09, 23 February 2017 (UTC)[reply]
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. — HELLKNOWZ ▎TALK 14:45, 28 February 2017 (UTC)[reply]
MusikAnimal Can you help with the list generation? -- Magioladitis (talk) 12:16, 5 March 2017 (UTC)[reply]
- I'm not too familiar with this system of generating lists so I may not be of much help, sorry! — MusikAnimal talk 15:32, 6 March 2017 (UTC)[reply]
Withdrawn by operator. CHECKWIKI is most probably shutting down. -- Magioladitis (talk) 11:32, 17 March 2017 (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 WT:BRFA.