Wikipedia:Bots/Requests for approval/Mobius Bot 2
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Request Expired.
Operator: Mobius Clock (talk · contribs)
Automatic or Manually assisted: Automatic
Programming language(s): Python
Source code available: 'Coming soon', I just want to tidy it up and optimize here new code
Function overview: Tagging categories for CfD (specifically in relation to this BOTREQ)
Links to relevant discussions (where appropriate): See BOTREQ above
Edit period(s): As-and-when-required, apparently there are quite a lot of these categories to do
Estimated number of pages affected: several hundred in Category NS
Exclusion compliant (Y/N): Not relevant
Already has a bot flag (Y/N): Y
Function details: As per the BOTREQ, the bot would add to all nominated categories the following:
{{subst:Cfr|<ProposedName>|<Nomination name>}}
Where ProposedName is in the form 'Settlements established in <year>' or 'Settlements in <place>', and the Nomination name is the CfD heading for the current batch. ProposedName is obtained via a regex sub applied to the current category name:
(?:Cities(?:[,] towns and villages|[ ]and towns)|Settlements)( established)? in (.*?)$; replace with 'Populated places\1 in \2'
Discussion
[edit]So are you looking for approval for all CfD tagging? Or just for this case? How do you get the list of pages to tag? - Kingpin13 (talk) 22:19, 5 May 2010 (UTC)[reply]
- This would be a big help. There are many hunderds of catagoies than need tagging to be moved, many listed at User:Carlaude/Rulers. See also the consensus here: Wikipedia talk:Categorization/Categorising human settlements.
- BTW, the "<Nomination name>" can be anything, but sould be all the same for related catagoies, e.g. "More settlements", "Former settlements", etc. şṗøʀĸɕäɾłäů∂ɛ:τᴀʟĸ 22:23, 5 May 2010 (UTC)[reply]
- Mobius indicated here that tagging other categories would require only a trivial change from a programming standpoint, so I ask that approval be given for all CfD tagging. Having a bot to tag large numbers of pages for group nominations would be extremely useful (for instance, I have the same tagging request for the 700+ subcategories of Category:Image-Class articles), and the process for tagging categories for group noms is essentially the same regardless of the categories involved. -- Black Falcon (talk) 22:40, 5 May 2010 (UTC)[reply]
- Judging from the amount of work there seems to be to do, I would like to request approval for all CfD tagging, which would involve using 98% identical code between runs. As for the list of pages to tag, I can either get the nomination list and convert to a bot-readable text file, or have people provide me with such a file (as in this case). - Mobius Clock 22:54, 5 May 2010 (UTC)[reply]
- As we have done in this case, we typically do trial CFDs before tagging all the categories in a group. şṗøʀĸɕäɾłäů∂ɛ:τᴀʟĸ 01:45, 6 May 2010 (UTC)[reply]
- Mobius indicated here that tagging other categories would require only a trivial change from a programming standpoint, so I ask that approval be given for all CfD tagging. Having a bot to tag large numbers of pages for group nominations would be extremely useful (for instance, I have the same tagging request for the 700+ subcategories of Category:Image-Class articles), and the process for tagging categories for group noms is essentially the same regardless of the categories involved. -- Black Falcon (talk) 22:40, 5 May 2010 (UTC)[reply]
Hmm, looks like these tags have already been done. Is there another CfD we can do a trial on? Also, does your code check if the category is already tagged before adding a tag to it? - Kingpin13 (talk) 16:28, 7 May 2010 (UTC)[reply]
- I'm not sure about another CfD, we may have to wait for one to come up! As for checking whether a cat is already tagged, the bulk of the code only executes if this evaluates to true: - Mobius Clock 16:33, 7 May 2010 (UTC)[reply]
if (page.get().find('Cfr full') == -1): #In other words, only edit if we can't find 'Cfr full' on the page
- I sure that most of the items at User:Carlaude/Rulers are not tagged. Last I looked, not even those at the start were tagged. Were you looking here instead? şṗøʀĸɕäɾłäů∂ɛ:τᴀʟĸ 18:25, 7 May 2010 (UTC)[reply]
- Mmm, yeah, I was looking at the second one, which was the specific reason this BRfA was started (afaik), but the bot is also wanting approval to do other CfD tagging as well. User:Carlaude/Rulers doesn't seem to load for me, might just be because it's too long. Not sure if this bot is actually doing what User:Carlaude/Rulers is listing (since I can't see it). Mobius, is it possible to find something to do some trial edits on? We can always do a mock up in userspace if it comes to it. Best, - Kingpin13 (talk) 19:17, 7 May 2010 (UTC)[reply]
- I can offer a list of about 150 categories for speedy renaming (in groups of 47, 65 and 39 categories), but the code to add the tags would be slightly different:
{{subst:cfr-speedy|<ProposedName>}}
- If that would be a problem, I can try to find another group of categories which would need to be tagged with the regular/standard CfD renaming template. -- Black Falcon (talk) 04:17, 8 May 2010 (UTC)[reply]
- The code I've written is really for the settlement categories, but I'm sure it wouldn't take too long to adapt it if you'd like to do those ones instead, although that might constitute a different task. Personally I'd rather stick to the original one. Carlaude, would it be possible to split User:Carlaude/Rulers into smaller sets, it won't load for me either. - Mobius Clock 09:45, 8 May 2010 (UTC)[reply]
- I have been trying to do that-- but have trouble loading or editing that page myself. I will create two new pages with half the data in each. They are done and ready once User:Carlaude/Rulers2 and User:Carlaude/Rulers3 are not redlinks. şṗøʀĸɕäɾłäů∂ɛ:τᴀʟĸ 15:37, 8 May 2010 (UTC)[reply]
- No. 2 won't load for me, but 3 works fine, and once I've tweaked the regex slightly to take into account the various possible permutations of 'Settlements in Foo' I'm ready to go, pending trial approval and a relevant CfD! - Mobius Clock 19:48, 8 May 2010 (UTC)[reply]
- 'K. Now they are split three-ways. User:Carlaude/Rulers, User:Carlaude/Rulers2, and User:Carlaude/Rulers3. şṗøʀĸɕäɾłäů∂ɛ:τᴀʟĸ 20:34, 8 May 2010 (UTC)[reply]
- OK, code is updated and can handle all the permutations given in the list. I know it's a kludge, but it gets the job done! - Mobius Clock 21:52, 8 May 2010 (UTC)[reply]
- Any news on whether a CfD for some of the other cats is in the works? - Mobius Clock 08:56, 13 May 2010 (UTC)[reply]
- OK, code is updated and can handle all the permutations given in the list. I know it's a kludge, but it gets the job done! - Mobius Clock 21:52, 8 May 2010 (UTC)[reply]
- I can offer a list of about 150 categories for speedy renaming (in groups of 47, 65 and 39 categories), but the code to add the tags would be slightly different:
- Mmm, yeah, I was looking at the second one, which was the specific reason this BRfA was started (afaik), but the bot is also wanting approval to do other CfD tagging as well. User:Carlaude/Rulers doesn't seem to load for me, might just be because it's too long. Not sure if this bot is actually doing what User:Carlaude/Rulers is listing (since I can't see it). Mobius, is it possible to find something to do some trial edits on? We can always do a mock up in userspace if it comes to it. Best, - Kingpin13 (talk) 19:17, 7 May 2010 (UTC)[reply]
- There is this one, but I have been waiting on approval for this bot. Why is it taking so long? şṗøʀĸɕäɾłäů∂ɛ:τᴀʟĸ 22:31, 13 May 2010 (UTC)[reply]
- I suppose the BAG were waiting for an appropriate CfD to be posted here so that a trial can be authorized. I can't run a trial without categories to tag ^_^. Now that we have one it shouldn't take too long. - Mobius Clock 09:43, 14 May 2010 (UTC)[reply]
Trial
[edit]- Yup, sorry for the time :/. Looks like those ones have already been tagged again. Approved for trial (50 or so edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. as soon as anything comes up, if possible run it as manually-assisted for the first few. - Kingpin13 (talk) 10:12, 15 May 2010 (UTC)[reply]
- Thanks, feel free to start a CfD, and I'll be ready and waiting to tag the categories! - Mobius Clock 18:58, 15 May 2010 (UTC)[reply]
- Yup, sorry for the time :/. Looks like those ones have already been tagged again. Approved for trial (50 or so edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. as soon as anything comes up, if possible run it as manually-assisted for the first few. - Kingpin13 (talk) 10:12, 15 May 2010 (UTC)[reply]
- I began a CfD for this here: Wikipedia:Categories for discussion/Log/2010 May 15#More settlements. şṗøʀĸɕäɾłäů∂ɛ:τᴀʟĸ 01:37, 16 May 2010 (UTC)[reply]
- {{BotTrialComplete}} I tagged all the pages in the given nomination, apologies for the borked edit summary in the first few edits. Won't happen again. - Mobius Clock 17:28, 16 May 2010 (UTC)[reply]
- I have placed all remaining nominations from the lists from User:Carlaude/Rulers, User:Carlaude/Rulers2, and User:Carlaude/Rulers3 at Wikipedia:Categories for discussion/Log/2010 May 17#Many more settlements — except for the "port settlements" at the very end. Feel free to delete from the lists at User:Carlaude/Rulers, User:Carlaude/Rulers2, and User:Carlaude/Rulers3 as you use them. şṗøʀĸɕäɾłäů∂ɛ:τᴀʟĸ 05:08, 17 May 2010 (UTC)[reply]
Someone noticed that the date for the link was wrong. Why was the date wrong? I presume you'll be repairing the borked edits? Josh Parris 07:18, 18 May 2010 (UTC)[reply]
- *facepalm* The date was wrong because I had (wrongly) assumed that the bot would tag the pages on the same day as they were listed on CfD (the wrapper template substs in the current date). I've changed the code to add the inner 'Cfd full' template with a specified date to stop such things from happening again. The previously borked edits are currently being unborked. Whoops! - Mobius Clock 13:55, 18 May 2010 (UTC)[reply]
2nd Trial
[edit]Approved for trial (20 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. let's give that another go; this time it will work for sure! Josh Parris 06:50, 19 May 2010 (UTC)[reply]
- Yes, I saw this. Vegaswikian seems to have marked all the categories by hand under "c. 150 cities, towns and villages by country categories" but all the many others at Wikipedia:Categories for discussion/Log/2010 May 17#Many more settlements still need marking. Let me know if you need more info, etc. şṗøʀĸɕäɾłäů∂ɛ:τᴀʟĸ 16:54, 21 May 2010 (UTC)[reply]
- Is the tagging of the May 17 nomination going to happen? The nomination is now past its close date, and I'm wondering if the whole thing needs to be picked up and restarted as a new nomination because none of the categories have been tagged. Some guidance would be appreciated.--Mike Selinker (talk) 10:15, 25 May 2010 (UTC)[reply]
A user has requested the attention of the operator. Once the operator has seen this message and replied, please deactivate this tag. (user notified) What's the state of play here? Josh Parris 11:25, 30 May 2010 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.