Wikipedia:Bots/Requests for approval/AnomieBOT 61


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Symbol keep vote.svg Approved

AnomieBOT 61
Operator: Anomie⚔

Time filed: 21:01, Tuesday March 13, 2012 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): Perl

Source code available: User:AnomieBOT/source/tasks/ShowByDateSubster.pm

Function overview: Replace or remove instances of templates that "expire", as appropriate.

Links to relevant discussions (where appropriate): Bot requests/Archive 46, Template:Show by date/doc

Edit period(s): More or less daily

Estimated number of pages affected: Depends how many use show by date. Current backlog is 31 pages.

Exclusion compliant (Y/N): Yes

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

Function details: Certain templates, such as show by date or citation needed by, "expire" after a period of time and should be replaced or removed. The bot will go through transclusions of these templates, calculate the expiration date, and if the date is past replace or remove the invocation of the template as appropriate.

Current target templates are: Other such templates may be added as needed.
 * show by date – Replaced with the value of parameter 5, after the date defined by parameters 1-3.
 * citation needed by – Removed, 14 days after the date defined by parameters 1-3.

Discussion
While I have no problem getting rid of old "show by date" via bot, I'm not sure removing material via bot is all that good an idea. Seems that it could very-easily be abused/gamed or something. At the very least, any bot removing content should not do it while using its bot flag (so the edit shows on watchlists), and the edit should not be marked as minor, and the edit summary should explicitly ask editors to review the edit.

I'd like some other BAG input on this before going forward with a trial. Headbomb {talk / contribs / physics / books} 00:35, 14 March 2012 (UTC)
 * With the caveats of watchlist and editsummary notice, I would be fine approving this. Seems like a fairly tiny usage.  MBisanz  talk 02:46, 14 March 2012 (UTC)
 * So the concern is someone adds citation needed by with a past date just to get the bot to do the actual removal of the content? Seems a bit paranoid to me, but there you go. Anomie⚔ 03:03, 14 March 2012 (UTC)
 * My concern was more removing the content entirely rather than letting it just be hidden by the template, but reviewing the documentation I see many warnings that this may happen so I'm really not at all concerned now as long as bot=0 and minor=0; I wouldn't even flag it for review. This would of course change if it was abused in the future but really, there are much better ways to abuse the wiki. &mdash; madman 03:21, 14 March 2012 (UTC)
 * I'd agree on not editing with the bot or minor flags when removing citation needed by, or perhaps leaving the text for which citation was required as a comment, but otherwise this task is just doing what MediaWiki does by itself anyway. Reviewing the source code, I highly approve of checking the last revision ID of the templates, which is an excellent example of defensive programming; I'm not sure about a hard-coded list of pages to skip, though. Are these templates commonly used inside the Template namespace? If not, I'd just exclude the Template namespace. Finally, I love having a "whine" function and wish to build one into my own framework now. &mdash; madman 03:14, 14 March 2012 (UTC)
 * (edit conflict) I see Headbomb's concern has been addressed satisfactorily; &mdash; madman 03:14, 14 March 2012 (UTC)
 * [//en.wikipedia.org/w/index.php?title=Special:Contributions&offset=20120314151600&limit=30&target=AnomieBOT]. Everything appears to have worked as intended. Anomie⚔ 16:16, 14 March 2012 (UTC)

I don't see any effort to detect if a citation is provided (still tagged, in error). Is it worthwhile checking, or is that a warren we ought not be going down? Josh Parris 13:27, 14 March 2012 (UTC)
 * Mmm, that's a fair point; it can't hurt to check for tags in parameter four. &mdash; madman 13:41, 14 March 2012 (UTC)
 * Is the concern here something like [//en.wikipedia.org/w/index.php?title=User:Anomie/Sandbox&oldid=481862694 this situation] ? Ever since the new parser was introduced years ago, a reference in a template parameter that doesn't wind up being output to the page is never processed, so removing it entirely doesn't change anything. Bots/Requests for approval/AnomieBOT 3 is for fixing this issue.
 * Or is the concern that someone would have used citation needed by, and then someone else added a but didn't remove the citation needed by? Which would have resulted in something along the lines of "text.[1][citation needed]" in the article? I'm not sure what exactly the bot can do about that, and note that in the current configuration the text will already have been hidden for 2 weeks. Anomie⚔ 16:16, 14 March 2012 (UTC)
 * The latter hypothetical was the one I was considering; if an article included, later an editor added a reference: , then the template expires and two weeks later the bot removes it. Yes, the problem would have existed for two weeks as the reference was hidden, but the page might not be watched closely and the problem is recoverable; in that situation, I should think the bot could just check for "madman 18:27, 14 March 2012 (UTC)
 * The rabbit warren I was referring to is: inline citations are just the tip of the iceberg, and the one best known by most editors. But Wikipedia explicitly doesn't dictate a citation style, so there's any number of them, some of them tough to automagically detect. Josh Parris 22:28, 14 March 2012 (UTC)
 * Then perhaps it's not worth checking at all. If it were to be checked at all, I'd say just check for "madman 23:39, 14 March 2012 (UTC)

Failing dissent, Josh Parris 13:15, 21 March 2012 (UTC)
 * The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.