Wikipedia:Bots/Requests for approval/Mr.Z-bot


 * 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.svg Approved.

Mr.Z-bot
Operator: Mr.Z-man

Automatic or Manually Assisted: Automatic, supervised

Programming Language(s): AWB

Function Summary: Removes categories on AFC archive pages.

Edit period(s) (e.g. Continuous, daily, one time run): Daily (at least until old pages are finished)

Edit rate requested: Initially (until old archives are cleared) 5 edits per minute, eventually, 7 edits per week

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

Function Details: Removes categories (by converting them to links) on AFC archive pages to prevent them from being categorized into article categories. There are currently 481 archive pages, with one being added every day.

Discussion
Could you publish regexes you intend to use? Max S em 11:34, 29 April 2007 (UTC)
 * For simply linking categories on old archive pages, I was just going to change  to  . The main problem is that there are 400 or so Wikipedia namespace pages in article namespace categories. All the old archive pages are kept simply to preserve the edit history and in case someone wants to go through some recent ones to check for decent articles people may have missed. As such, the few categories in them that use sortkeys would be changed to links that would display as their sortkeys linked to the category. I'm not really good at making regexes, if there is some way using AWB to remove the sortkeys and leave the category intact, I would use that.  Mr.Z-man  talk ¢ 19:24, 29 April 2007 (UTC)
 * Try \[\[Category:([^\|\]]+)(\|[^\]]+)?\]\] -> Category:\1 ? ST47 Talk 20:07, 29 April 2007 (UTC)
 * Yep, that seems to work with one slight modification: Category:$1 . Some categories are also in templates, should these just be converted from to foo ? Or would nowiki tags be more appropriate?  Mr.Z-man  talk ¢ 03:26, 30 April 2007 (UTC)
 * Use the tl ST47 Talk 18:10, 30 April 2007 (UTC)
 * I figured tl would be better. I have also created a page of links using time functions for use weekly after the archives are cleared. I will use the links on that page to generate the list for weekly AFC archive page category removals. To remove the old archive ones, I will use a Special:Prefixindex Mr.Z-man  talk ¢ 00:41, 5 May 2007 (UTC)
 * tl won't show parameters, will it? (checks.... no it doesn't :)) The only way I can think of to preserve them is with a find an replace doing something like:   with each template.  Perhaps easier would be to replace   with  .   On the other hand, this may not be too important, and there may be a tl-like template somewhere which does this for you. Martinp23 10:04, 6 May 2007 (UTC)
 * From what I can tell, there are tl type templates that include parameters, but none seem to work with named ones, only numbered. The only way I can think of now to make all parameters visible when viewing the page would be to use nowiki tags. Using the tl template wouldn't remove the parameters though, just make them only visible in the wikitext. Mr.Z-man  talk ¢ 04:39, 7 May 2007 (UTC)
 * Yes - it's not that important - just an idea :). If I remember correctly, AFC does have vairous valid uses of template in their archives (such as requests for review, or templates to indicate that the archive page still has some requests left for inspection).  These will probably need to be excluded from the bot's lists, and it should also subst: those instances of the archive top and archive bottom templates where needed, rather than removing them.  Martinp23 11:20, 7 May 2007 (UTC)
 * Good idea, All the AFC templates are supposed to be subst'd with the exception of afc maybe and afc moretodo. All the AFC templates begin with afc, so it should be easy to find them. Mr.Z-man  talk ¢ 22:06, 7 May 2007 (UTC)


 * Once you're ready, approved for 25 edits. ST47 Talk 00:35, 11 May 2007 (UTC)
 * Okay, 25 trial edits completed. I had to revert a few as I found more templates and situations to not use the tlx on. Mr.Z-man  talk ¢ 05:19, 13 May 2007 (UTC)
 * Good, that's why we do trials! Once that's fixed, ST47 Talk 10:59, 13 May 2007 (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.