Commons:Bots/Work requests

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Shortcut: COM:BR · COM:BWR

Bot policy and list · Requests to operate a bot · Requests for work to be done by a bot · Changes to allow localization  · Requests for batch uploads

Filing cabinet icon.svg
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 1 day.

Redundant word in main namespace[edit]

The word "File" or "Image" found in galleries in main namespace, Is it possible delete them by a bot (in all pages using AWB)?Thank you --ديفيد عادل وهبة خليل 2 (talk) 11:22, 7 November 2015 (UTC)

@ديفيد عادل وهبة خليل 2: Please elaborate why this is needed. --Steinsplitter (talk) 11:25, 7 November 2015 (UTC)
@Steinsplitter:The use of "<gallery></gallery>" enriches for this word.Thank you --ديفيد عادل وهبة خليل 2 (talk) 11:31, 7 November 2015 (UTC)
I don't understand, sorry. --Leyo 01:20, 21 November 2015 (UTC)

Find files with missing uploader category[edit]

Most of my uploads are in the subcategories of Category:Files by User:Nyttend, but some presumably aren't. Could someone write a bot that would go through all of my uploads, check each image, and log all the files that aren't in one of my user categories? Nyttend (talk) 14:19, 20 November 2015 (UTC)

You can try to use en:WP:AWB for that. --Steinsplitter (talk) 15:02, 20 November 2015 (UTC)
You may start with insource:/Nyttend/ -insource:/by User\:Nyttend/ and play around a little. --Leyo 18:27, 20 November 2015 (UTC)
Nyttend you edited 107k files and your role (creator vs. approved) is not always obvious. For example User:Nyttend/uploads has files that link to your user page on commons but are not in the subcategories of Category:Files by User:Nyttend. Those you might want to categorize using VisualFileChanges. However many of your files link to en:User:Nyttend instead of User:Nyttend. Some are uploads by other people of derivative files based on your uploads or even transfers from wikipadia. I do not know good way of capturing a list of your uploads and your best bet if you know SQL might be to use to create a database query. --Jarekt (talk) 19:07, 20 November 2015 (UTC)
I was imagining the following process: (1) Bot gets the complete list of filespace pages that I created: it gets the pages appearing on this page, clicks "older", and keeps going until it gets to the first file that I uploaded. (2) Bot opens one page. (3) Bot checks to see whether this page is a redirect. If so, do nothing and go to the next page; if so, (4) Bot checks to see whether file is in one of my user categories. If so, do nothing and go to the next page; if not, log the page and go to the next page. Note Of course I understand that this is a big process and that it's likely to take quite a while of computing time to perform. I assume that I'll still be active at Commons six months from now, and if it takes that long to perform, that's fine with me. Nyttend (talk) 01:07, 21 November 2015 (UTC)
Such a work load for user categories? Sorry, but there are many more important tasks around. Just go with the search link above. I don't see a reason why you wouldn't be able to do it yourself. --Leyo 01:18, 21 November 2015 (UTC)
Such a work load for doing it myself, and let me suggest that we don't have a strict limit on the number of tasks that can be run. I've uploaded a lot of images that aren't by me, so my username won't appear on the page and won't otherwise be searchable. If you don't feel like helping me, go away and don't waste my time. Nyttend (talk) 03:54, 21 November 2015 (UTC)
I spent some time to come up with my initial suggestion. You have not even bothered to respond to it. --Leyo 10:33, 21 November 2015 (UTC)
Hi @Nyttend: "go away and don't waste my time" - Sorry - but this reply is imho a bit rude and not collegial. Here on commons we are a big family and always friendly to each other :-) <3. --Steinsplitter (talk) 10:48, 21 November 2015 (UTC)
quarry:query/6176 might work --Zhuyifei1999 (talk) 05:48, 21 November 2015 (UTC)

Converting HTML to wiki markup[edit]

There are many file description pages where HTML markup is used for external links, see insource:/\<a href=\"http/. It would be great if standard cases (example) could be converted to wikitext by a bot. Unless they are in inside of a nowiki tag, of course. --Leyo 16:07, 21 November 2015 (UTC)

@Leyo: At a glance, a number of those fall in the "Original upload log" sections, which we'd probably not want to change (I believe). In its simplest form, however, would converting <a href="(href)">(content)</a> to [(href) (content)] be sufficient, simply discarding any other attributes of the tag? Also, only in the event that (href) is http://(content), simply replace <a href="(href)">(content)</a> with (href), as in Special:Diff/175415782?  Hazard SJ  20:19, 26 November 2015 (UTC)
The “Original upload log” section are usually inside of a nowiki tag. As stated above, they do not need to be touched.
Yes, that's what I was thinking of. I guess you were referring to Special:Diff/175415782/next. It looks good IMHO. --Leyo 22:08, 26 November 2015 (UTC)
@Leyo: Yes, that's the diff. However, not all of them are (at a glance at a random one, see the resolution column in the table on File:Shaun Carney rushing.jpg).  Hazard SJ  04:20, 27 November 2015 (UTC)
True. Could you omit anything that is in “Original upload log” sections? Or, alternatively, only consider anything that is inside of the Information template? --Leyo 14:35, 27 November 2015 (UTC)

Change of a category[edit]

I want to change the categories of the files which are here Category:SVG flags of Castile and Leon. The work would be to change Category:SVG flags of Castile and Leon in Category:SVG flags of Castile and León (there is an ortographic mistake). Telle me if I could do the work with the JavaScript gadget Cat-a-lot. --Berdea (talk) 11:46, 28 November 2015 (UTC)