Operator: MGA73
Automatic or Manually assisted: Automatic
Programming language(s): Python - pywikipedia (commonscat.py)
Source code available: Standard pywikipedia
Function overview: Add ((Commons category)) to categories
Edit period(s): Every run will take perhaps a week and my plan was to run a few times each year.
Estimated number of pages affected: Some thousands in category namespace.
Exclusion compliant (Y/N): ? Should not be relevant
Already has a bot flag (Y/N): Yes
Function details: Tags files with ((Commons category)) template based on interwiki links. The bot follows interwiki links if any and checkes if a Commons category is added to one of the foreign articles. If one is there it checks if the link points to an excisting category on Commons and if yes it adds it to the category on en-wiki.
It works a bit like interwiki bots so the bot need good Commons category's and good interwikis to work. If some Commons category links are not found ok then the solution is the same as with interwiki links to correct the Commons category or remove it globally.
Commons category does not only work as as a sort of interwiki link to Commons. It also help bots find categories to add on files when moved to Commons or to find/improve categories for files allready uploaded to Commons. So adding Commons category would help both on Wikipedia and Commons. --MGA73 (talk) 21:47, 25 January 2012 (UTC)[reply]
How do you plan on dealing with incorrect interwiki links? Josh Parris 13:10, 27 January 2012 (UTC)[reply]
What will happen when multiple wikis point at different commons categories? Josh Parris 13:10, 27 January 2012 (UTC)[reply]
I see that commonscat.py was last updated in 2010; have any of the supported templates changed since then? Josh Parris 13:10, 27 January 2012 (UTC)[reply]
Will you be using the -always parameter? Josh Parris 13:10, 27 January 2012 (UTC)[reply]
There's a TODO list in commonscat.py - will you be doing any of the TODOs? Josh Parris 13:10, 27 January 2012 (UTC)[reply]
((BAG assistance needed)) Whats the status? --MGA73 (talk) 14:18, 4 February 2012 (UTC)[reply]
I made a list of the 2 main templates and the redirects they have
If we change 800 pages we can orphan and delete 14 redirects. I think that it would be a big improvement if we do that because it makes it easier to maintain the bot and when pages are copied to other wikis they won't have "red links" or need to create a lot of templates/redirects that is really not needed.
Could a permission to orphan 800 articles/categories be included in this request or is a new request better? Or if someone allready have a permission they are most welcome to do the job.
As for the 2 redirects that is most used I think we should leave them for now. --MGA73 (talk) 17:32, 29 January 2012 (UTC)[reply]
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. for orphaning the template redirect and then Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. towards the original bot task. MBisanz talk 15:17, 6 February 2012 (UTC)[reply]
Trial complete. Both tests done. --MGA73 (talk) 21:40, 6 February 2012 (UTC)[reply]
During the test I noticed that there is some cases where there is a ((Commons|Category:Whatever))
that gives the same result on the page as ((Commons category|Whatever))
. However, the first version does not work as good as the second one. Examples: The bot will not check and correct the link if it is wrong and the bots that uses ((Commons category)) to categorize images on Commons will not get good results. So to get maximum benefits we should change from version 1 to version 2. I have no idea how many edits it will give but probably not more than a few hundred or perhaps a few thousand. Should I also do a test of that? --MGA73 (talk) 10:21, 7 February 2012 (UTC)[reply]
Trial complete. for the latest task also. And thank you :-) --MGA73 (talk) 20:43, 7 February 2012 (UTC)[reply]
Do you have a link to the edits? Josh Parris 12:13, 8 February 2012 (UTC)[reply]
Links: