Wikipedia:Bots/Requests for approval/Mr.Z-bot
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 Approved.
[edit] Mr.Z-bot
tasks • contribs • count • sul • logs • page moves • block user • block log • flag log • flag 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.
[edit] Discussion
Could you publish regexes you intend to use? MaxSem 11:34, 29 April 2007 (UTC)
- For simply linking categories on old archive pages, I was just going to change
[[Category:
to[[:Category:
. 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-mantalk¢ 19:24, 29 April 2007 (UTC)- Try \[\[Category:([^\|\]]+)(\|[^\]]+)?\]\] -> [[:Category:\1]] ? ST47Talk 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 {{foo}} to {{tl|foo}}? Or would nowiki tags be more appropriate? Mr.Z-mantalk¢ 03:26, 30 April 2007 (UTC)
- Use the {{tl}} ST47Talk 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-mantalk¢ 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:
<nowiki>{{templatename|param1|param2}}</nowiki>
with each template. Perhaps easier would be to replace{{name
with<nowiki>{{Template:name|name</nowiki>
. 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)
- {{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:
-
- 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-mantalk¢ 00:41, 5 May 2007 (UTC)
- Use the {{tl}} ST47Talk 18:10, 30 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 {{foo}} to {{tl|foo}}? Or would nowiki tags be more appropriate? Mr.Z-mantalk¢ 03:26, 30 April 2007 (UTC)
- Try \[\[Category:([^\|\]]+)(\|[^\]]+)?\]\] -> [[:Category:\1]] ? ST47Talk 20:07, 29 April 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-mantalk¢ 04:39, 7 May 2007 (UTC)
- Yes - it's not that important - just an idea :). If I remember correctly, WP: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)
- 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.