Commons:Bots/Work requests

Une page de Wikimedia Commons, la médiathèque libre.
Aller à : navigation, rechercher

Raccourci : COM:BR · COM:BWR

Règles d’utilisation et liste des bots · Demande d’autorisation · Requête aux bots · Changements pour permettre la localisation  · Requêtes de versement en masse

Filing cabinet icon.svg
SpBot archive toutes les sections marquées avec {{Section resolved|1=~~~~}} depuis 1 jour.

Redundant word in main namespace[modifier]

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 (discussion) 11:22, 7 November 2015 (UTC)

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

Find files with missing uploader category[modifier]

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 (discussion) 14:19, 20 November 2015 (UTC)

You can try to use en:WP:AWB for that. --Steinsplitter (discussion) 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 (discussion) 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 (discussion) 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 (discussion) 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 (discussion) 10:48, 21 November 2015 (UTC)
quarry:query/6176 might work --Zhuyifei1999 (discussion) 05:48, 21 November 2015 (UTC)

Converting HTML to wiki markup[modifier]

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)
Didn't my bot do this? Looks like it is blocked. --McZusatz (discussion) 15:26, 29 November 2015 (UTC)
YaCBot is indeed blocked, but the reason is unclear. This fix could have been done before the block. This one, however, is a file uploaded later. --Leyo 17:02, 29 November 2015 (UTC)
From the archives, it looks like Krd documented his intention to block the bot in the middle of this this discussion at COM:AN with a note that "McZusatz is free to unblock the bot as soon as the affected job has been stopped." —RP88 (talk) 17:18, 29 November 2015 (UTC)

Change of a category[modifier]

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 (discussion) 11:46, 28 November 2015 (UTC)

Already ✓ Fait by someone. --Jarekt (discussion) 04:34, 30 November 2015 (UTC)