Wikipedia:Bots/Requests for approval/Mr.Z-bot
Tools
Actions
General
Print/export
In other projects
Appearance
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.
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
[edit]Could you publish regexes you intend to use? MaxSem 11:34, 29 April 2007 (UTC)[reply]
- 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)[reply]- Try \[\[Category:([^\|\]]+)(\|[^\]]+)?\]\] -> [[:Category:\1]] ? ST47Talk 20:07, 29 April 2007 (UTC)[reply]
- 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)[reply]
- Use the {{tl}} ST47Talk 18:10, 30 April 2007 (UTC)[reply]
- 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)[reply]
- {{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)[reply]
- {{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)[reply]
- Use the {{tl}} ST47Talk 18:10, 30 April 2007 (UTC)[reply]
- 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)[reply]
- Try \[\[Category:([^\|\]]+)(\|[^\]]+)?\]\] -> [[:Category:\1]] ? ST47Talk 20:07, 29 April 2007 (UTC)[reply]
- 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)[reply]
- Yes - it's not that important - just an idea :). If I remember correctly, Wikipedia: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)[reply]
- 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-mantalk¢ 22:06, 7 May 2007 (UTC)[reply]
- Yes - it's not that important - just an idea :). If I remember correctly, Wikipedia: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)[reply]
- Once you're ready, Approved for trial. Please provide a link to the relevant contributions and/or diffs when the trial is complete. approved for 25 edits. ST47Talk 00:35, 11 May 2007 (UTC)[reply]
- 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-mantalk¢ 05:19, 13 May 2007 (UTC)[reply]
- Good, that's why we do trials! Once that's fixed, Approved. ST47Talk 10:59, 13 May 2007 (UTC)[reply]
- 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-mantalk¢ 05:19, 13 May 2007 (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.