Wikipedia:Bots/Requests for approval/ImageBacklogBot 2
From Wikipedia, the free encyclopedia
- The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Approved.
[edit] ImageBacklogBot 2
tasks • contribs • count • sul • logs • page moves • block user • block log • flag log • flag bot
Operator: --uǝʌǝsʎʇɹnoɟʇs(st47)
Automatic or Manually Assisted: Automatic
Programming Language(s): Perl
Function Summary: Removes links to non-free images
Edit period(s) (e.g. Continuous, daily, one time run): weekly
Edit rate requested: 10-15 per minute
Already has a bot flag (Y/N): N
Function Details: uses a list generated here to check for and remove any links to non-free images from pages outside of mainspace. If a page is orphaned, it will tag it.
[edit] Discussion
Does it use Perlwikipedia? Will it handle images with wikilinks in caption properly? What about galleries? Will it simjply remove images, or replace them with a placeholder image? MaxSem(Han shot first!) 05:35, 27 November 2007 (UTC)
- Galleries are handled, wikilinks are 99.9% handled, the only issue being nested wikilinks within the image, but that's not a very common thing, and if that happens the bot won't change anything. At the moment it's configured to remove the image - same regex as the first task - however if a placeholder would be more appropriate, we can do that. --uǝʌǝsʎʇɹnoɟʇs(st47) 11:28, 27 November 2007 (UTC)
- Yes, uses perlwikipedia with my wrapper. --uǝʌǝsʎʇɹnoɟʇs(st47) 11:45, 27 November 2007 (UTC)
- One random example: will it properly remove that image (by the way, will your bot remove images or comment them out?) MaxSem(Han shot first!) 19:38, 27 November 2007 (UTC)
How robust are the pattern matches? If blah.jpg is a fair use image in a non-article page, will this remove any instances of blahblah.jpg and blah.jpg.jpg on the same page? Gimmetrow 04:15, 29 November 2007 (UTC)
- No. It must immediately follow "Image:". There is no terminator defined, as there shouldn't be any images with /\.jpg.+/, and it is highly unlikely that it would be used on the same page as the image we're looking for, but I can set it to make sure what it's removing is right before a ] or a |. --uǝʌǝsʎʇɹnoɟʇs(st47) 20:04, 29 November 2007 (UTC)
- OK. What about {{foo|bar=blah.jpg}}, where {{foo}} contains [[Image:{{{bar|}}}]]? Gimmetrow 20:28, 29 November 2007 (UTC)
- Bot ignores it. Too many false positives if I allow the bot to touch things without checking the Image: part. --uǝʌǝsʎʇɹnoɟʇs(st47) 20:30, 29 November 2007 (UTC)
- Here are the regexes:
$linktext=~s/(?<=(?:\[\[))$page(?=[\|\]])/Image:Example.jpg/g;
while ($linktext=~s/(\<gallery\>[\n.]+)(?<![\[\]\|])($page(\|[^\|\n]+)?)\n/\1/gis) {};
- --uǝʌǝsʎʇɹnoɟʇs(st47) 20:33, 29 November 2007 (UTC)
- Will this create a list of what it removed in a subpage? Soxred93 has a boring sig 21:52, 30 November 2007 (UTC)
- Special:Contributions/ImageBacklogBot. Anything more is a waste. --uǝʌǝsʎʇɹnoɟʇs(st47) 02:24, 1 December 2007 (UTC)
- What assistance is needed? If none other than approval, then Approved for trial (2 days). If not, what? <DREAMAFTER> <TALK> 00:44, 2 December 2007 (UTC)
- I'll make 50 edits - it may not have been clear, but this bot works on a backlog, not live. --uǝʌǝsʎʇɹnoɟʇs(st47) 00:48, 2 December 2007 (UTC)
- Also, there was one image that shouldn't have been removed, one of those wikipedia logo deriviatives. I've added a command to the bot to not orphan any image with more than 10 uses, and I'm adding a negative lookahead to the regex that generates this list to skip only this tag. --uǝʌǝsʎʇɹnoɟʇs(st47) 01:40, 2 December 2007 (UTC)
- Was the bot also supposed to remove Wikimedia-copyrighted images from non-article pages (which you reverted) or was that also a malfunction? I didn't think the WMF withheld permission for this... BigBlueFish 01:43, 2 December 2007 (UTC)
- Will this create a list of what it removed in a subpage? Soxred93 has a boring sig 21:52, 30 November 2007 (UTC)
- OK. What about {{foo|bar=blah.jpg}}, where {{foo}} contains [[Image:{{{bar|}}}]]? Gimmetrow 20:28, 29 November 2007 (UTC)
(unindent) Approved for trial (2 days). If that is what is required, if not, what? You can remove what is below, if it is. <DREAMAFTER> <TALK> 03:13, 6 December 2007 (UTC)
P.S.: I do realise that it wors on a backlog, so you have two days to complete a trial. <DREAMAFTER> <TALK> 03:16, 6 December 2007 (UTC)
- How long should the trial be? --uǝʌǝsʎʇɹnoɟʇs(st47) 03:16, 6 December 2007 (UTC)
- 75 edits, two days. <DREAMAFTER> <TALK> 03:17, 6 December 2007 (UTC)
- This page, doesn't show any recent edits, what's up? <DREAMAFTER> <TALK> 02:14, 8 December 2007 (UTC)
- Weird, becuase I don't... Well, I will Approved for trial (2 days). Approved for trial (100 edits). <DREAMAFTER> <TALK> 02:51, 8 December 2007 (UTC)
- I see it now. So... Approved. <DREAMAFTER> <TALK> 14:50, 8 December 2007 (UTC)