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.

Operator: Anomie

Automatic or Manually Assisted: automatic, unsupervised

Programming Language(s): Perl

Function Summary: Replace ((WikiProject Neurology)) with ((WPMED|neurology=yes|neurology-imp=)).

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 neurology=yes to WPMED, and also neurology-imp if the old Neurology banner had an importance parameter.

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

Discussion[edit]

This is essentially the same code as was approved at Wikipedia: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)[reply]

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)[reply]
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 neurology=yes and neurology-imp 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)[reply]

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