Wikipedia:Bots/Requests for approval/Maelgwnbot 5


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

User:Maelgwnbot 5
Operator: -- maelgwn - talk

Automatic or Manually Assisted:Automatic

Programming Language(s):pywikipedia

Function Summary:Fixing wrongly templated protected pages

Edit period(s) (e.g. Continuous, daily, one time run): Every few dats

Edit rate requested: 6 edits per minute

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

Function Details:This gets pages in Category:Protected and then checks their level of protection. If they are fully protected it skips them, if they are semi-protected it tries to change to template to the matching semi protection template (eg pp-vandalism becomes pp-semi-vandalism) and if it is not protected it removes the template. See source here User:Maelgwnbot/source5.

Discussion
Will you be looking for all the redirects and transclusions that lead to the protection templates as well, to avoid double tagging? (e.g. and ) —  xaosflux  Talk 14:41, 21 December 2007 (UTC)
 * I will try and look for as many full protection templates as I know about. It is not actually adding tags, so i'm not sure what you mean about double tagging? There would only be a problem if there are already two tags on the page, is this likely? -- maelgwn - talk 23:37, 21 December 2007 (UTC)
 * What he means is will it recognise redirects to the various templates, eg. sprot redirects to Pp-semi-protection, so that it doesn't think the page is semi protected with no template. I'm sure it won't be too hard to make it recognise them, if it doesn't already.--Phoenix-wiki talk · contribs 20:21, 22 December 2007 (UTC)
 * It is not actually adding templates. The Category:Protected only contains pages that have a fully protected template on them. It checks that the page is fully protected first and if it is semi protected, replaces an existing template with a new one. It will not add a template without first removing one. -- maelgwn - talk 23:15, 22 December 2007 (UTC)
 * OK, so if it is semi-protected, and untagged, you will ignore it? —  xaosflux  Talk 06:18, 23 December 2007 (UTC)
 * Yes -- maelgwn - talk 07:57, 23 December 2007 (UTC)
 * Have fun. I just realized, I just proposed this a few days ago (but withdrew). Soxred93 has a boring sig 04:04, 24 December 2007 (UTC)
 * OK trial done. Editing patterns irregular because it was missing some but i think im covering nearly all of them now. -- maelgwn - talk 10:23, 25 December 2007 (UTC)
 * Oh why not? It looks good, with no errors. Good luck. Soxred93 has a boring sig 16:03, 25 December 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.