Wikipedia:Bots/Requests for approval/AnomieBOT 10
From Wikipedia, the free encyclopedia
- 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.
User:AnomieBOT
Automatic or Manually Assisted: Automatic, unsupervised
Programming Language(s): Perl
Function Summary: Replace {{Segaproject}} with {{WikiProject Video games}}
Edit period(s) (e.g. Continuous, daily, one time run): one-time
Already has a bot flag (Y/N): Y
Function Details: Per request at User talk:Anomie#You're the VG botter, it seems?, the bot will replace {{Segaproject}} (and any redirects to that template) with {{WikiProject Video games}}, or just remove the Sega banner if the WPVG banner is already on the page. It will also add the taskforce parameter tf=Sega (or tf2/tf3, as needed) to the WPVG template if that parameter is not already in place. If the Sega banner contains a tf=Sonic parameter, that task force will also be added to the WPVG banner.
Since it is editing the WPVG template anyway, it will also canonicalize any {{WikiProject Video games}}-redirects (such as {{vgproj}}) to {{WikiProject Video games}}, and it will renumber the parameters of {{WikiProjectBanners}} or {{WikiProjectBannerShell}} if the removal of the Nintendo project banner necessitates that.
Discussion
This is essentially the same code as was approved at Wikipedia:Bots/Requests for approval/AnomieBOT 4 and 7, just updated with the new target template and with a few small bugs fixed. The code is at User:AnomieBOT/source/tasks/TemplateReplacer5.pm, and the diffs from the approved code are here and here. Anomie⚔ 04:44, 11 November 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.