Wikipedia:Bots/Requests for approval/AnomieBOT 7


 * 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
Operator: Anomie⚔

Automatic or Manually Assisted: automatic, unsupervised

Programming Language(s): Perl

Function Summary: Replace WikiProject Neurology with.

Edit period(s) (e.g. Continuous, daily, one time run): one-time

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

Function Details: Per request, the bot will replace WikiProject Neurology (and any redirects) with WPMED, or just remove the Neurology banner if WPMED is already on the page. It will also add the parameter  to WPMED, and also   if the old Neurology banner had an   parameter.

It will renumber the parameters of WikiProjectBanners or WikiProjectBannerShell if the removal of the Neurology project banner necessitates that.

Discussion
This is essentially the same code as was approved at Bots/Requests for approval/AnomieBOT 4, just updated for the new task. The code is at User:AnomieBOT/source/tasks/TemplateReplacer4.pm, and the diff from the approved code is here. Anomie⚔ 00:16, 18 October 2008 (UTC)
 * It should be noted that most, if not all, of the pages will already have a WPMED template on. I just realised that this is going to be more of a 'remove the neurology template, replace the WPMED' kind of thing. Is that okay? —Cyclonenim (talk · contribs · email) 12:33, 18 October 2008 (UTC)
 * As I mentioned above, it's basically the same code as was used to cleanup the banners after WikiProject Nintendo became a task force of WPVG; there was usually a WPVG banner already on the page for that task too. See for exampe this edit.
 * When WPMED already exists, the bot will add the  and   parameters to it without disturbing any existing parameters. It will even notice WPMEDICINE and other redirects to WPMED, and NeuroWikiProject and other redirects to WikiProject Neurology for that matter. Anomie⚔ 13:09, 18 October 2008 (UTC)

Same code, trusted bot op. BJ Talk 19:47, 18 October 2008 (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.