Wikipedia:Bots/Requests for approval/Maelgwnbot 5
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] User:Maelgwnbot 5
tasks • contribs • count • sul • logs • page moves • block user • block log • flag log • flag bot
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.
[edit] 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. {{sprotected}} and {{sprot}}) — 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)
- 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)
- 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.