Wikipedia:Bots/Requests for approval/AnomieBOT 25


 * The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Symbol keep vote.svgSymbol support vote.svg Speedily Approved.

AnomieBOT 25
Operator: Anomie⚔

Automatic or Manually Assisted: Automatic, unsupervised

Programming Language(s): Perl

Function Overview: Remove the deprecated  and   parameters from instances of Infobox Television, while adding the links those parameters formerly generated to the article's External links section.

Edit period(s): One-time run.

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

Function Details: Per request, the bot will load all pages in the categories Category:Television articles with an IMDb link in the infobox and Category:Television articles with a TV.com link in the infobox. Any  or   parameters in Infobox Television will be removed, and imdb title or tv.com (respecively) will be added to the article's External links section if that section does not already contain the corresponding link. An External links section will be created if necessary. Any issues encountered will be logged to User:AnomieBOT/TemplateReplacer14 log. Each page will only be processed once (a local database holds the pageids of all successfully-processed pages).

Discussion
This is pretty much the same code as for Bots/Requests for approval/AnomieBOT 24; the major difference is replacing the  with   since Infobox Television puts pages with the parameters in question into tracking categories. Other changes are just those necessary to target the different template and parameters, and the flipping of the switch to always remove the parameters from the infobox so the two tracking categories will (ideally) be emptied at the end of the bot run. Source is at User:AnomieBOT/source/tasks/TemplateReplacer14.pm; diff from the previous code is at (too bad the indentation change clutters the diff). Anomie⚔ 02:24, 2 March 2009 (UTC)
 * Essentially a clone of a previously-approved task, with which there have been no issues.  Richard 0612  17:12, 3 March 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.