Wikipedia:Bots/Requests for approval/People-n-photo-bot
- 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
Approved.
Operator: Traveler100 (talk · contribs)
Automatic or Manually assisted: Automatic
Programming language(s): AutoWikiBrowser
Source code available:
Function overview: Move article talk pages currently in Category:Wikipedia requested photographs of people into sub-categories so that the number of articles in a specific category are of a manageable number. Extension of User:People-photo-bot, using category of article rather than template in talk to identify subject area.
Links to relevant discussions (where appropriate):
- Wikipedia talk:WikiProject Images and Media#photo requests
- Wikipedia talk:WikiProject Biography#photo requests
Edit period(s): Periodically
Estimated number of pages affected: In the end over 20000 talk pages but over a long period. Estimate a few 100 a week.
Exclusion compliant (Y/N):
Already has a bot flag (Y/N):
Function details:
- Go through article talk pages of articles of:-
- categories under Category:People by occupation, Category:People by association and similar categories
- If article talk page contains a WPBiography template with need-photo=yes parameter
- removed yes from need-photo parameter in WPBiography template
- If reqphoto template exists on the talk page
- add to reqphoto template category based on the main search category.
- if reqphoto contains parameter people or sportpeople
- remove parameter
- else
- add reqphoto template with category based on the main search category.
Discussion
edit- Can we get back to the standard of naming bots of after their owner as recommended in the Bot Policy? Peachey88 (T · C) 10:58, 19 August 2010 (UTC)[reply]
- Actually the bot policy says to either name after the owner or that the name should relate to the task - Kingpin13 (talk) 13:27, 19 August 2010 (UTC)[reply]
- As long as it is clear it is a bot and doesn't have special authority, I'm ok with it. MBisanz talk 05:53, 23 August 2010 (UTC)[reply]
- Any news? MBisanz talk 05:39, 5 September 2010 (UTC)[reply]
- {{BAG assistance needed}} bot has not special authority. Any chance of having this approved?--Traveler100 (talk) 07:04, 18 September 2010 (UTC)[reply]
- Why not go directly through the Category:Wikipedia requested photographs of people to get the pages which need to be moved to more specific categories, rather than Category:People by occupation, Category:People by association etc.? Otherwise you'll be running through a lot of pages which already have photos. I think you'll get less pages you can't do anything with if you use Category:Wikipedia requested photographs of people - Kingpin13 (talk) 09:44, 18 September 2010 (UTC)[reply]
- I cannot see a way (at least using AWB) to run through a list of talk pages and check what category is on the article page. --Traveler100 (talk) 10:44, 18 September 2010 (UTC)[reply]
- Hmmm... there should be a more efficient way of doing this, let's see. If you're going through each sub-category of say... People by occupation. Then for each subcategory, for example, activists, it should be possible to fill a list from that category, remove non mainspace, convert to talk pages, then save that list to your computer as a text file. Then fill a list from Category:Wikipedia requested photographs of people (since this takes a while, it would be worth saving this list too, so you can just load from text file, rather than get from category, but be sure to keep it up to date). Then select "filter", uncheck all the check boxes (except remove duplicate and sort alphabetically), then in the set operations group box, select intersection, open file, navigate to the saved list of activists, press apply, and like magic, you have the pages which are both in the activists category and the needs photo category, in this case just Talk:Mamoni Raisom Goswami. Would that work? - Kingpin13 (talk) 11:02, 18 September 2010 (UTC)[reply]
- I cannot see a way (at least using AWB) to run through a list of talk pages and check what category is on the article page. --Traveler100 (talk) 10:44, 18 September 2010 (UTC)[reply]
- Any news? MBisanz talk 05:39, 5 September 2010 (UTC)[reply]
- Brilliant, thank you very much, always good to learn something new. I will use this method, it make the script easier and the runs faster.--Traveler100 (talk) 11:58, 18 September 2010 (UTC)[reply]
- Great, you ready to do a quick trial in bot mode? I'll add the bot to AWB/CP in a second if so. Also, AWB should have an option to be exclusion compliant (in Options>Preferences>Site), by default it doesn't ignore {{bots}}, you haven't disabled this have you? And just so you know, at the rate of 100 edits a week, it'll take more than 3 years to do 20,000 edits :D. - Kingpin13 (talk) 12:04, 18 September 2010 (UTC)[reply]
- Ready to go (or at least later today or tomorrow). I have tested using the source from User:People-photo-bot, basically removed all but the appropriate subject and remove the test for the template. Will try an do more than 100 a week after trail. --Traveler100 (talk) 12:27, 18 September 2010 (UTC)[reply]
Approved for trial (~40 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Okay, let us know once the trial is complete - Kingpin13 (talk) 12:31, 18 September 2010 (UTC)[reply]
- Ready to go (or at least later today or tomorrow). I have tested using the source from User:People-photo-bot, basically removed all but the appropriate subject and remove the test for the template. Will try an do more than 100 a week after trail. --Traveler100 (talk) 12:27, 18 September 2010 (UTC)[reply]
- Great, you ready to do a quick trial in bot mode? I'll add the bot to AWB/CP in a second if so. Also, AWB should have an option to be exclusion compliant (in Options>Preferences>Site), by default it doesn't ignore {{bots}}, you haven't disabled this have you? And just so you know, at the rate of 100 edits a week, it'll take more than 3 years to do 20,000 edits :D. - Kingpin13 (talk) 12:04, 18 September 2010 (UTC)[reply]
Trial complete. --Traveler100 (talk) 11:31, 25 September 2010 (UTC)[reply]
- Looks pretty good. One problem I have is the placement of the template, most talk page tag-adding bots generally like to put the blp template at the top, but I notice this bot is often placing the needsphoto template above this. Also, here the template was placed with-in the WikiProjectBannerShell, which should only contain wikiproject tags. If you want some help with the placement of talk page tags in AWB, I believe xeno would be able to walk you through it - Kingpin13 (talk) 16:49, 2 October 2010 (UTC)[reply]
- The way it works is that there is a reqphoto template is edits the content but if there is no reqphoto it then has to create one. This is does by placing it before {{WPBio . Basically I have not found a stable method of placing it anywhere else. --Traveler100 (talk) 18:17, 2 October 2010 (UTC)[reply]
- Hmm, well I've asked xeno to take a look into getting a stable way to move the template out of the way :) (it involves RegEx, dunno if you have any experience with these?) - Kingpin13 (talk) 18:37, 2 October 2010 (UTC)[reply]
- Was a little tricky to work out but I think I have solve it now for banner shell and placing after WPBio. Will test it on User:People-photo-bot for a few runs to see it works on all (well most) cases.--Traveler100 (talk) 14:48, 3 October 2010 (UTC)[reply]
- Test show that is works in most cases. But there are a few exceptions where it will not fix existing incorrectly ordered pages. --Traveler100 (talk) 07:29, 9 October 2010 (UTC)[reply]
- Hmm, well I've asked xeno to take a look into getting a stable way to move the template out of the way :) (it involves RegEx, dunno if you have any experience with these?) - Kingpin13 (talk) 18:37, 2 October 2010 (UTC)[reply]
- The way it works is that there is a reqphoto template is edits the content but if there is no reqphoto it then has to create one. This is does by placing it before {{WPBio . Basically I have not found a stable method of placing it anywhere else. --Traveler100 (talk) 18:17, 2 October 2010 (UTC)[reply]
Approved. Seems to be working well. Any other issues can be fixed in the job - Kingpin13 (talk) 10:35, 9 October 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.