Operator: [[Sam Korn]] (smoddy)
Automatic or Manually Assisted: Automatic
Programming Language(s): PHP, using Pillar
Function Overview: Add or remove ((puic))
per WP:PUI.
Edit period(s): Daily
Already has a bot flag (Y/N): Y
Function Details:
((puic))
from pages kept at WP:PUI((puic))
is under each use of the image; if not, add it.Code here.
[[Sam Korn]] (smoddy) 17:24, 25 April 2009 (UTC)[reply]
Approved for trial (3 days). Please provide a link to the relevant contributions and/or diffs when the trial is complete. (I hope it's not inappropriate for me be the one to approve this for trial.) – Quadell (talk) 01:53, 27 April 2009 (UTC)[reply]
$regex = '/\[\[' . preg_replace ('/^File/i','(?:(?:File)|(?:Image))',str_replace(':','\:',$imagename)) . '.*/is';
'/[\|]?\{\{puf|ic/i'
is wrong, that will match anything with "ic". Should be something like '/(\|\s*)?\{\{\s*pu[fi]c/i'
$regex = '/\s*(?:(?:thumb)|(?:frame)|(?:border)|(?:right)|(?:left)|(?:center)|(?:none)|(?:link=)|(?:\d+px)|(?:\d+x\d+px))/i';
$bit .= ' ((puic|' . preg_replace('/\s*(?:(?:File)|(?:Image)):/i','',$imagename) . '|' . $puiname . '))';
function kept($title,$imagename) {
[...]
try {
[...]
} catch (PillarException $e) {
kept($title,$imagename);
}
}
pxpx
, as it would be matched by the current regex anyway (there's no $
). [[Sam Korn]] (smoddy) 17:29, 27 April 2009 (UTC)[reply]
Trial complete. 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:
((puic))
Also three accidentally done under Sam Korn (talk · contribs):
No problems with any of the edits.
[[Sam Korn]] (smoddy) 20:30, 29 April 2009 (UTC)[reply]
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)[reply]
Okay then! Approved. – Quadell (talk) 21:58, 30 April 2009 (UTC)[reply]