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 Speedily Approved.
Automatic or Manually Assisted: Automatic, unsupervised
Programming Language(s): Perl
Function Overview: Remove the deprecated imdb_id
and tv_com_id
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 imdb_id
or tv_com_id
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
editThis is pretty much the same code as for Wikipedia:Bots/Requests for approval/AnomieBOT 24; the major difference is replacing the list=embeddedin
with list=categorymembers
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 [1] (too bad the indentation change clutters the diff). Anomie⚔ 02:24, 2 March 2009 (UTC)[reply]
- Speedily Approved. Essentially a clone of a previously-approved task, with which there have been no issues. Richard0612 17:12, 3 March 2009 (UTC)[reply]
- 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.