Wikipedia:Bots/Requests for approval/Sambot 11
{{Newbot|Sambot|11}} Operator: Automatic or Manually Assisted: Automatic Programming Language(s): PHP, using Pillar Function Overview: Add or remove {{tlx|puic}} per WP:PUI. Edit period(s): Daily Already has a bot flag (Y/N): Y Function Details: Code here. ===Discussion=== {{BotTrial|days=3}} (I hope it's not inappropriate for me be the one to approve this for trial.) – Quadell (talk) 01:53, 27 April 2009 (UTC) : Since we just talked about this at WT:TW/BUG#285, from a glance at the regular expressions in the code I seem to be seeing some potential problems: :* The filename needs to be properly escaped, otherwise you run into problems with :File:.* and the like. Also, it doesn't accept any whitespace after the brackets, or before and after the namespace-filename seperator. Crazy stuff like :* :* :* function kept($title,$imagename) { [...] try { [...] } catch (PillarException $e) { kept($title,$imagename); } } :Most of those won't occur often, but ... ::All good points, all of them fixed. I don't know what I was doing with the escaping in that regex. The only change I haven't made is to incorporate ::: Sure, as I said, I don't expect any pxpx outside templates. ::::Another good point. Fixed. {{botTrialComplete}} 15 edits made over the three daily runs (note that that figure will be lower than the "real" runs, as Amalthea is intending to turn off Twinkle's automatic tagging when this BRFA is approved). Listed below: ;Adding {{tlx|puic}} :http://en.wikipedia.org/w/index.php?title=New_Hampshire_House_of_Representatives&diff=prev&oldid=286632385 :http://en.wikipedia.org/w/index.php?title=New_Hampshire_General_Court&diff=prev&oldid=286632375] :http://en.wikipedia.org/w/index.php?title=Elite_Police&diff=prev&oldid=286632164] :http://en.wikipedia.org/w/index.php?title=Elite_Police&diff=prev&oldid=286632148 :http://en.wikipedia.org/w/index.php?title=Dead_letter_mail&diff=prev&oldid=286632086 :http://en.wikipedia.org/w/index.php?title=Al-Khalid_tank&diff=prev&oldid=286482574 :http://en.wikipedia.org/w/index.php?title=Al-Khalid_tank&diff=prev&oldid=286482516 :http://en.wikipedia.org/w/index.php?title=Pakistan_Army&diff=prev&oldid=286482467 :http://en.wikipedia.org/w/index.php?title=Al-Shabab_(Saudi_Arabia)&diff=prev&oldid=286481716 :http://en.wikipedia.org/w/index.php?title=Edward_Low&diff=prev&oldid=286481129 :http://en.wikipedia.org/w/index.php?title=Leonid_Brezhnev&diff=prev&oldid=286480356 Also three accidentally done under {{user|Sam Korn}}: :http://en.wikipedia.org/w/index.php?title=Naypyidaw&diff=prev&oldid=286476277 :http://en.wikipedia.org/w/index.php?title=Naypyidaw&diff=prev&oldid=286476966 :http://en.wikipedia.org/w/index.php?title=Andrey_Kozlov&diff=prev&oldid=286477012 ;Removing {{tlx|puic}} :http://en.wikipedia.org/w/index.php?title=Cheat_Engine&diff=prev&oldid=286482232 No problems with any of the edits. : {{diff2|286632164|What happened here}}? The image is still up at PUI, so it wasn't trying to fix the superfluous pipe. Amalthea 20:39, 29 April 2009 (UTC) ::Hmm, a bug that I very clearly remember fixing appears not to have been fixed ;-( {{diff2|286921360|Now fixed}}. I looked over all the edits, and (Almathea's catch excepted) they all look great. Any 11th-hour concerns from anyone? – Quadell (talk) 01:06, 30 April 2009 (UTC) Okay then! {{BotApproved}} – Quadell (talk) 21:58, 30 April 2009 (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.
Sambot 11[[User:Sambot|Sambot]] 11
'/[\|]?\{\{puf|ic/i'
is wrong, that will match anything with "ic". Should be something like '/(\|\s*)?\{\{\s*pu[fi]c/i'
Amalthea 14:04, 27 April 2009 (UTC)pxpx
, as it would be matched by the current regex anyway (there's no $
).
But ... if you're not matching the entire bit, then you'll have problems with image captions like "See the topic on the right", don't you? Amalthea 17:59, 27 April 2009 (UTC)