Wikipedia:Bots/Requests for approval/AnomieBOT 25
{{Newbot|AnomieBOT|25}} Automatic or Manually Assisted: Automatic, unsupervised Programming Language(s): Perl Function Overview: Remove the deprecated 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 This is pretty much the same code as for Wikipedia:Bots/Requests for approval/AnomieBOT 24; the major difference is replacing the :{{BotSpeedy}} Essentially a clone of a previously-approved task, with which there have been no issues. Richard0612 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.
AnomieBOT 25[[User:AnomieBOT|AnomieBOT]] 25
imdb_id
and tv_com_id
parameters from instances of {{tl|Infobox Television}}, while adding the links those parameters formerly generated to the article's External links section.imdb_id
or tv_com_id
parameters in {{tl|Infobox Television}} will be removed, and {{tl|imdb title}} or {{tl|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=
list=embeddedin
with list=categorymembers
since {{tl|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 [http://en.wikipedia.org/w/index.php?title=User:AnomieBOT/source/tasks/TemplateReplacer13.pm&diff=274317823&oldid=274138252] (too bad the indentation change clutters the diff). Anomie⚔ 02:24, 2 March 2009 (UTC)