Wikipedia:Bots/Requests for approval/ImageBacklogBot 2: Difference between revisions
Content deleted Content added
Removing links to fair-use image Image:KREML.jpg. |
MalnadachBot (talk | contribs) m Fixed Lint errors. (Task 12) |
||
(41 intermediate revisions by 9 users not shown) | |||
Line 1:
<noinclude><br />
<noinclude>[[Category:Wikipedia bot requests for approval]]</noinclude>▼
<div class="boilerplate metadata" style="background-color: #dedaca; margin: 2em 0 0 0; padding: 0 10px 0 10px; border: 1px solid #AAAAAA;">
==[[User:ImageBacklogBot|ImageBacklogBot 2]]==▼
:''The following discussion is an archived debate. <span style="color:red">'''Please do not modify it.'''</span> Subsequent comments should be made in a new section.'' The result of the discussion was [[File:Symbol keep vote.svg|20px]] '''Approved'''.<!-- from Template:Bot Top-->
▲== [[User:ImageBacklogBot|ImageBacklogBot 2]] ==
{{Newbot|ImageBacklogBot|2}}
Line 23 ⟶ 26:
<!--List full function details here-->
'''Function Details:''' uses a list generated [[User:ST47/NFI|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.
=== Discussion ===
<!-- This is not a vote. It is a 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? [[User:MaxSem|Max<
: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. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 11:28, 27 November 2007 (UTC)
:Yes, uses perlwikipedia with my wrapper. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 11:45, 27 November 2007 (UTC)
::
:::Yes, and it can do any of those. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 23:25, 27 November 2007 (UTC)
::::As for will, I think the placeholder is most useful, however that doesn't (currently) work with galleries, so I'd have to fall back to removing or commenting. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 23:26, 27 November 2007 (UTC)
:::::Maybe skip galleries? — [[User:E|<span style="color:#003366;font-weight:bold">E</span>]] <sup>[[User talk:E|<span style="color:#ED9121">talk</span>]]</sup><sub>[[Wikipedia:BAG|<span style="color:#ED9121">BAG</span>]]</sub> 20:03, 28 November 2007 (UTC)
::::::Why? --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 21:24, 28 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? [[User talk:Gimmetrow|''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 |. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 20:04, 29 November 2007 (UTC)
:: OK. What about <nowiki>{{foo|bar=blah.jpg}}, where {{foo}} contains [[Image:{{{bar|}}}]]</nowiki>? [[User talk:Gimmetrow|''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. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 20:30, 29 November 2007 (UTC)
:::Here are the regexes:
::::<code>$linktext=~s/(?<=(?:\[\[))$page(?=[\|\]])/Image:Example.jpg/g;</code>
::::<code>while ($linktext=~s/(\<gallery\>[\n.]+)(?<![\[\]\|])($page(\|[^\|\n]+)?)\n/\1/gis) {};</code>
:::--[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 20:33, 29 November 2007 (UTC)
::::Will this create a list of what it removed in a subpage? [[User:Soxred93|Soxred93]] <small>has a boring sig</small> 21:52, 30 November 2007 (UTC)
:::::[[Special:Contributions/ImageBacklogBot]]. Anything more is a waste. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 02:24, 1 December 2007 (UTC)
::::What assistance is needed? If none other than approval, then {{BotTrial|days=2}} If not, what? <<tt>[[User:Dreamafter|<font color="crimson">DREAMAFTER</font>]]</tt>> <sup><[[User talk:Dreamafter|<font color="purple">TALK</font>]]></sup> 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. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 00:48, 2 December 2007 (UTC)
::::::Went a little overboard - we had a small crisis and I wasn't watching as closely as I should have. One issue at the beginning, I forgot to fix my regexes and ended up killing a whole page, that's fixed now. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 01:32, 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. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 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... [[User:Bigbluefish|BigBlueFish]] 01:43, 2 December 2007 (UTC)
:::::::As stated, it was an error, and I've placed two sets of prevention for that: First, commonly used images will be left alone. Second, images with that tag won't even be reported. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 01:45, 2 December 2007 (UTC)
(unindent){{BotTrial|days=2}} If that is what is required, if not, what? You can remove what is below, if it is. <<tt>[[User:Dreamafter|<font color="crimson">DREAMAFTER</font>]]</tt>> <sup><[[User talk:Dreamafter|<font color="purple">TALK</font>]]></sup> 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. <<tt>[[User:Dreamafter|<font color="crimson">DREAMAFTER</font>]]</tt>> <sup><[[User talk:Dreamafter|<font color="purple">TALK</font>]]></sup> 03:16, 6 December 2007 (UTC)
:How long should the trial be? --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 03:16, 6 December 2007 (UTC)
::75 edits, two days. <<tt>[[User:Dreamafter|<font color="crimson">DREAMAFTER</font>]]</tt>> <sup><[[User talk:Dreamafter|<font color="purple">TALK</font>]]></sup> 03:17, 6 December 2007 (UTC)
:::Yeah, done. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 00:45, 8 December 2007 (UTC)
::[http://en.wikipedia.org/w/index.php?title=Special:Contributions&limit=100&target=ImageBacklogBot This page], doesn't show any recent edits, what's up? <<tt>[[User:Dreamafter|<font color="crimson">DREAMAFTER</font>]]</tt>> <sup><[[User talk:Dreamafter|<font color="purple">TALK</font>]]></sup> 02:14, 8 December 2007 (UTC)
:::I see 75 edits from the 6th of december...--[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 02:21, 8 December 2007 (UTC)
::Weird, becuase I don't... Well, I will {{BotTrial|days=2}}{{BotTrial|edits=100}} <<tt>[[User:Dreamafter|<font color="crimson">DREAMAFTER</font>]]</tt>> <sup><[[User talk:Dreamafter|<font color="purple">TALK</font>]]></sup> 02:51, 8 December 2007 (UTC)
:::...why? You're telling me you don't see [http://st47.dyndns.org/stats/IBB.html these] edits? --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 13:21, 8 December 2007 (UTC)
:::Well, there you are, another hundred edits. --[[User:ST47|uǝʌǝs]][[User talk:ST47|ʎʇɹnoɟ]][[Special:Contributions/ST47|ʇs]]<small>(st47)</small> 14:33, 8 December 2007 (UTC)
::I see it now. So... {{BotApproved}} <<tt>[[User:Dreamafter|<font color="crimson">DREAMAFTER</font>]]</tt>> <sup><[[User talk:Dreamafter|<font color="purple">TALK</font>]]></sup> 14:50, 8 December 2007 (UTC)
|