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.
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]
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]