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 Approved.
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
[edit]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)[reply]
- 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)[reply]
- 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)[reply]
- 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)[reply]
- OK, so if it is semi-protected, and untagged, you will ignore it? — xaosflux Talk 06:18, 23 December 2007 (UTC)[reply]
- Yes -- maelgwn - talk 07:57, 23 December 2007 (UTC)[reply]
- Approved for trial (35 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. 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)[reply]
- 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)[reply]
- Oh why not? It looks good, with no errors. Good luck. Approved. Soxred93 has a boring sig 16:03, 25 December 2007 (UTC)[reply]
- 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)[reply]
- Approved for trial (35 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. 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)[reply]
- Yes -- maelgwn - talk 07:57, 23 December 2007 (UTC)[reply]
- 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)[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.