Wikipedia:Bots/Requests for approval/STBotI 2


Category:Approved Wikipedia bot requests for approval

[[User:STBotI|STBotI]]

{{Newbot|STBotI|2}}

Operator: ST47

Automatic or Manually Assisted: Automatic

Programming Language(s): Perl

Function Summary: Continuation of Wikipedia:Bots/Requests for approval/STBotI with changes

Edit period(s) (e.g. Continuous, daily, one time run): continuous

Edit rate requested: Whatever I'm already approved for

Already has a bot flag (Y/N): Y

Function Details:

Wikipedia:NFCC#10c enforcement on new images. I have two 'rules' for this, the first checks for lack of a link or a populated article= parameter in a rationale template:

  • elsif ($imagetext=~/\{Non-free|\{fair use|\{music sample/ and $imagetext!~/\[[^:]+\]|article\s*\=\s*[\[a-z]/i)

the second checks for certain keywords, doesn't work very well, and will most likely be removed later today.

A list of images which would be tagged under this method is at User:ST47/NFCC10c.

= Discussion =

Not a good idea. because of the method of writing rationales is not standard and there is no requirement for the article parameter, or even a wikilink that is a bad Idea. βcommand 23:19, 31 December 2007 (UTC)

:As Betacommand points out, the policy itself is not strict about formatting rationales. Something like this would be a reasonable job for AWB, since the regex test will be correct most of the time. But it may be a bad job for a bot, since people expect near-perfection from image bots. — Carl (CBM · talk) 17:48, 3 January 2008 (UTC)

::Doesn't BetacommandBot do this? Anyway, how about another check, look for the names of the articles that contain the image on the image page? This would make the logic as follows:

:*Is there a wikilink? If yes, stop.

:*Is there a article= parameter? Is there text after it on the same line? If yes, stop.

:*Are there any links to the image? If no, report that, do nothing, and stop.

:*Check each link against the image description page. If any title of any article referencing this image appears on the page, stop.

:*Tag as violation of NFCC#10c.

::Would that allay your formatting fears? --uǝʌǝsʎʇɹnoɟʇs(st47) 23:50, 5 January 2008 (UTC)

::If not, maybe this can be a good use of the Wikipedia:TODAY proposal? --uǝʌǝsʎʇɹnoɟʇs(st47) 23:50, 5 January 2008 (UTC)

:::How would you (or, just plain would you) do anything different for wikilinks that are redirects? Or, would the presence of ANY wikilink suffice? SQLQuery me! 20:50, 14 February 2008 (UTC)

::::Any wikilink. --uǝʌǝsʎʇɹnoɟʇs(st47) 17:46, 18 February 2008 (UTC)

:::::Sounds good to me in that case :) SQLQuery me! 12:10, 20 February 2008 (UTC)

:Comment Eww at that regex, Perl allows different delimiters so you don't get that escape-spaghetti :P Q T C 08:44, 23 February 2008 (UTC)

::There aren't any escaped forward slashes at all in there.

::Anyway, poke! {{t1|BAGAssistanceNeeded}} --uǝʌǝsʎʇɹnoɟʇs(st47) 23:53, 7 March 2008 (UTC)

:::I think, that what ST47 laid out above, addresses the concerns by Carl and Betacommand pretty well. {{BotTrial|edits=50|days=3}} SQLQuery me! 03:25, 9 March 2008 (UTC)

::::Done. List at User:ST47/NFCC10c. --uǝʌǝsʎʇɹnoɟʇs(st47) 01:01, 12 March 2008 (UTC)

::::Examples:

::::*:Image:Hold On.JPG

::::*:Image:850cs exterior.jpg

::::*:Image:Sakura Part 2.jpg

::::*:Image:Sakura Haruno.jpg

::::*:Image:Rapunzel-Disney.jpg (already fixed as of this posting)

::::*:Image:Bowie in Labyrinth.png (tag was correct at the time, article was added using incorrect formatting, I fixed it and removed the tag)

::::*:Image:Denison witmer.jpg

::::*:Image:Marty Feldman.jpg (fixed as of posting)

::::*:Image:Spirits and Spells - smaller.jpg (fixed as of posting)

::::*:Image:White trail.jpg

::::--uǝʌǝsʎʇɹnoɟʇs(st47) 01:09, 12 March 2008 (UTC)

:It looks like it went pretty well. There were several images that your bot listed as having tagged, that it had never edited, by the way. Hardly a serious bug, however, I'd bet due to maxlag. SQLQuery me! 21:34, 12 March 2008 (UTC)

::Yep. There's a last check to make sure the image hasn't been tagged that looks for {{di, and that is checked after the log entry is posted. --uǝʌǝsʎʇɹnoɟʇs(st47) 23:13, 12 March 2008 (UTC)

:::Yep, figured it was something silly like that :) SQLQuery me! 23:24, 12 March 2008 (UTC)

::::So, is the bot approved? --uǝʌǝsʎʇɹnoɟʇs(st47) 23:50, 12 March 2008 (UTC)

:{{BotApproved}} — Werdna talk 05:06, 18 March 2008 (UTC)

:The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.