Commons:Bots/Work requests
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 |
|
This is a page for requesting work to be done by a bot. This is an appropriate place to simply put ideas for bots. However be aware of various tools available to all users which can be used to accomplish the work without the need for a bot:
|
![]() |
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 5 days. |
Display issues of language templates [edit]
There are two kinds of display issues of language templates:
- The text in parameter 1 is not displayed due to a
=
in the text. The1=
in the beginning that avoids this problem is missing. Examples: Special:Permalink/28178560, Special:Permalink/69118001, Special:Permalink/24951271 - If there are a certain number of language templates that are used as
{{en}}Some sample text
, the language select feature effects all texts to be displayed after each other (with the language names in a block above). Examples: Special:Permalink/42105123, Special:Permalink/31255164, Special:Permalink/72387078
We have Category:Template:De with no text displayed and Category:Template:nl with no text displayed where pages with these problems for {{de}} and {{nl}} are in. The vast majority of cases has already been fixed for the former category. A large fraction of pages in these categories do not have one of the two problems described above, since there are not (yet) enough language templates to trigger the language select feature.
I think that there should we maintenance categories for all languages templates, but fixing would not be feasible without getting assistance by bots. The main task would be to move the text after a language template inside it:
{{en}}Some sample text
{{en|Some sample text}}
or
{{en}}Some sample text with a = in it
{{en|1=Some sample text with a = in it}}
--Leyo 10:19, 22 March 2013 (UTC)
- Sounds like a good idea. I will look into it. In the mean time I created {{Language templates with no text displayed category header}} to be used in subcategories of Category:Language templates with no text displayed. --Jarekt (talk) 14:51, 22 March 2013 (UTC)
- Thanks. I actually had the same idea concerning the template. ;-) --Leyo 14:57, 22 March 2013 (UTC)
- I was thinking more about it and many language templates have very few files using them. There is probably no need for maintenance categories for them. May be we should use some threshold and only do the category for templates with more than 1000 (?) transclusions. --Jarekt (talk) 16:49, 22 March 2013 (UTC)
- Do you have a good method for finding errors for such templates without a maintenance category? --Leyo 17:10, 22 March 2013 (UTC)
- I was thinking more about it and many language templates have very few files using them. There is probably no need for maintenance categories for them. May be we should use some threshold and only do the category for templates with more than 1000 (?) transclusions. --Jarekt (talk) 16:49, 22 March 2013 (UTC)
- Thanks. I actually had the same idea concerning the template. ;-) --Leyo 14:57, 22 March 2013 (UTC)
- An alternative is to change with a bot
{{nl}}
to{{nl| }}
. This removes those images from the category. Fix the rest manually. Or fix the rest in the category with a bot as well:{{nl|xxxx}}
to{{nl|1=xxxx}}
. HenkvD (talk) 19:36, 22 March 2013 (UTC)- Your first suggestion would not solve the problem #2 (another example). It would just “hide” it. --Leyo 21:00, 22 March 2013 (UTC)
- That is right, but I think it is a quick fix, and as a result all texts are shown (maybe not on better place). Trying to replace
{{en}}Some sample text
to{{en|Some sample text}}
might be a difficult progamming. For instance this where the{{nl}}
and{{en}}
contains a full information template. HenkvD (talk) 13:13, 23 March 2013 (UTC)
- That is right, but I think it is a quick fix, and as a result all texts are shown (maybe not on better place). Trying to replace
- Your first suggestion would not solve the problem #2 (another example). It would just “hide” it. --Leyo 21:00, 22 March 2013 (UTC)
Done I took a little different approach and added this to {{description}} template which is called by all language templates. So now all the problematic images will be added to Category:Language templates with no text displayed, instead to individual categories for each language. --Jarekt (talk) 01:53, 24 March 2013 (UTC)
- I also run a bot run (see here) adding "1=" to language templates with "=" in the text, and replacing blocks of {{xx}}text1{{yy}}text2 with {{xx|text1}}{{yy|text2}}. --Jarekt (talk) 19:30, 24 March 2013 (UTC)
- Thank you for your work. I am fine with your modification to {{description}}, but I would not like to miss the subcategory at least for {{de}}. Once the legacy cases are gone, it will provide an easy option to check for problems in files transferred from de.wikipedia to Commons. Furthermore, subcategories tells us more precisely where the error is located.
- It seems that the script of your bot is not yet perfect: see e.g. [1], [2], [3], [4] or other cases. --Leyo 23:39, 24 March 2013 (UTC)
- I do not think a perfect one is possible. I was aiming for fixing most files I can, with least chances of breaking things. So in many cases the bot did not finished the job. The rest will likely have to be done in semi-automatic mode. I do not mind leaving Category:Template:De with no text displayed or other specific language categories behind, but I did not wanted 200 of those categories with some files in several dozen of those. --Jarekt (talk) 03:45, 25 March 2013 (UTC)
One possibility to get rid of a probably dozens of cases would be to remove empty templates, i.e. with no text inside or behind, by bot. --Leyo 07:54, 3 April 2013 (UTC)
- I run something along those lines, so all cases where that was the only issue should be done. However I was trying to be conservative about how to detect text or behind language template and might have missed some. --Jarekt (talk) 11:35, 3 April 2013 (UTC)
{{Picture of the day}} is also a possible cause of the problem, if a language subpage does not contain a description. Example: Template:Potd/2009-02-13 (pt). BTW: It says
Description missing! Tag this page with {{speedydelete}} if it was created by mistake.
, but the page is not put into a maintenance category. Should this be changed? --Leyo 16:29, 5 April 2013 (UTC)
- The image was added to the Category:Language templates with no text displayed maintenance category, and template was added to Category:Potd templates missing descriptions. I think that is correct. The pages in Category:Potd templates missing descriptions should probably be deleted. --Jarekt (talk) 14:47, 10 April 2013 (UTC)
I was working on clearing Category:Language templates with no text displayed, help would be appreciated, since many types of issues are unique enough to write a bot. Another problem is that since this maintenance category was added to a template used on a LOT of pages, the pages were not refreshed afterwards so images in that category are only added after some other event causes the refresh. Past experience with other similar categories and templates suggests that that process can go on for months, so we will not see all the files that should be in Category:Language templates with no text displayed for a while. --Jarekt (talk) 14:55, 10 April 2013 (UTC)
- I know. Hence, I am constantly cleaning out Category:Template:De with no text displayed and it is constantly being refilled… --Leyo 14:35, 11 April 2013 (UTC)
I fixed hundreds of category pages with empty language templates created or edited by User:Bernd Schwabe in Hannover.
Could someone please touch all edits to file pages by User:Chumwa? Several of them are not in the maintenance category since they have not been refreshed recently. --Leyo 17:52, 13 April 2013 (UTC)
The maintenance category is again really full. :-( Perhaps, the implementation of Lua (TemplatePar) would help by allowing to distinguish between cases like {{en}}
and {{en|Sentence containing a = in the text}}
. --Leyo 17:30, 29 April 2013 (UTC)
- We could do that but I am not sure how that would be helpful. --Jarekt (talk) 17:51, 30 April 2013 (UTC)
- (i) Prioritizing the latter case over the former, (ii) facilitating bot runs.
- I guess Lua shouldn't be tested on e.g. Template:en, but rather on a template with less transclusions. --Leyo 17:59, 30 April 2013 (UTC)
Working out the "largest" user pages [edit]
Hi,
Faebot recently churned through the list of all active users (the API gives those active in the last 30 days), worked out which had a user page, and returned the length. For example my user page is shown by this call to have a length of 5,702 bytes. So I have an interesting list and can identify the top 10 or top 100 user pages for active users by "length".
Now, here's my problem. I was actually trying to find out which user pages are the "largest" in terms of the size of page the browser has to download. This would include transcluded images, in particular it would highlight those user pages being used for very large galleries and might be so large as to be unusable or unreadable in many browsers or platforms.
Does anyone have a suggestion on how to go about creating such a list of user pages by final download size, possibly being restricted to a short-list similar to the one I already have generated by length? Thanks --Fæ (talk) 10:28, 10 April 2013 (UTC)
- I can not think of any easy solutions, but we could write a simple code to download all user pages and count number of characters in HTML code. --Jarekt (talk) 12:01, 12 April 2013 (UTC)
- Why don't you try to simply sum all images' size to the page size? Using
images
as a generator forimageinfo
: for example, this query gets the size for all the first 500 images included in my userpage. --Ricordisamoa 00:24, 12 May 2013 (UTC)
Broken file redirects [edit]
Can a bot be made to remove on a regular basis the redirects to deleted files. The Commonsdelinker does not handle it properly, and there is little hope to have its code corrected any-time soon. Example: File:Kaliningrad_(2051049698).jpg. --Foroa (talk) 08:47, 12 April 2013 (UTC)
- I am not sure about automatic process since most bots do not have administrative rights. I occasionally delete problem files from Commons:Database reports/File description pages without an associated file. It goes quite fast with AWB tool. However automatic recurring process would be preferable. --Jarekt (talk) 11:57, 12 April 2013 (UTC)
- Thank you, there seems to be more File:WWE Championship belts 6.jpg, and some more in Special:UncategorizedFiles. --Foroa (talk) 12:15, 12 April 2013 (UTC)
- Special:UncategorizedFiles is harder to work with since there is no good way to copy the list to AWB and there is more images that are not redirects, so it might be better to delete them when they pop out on Commons:Database reports/File description pages without an associated file list. --Jarekt (talk) 13:20, 12 April 2013 (UTC)
- Thank you, there seems to be more File:WWE Championship belts 6.jpg, and some more in Special:UncategorizedFiles. --Foroa (talk) 12:15, 12 April 2013 (UTC)
- I've recently written some code, letting my bot create a list here. It seems OK so far, so I'll seek approval to let the bot tag the files for deletion rather than list them to be tagged. Hazard-SJ ✈ 00:37, 25 April 2013 (UTC)
Category:Images from the Geograph British Isles project needing categories [edit]
We need to have all the red categories such as Category:Images from the Geograph British Isles project needing categories in grid NZ2073 created in Category:Images from the Geograph British Isles project needing categories. If possible, they should contain a self-deletion template, that tags the category as speedy/empty when empty. It would be great if those categories could be associated with a county, provided it doesn't needs a lot of efforts. Thank you. --Foroa (talk) 12:22, 19 April 2013 (UTC)
- I don't see what you're talking about. Hazard-SJ ✈ 02:19, 23 April 2013 (UTC)
- These red categories need to be created till the contents is removed and properly categorised. When they are empty, they can be deleted as done in Category:Images from the Geograph British Isles project needing categories in grid SP1579. --Foroa (talk) 09:39, 23 April 2013 (UTC)
For information as it is related to this category creation request, the plan for Faebot is to continue going through every Geograph image and classifying by county name (see User:Faebot/Geograph). This means that for any image with no categories, it will be added to the county (or equivalent administrative region) category so it at least has a starting point and is more likely to be found by the general public user. Thanks --Fæ (talk) 09:49, 23 April 2013 (UTC)
-
-
-
- Ok, in Category:Images from the Geograph British Isles project grid squares by number of files which is not very useful in my opinion as the count decreases permanently; it might be more useful if the content count at creation time is the sort key. On the other hand, you have an idea about the problem with categories that don't autodelete. --Foroa (talk) 16:20, 29 April 2013 (UTC)
-
-
Similar request for [5]]: all red Federațiunea categories should be created in Category:Federațiunea. If possible: sort key:Year, month. --Foroa (talk) 10:09, 7 May 2013 (UTC)
- And similar fro Category:Foae pentru minte. --Foroa (talk) 10:29, 7 May 2013 (UTC)
Links to renamed accounts [edit]
As some people might have noticed, m:Single User Login finalisation announcement will have the result that certain Commons accounts will be renamed automatically at the end of the month and then automatically reassigned to someone else. For example, there might be an account "User:Example" which is automatically renamed to "User:Example~commonswiki" upon which the user name "User:Example" is reassigned to a user on German Wikipedia. Would it be possible (and acceptable) to get a bot which automatically updates all links to the associated user and user talk pages? Otherwise, we will probably end up with lots of links which point to the wrong user because the user name has been reassigned to someone else, and this can be confusing. Or is the Wikimedia Foundation planning to do this for us as part of the renaming task? --Stefan4 (talk) 13:57, 2 May 2013 (UTC)
- I think that would be quite easy on user by user basis, but I am not sure how to do it for all accounts. --Jarekt (talk) 11:31, 7 May 2013 (UTC)
Category:Images from KIT [edit]
Hi, could a bot generate a list of all red categories with a name that starts with "Category:Images from KIT". Depending on the outcome, we will see how we can handle those categories that are occupying wanted categories since several years.
- Same request for categories that start with "Category:Images from US Navy". --Foroa (talk) 07:14, 3 May 2013 (UTC)
Foroa, below are a few sets:
--Jarekt (talk) 12:02, 7 May 2013 (UTC)
Romanian newspapers [edit]
Thank you. Maybe first the simple cases: the tree last items, the Romanian newspapers (as their uploader is blocked): just in their parent category, no key, as it is easier then to move them in year cats using cat-a-lot. --Foroa (talk) 18:13, 8 May 2013 (UTC)
- Thank you for the ones in Category:Foae pentru minte, but there are still many red ones left over. --Foroa (talk) 06:01, 9 May 2013 (UTC)
- It looks as if the added categories have been limited to categories with 4 or more items. You can take them all; one day or another the pour Romanian uploader will be unblocked and those cats will fill up anyway. I noticed that we have no Romanian administrator to discuss the problem, wondering what we could do. --Foroa (talk) 09:29, 9 May 2013 (UTC)
Done now --Jarekt (talk) 00:35, 10 May 2013 (UTC)
- Many thanks, only a bunch left for Category:Foae pentru minte. --Foroa (talk) 06:23, 10 May 2013 (UTC)
- It makes no sense not to create red ones that contain only 4 or less items, we better settle the problem ones and for all, and those categories will not go away. We are getting Special:WantedCategories down to a basic level of 5 items, and hopefully within a few months to a level of 4. --Foroa (talk) 08:17, 10 May 2013 (UTC)
- I think it is done now. I created my original lists based on Special:WantedCategories page which omits categories with not enough files. --Jarekt (talk) 17:18, 10 May 2013 (UTC)
Add category [edit]
I found many files here. These files are Train station signs in Tokyu Corporation.
For example, Hasunuma eki.png is Station sign at Hasunuma station. Eki means station. In this case Hasunuma station and Train station signs in Tokyu corporation will be proper.
Please add categorys like that.--콩가루 (talk) 10:36, 4 May 2013 (UTC)
Cut a couple of words in description [edit]
Hi to everyone who reads this,
I would consider to remove, on all my imported pictures, the mention <small>([[User:Floflo|Floflo]])</small> placed next to my name in the descriptions (see as a example, the last one). I have imported some 1000 pictures, so it'll be very long for me to do it manually. Therefore I wanted to check, before doing it by myself, if it could be a possible mission for a bot? Many thanks, --Floflo (talk) 18:59, 4 May 2013 (UTC)
- I like the hyperlink in the name. Would it be OK to replace "Florian Pépellin (Floflo)" with "Florian Pépellin"? --Jarekt (talk) 13:19, 7 May 2013 (UTC)
- Well, not much because there is no major and very useful information in my user page... Besides that was the reason for which I considered to remove the link...Is a link compulsory? --Floflo (talk) 18:29, 7 May 2013 (UTC)
- It is not and I can remove it, but there will be always link to your page in section "File history". It also helps people verify that stated photographer and the uploader claim to be the same person. Finally your page does have useful information like button to show some other of your uploads or a link to send you an email. --Jarekt (talk) 19:02, 7 May 2013 (UTC)
- The argument about e-mails and my other uploads is interesting. But I'm not sure actually that many people use them (as far as I know for the e-mails, no one received within 7 years..). You're also right about the link in "File History", that's why I thought to remove a reddundant link in the description. I'm nearly sure now that having another link here won't be quite more useful, but you make me doubt! --Floflo (talk) 19:48, 7 May 2013 (UTC)
- It is not and I can remove it, but there will be always link to your page in section "File history". It also helps people verify that stated photographer and the uploader claim to be the same person. Finally your page does have useful information like button to show some other of your uploads or a link to send you an email. --Jarekt (talk) 19:02, 7 May 2013 (UTC)
- Well, not much because there is no major and very useful information in my user page... Besides that was the reason for which I considered to remove the link...Is a link compulsory? --Floflo (talk) 18:29, 7 May 2013 (UTC)
Category addition : USMC files [edit]
Hi, my request is to add a category of Category:PD US Marines if the file is tagged with {{PD US Military}} OR ELSE Category:United States Marine Corps
to all files whose name start with "USMC" in Category:Media needing categories as of 13 December 2012. Those files count more than 4400. This will help me greatly in categorizing files in this category. --Nightingale (talk) 03:06, 7 May 2013 (UTC)
- I think you mean {{PD-USGov-Military}}. Is this sample ok: https://commons.wikimedia.org/w/index.php?title=File%3AUSMC-033110-M-7012H-070.jpg&diff=95775183&oldid=85046112 ? --McZusatz (talk) 14:57, 7 May 2013 (UTC)
- We should probably also change {{PD-USGov-Military}} to {{PD-USGov-Military-Marines}}. --Jarekt (talk) 16:09, 7 May 2013 (UTC)
- Ich kenne mich mit dem US Militär nicht so sonderlich aus, aber nur weil die Marines das Bild veröffentlich haben (was die gemeinten USMC Files waren), muss der Fotgraf kein Marine gewesen sein. Von daher halte ich {{PD-USGov-Military-Marines}} nur für die Fälle für passend wo der Fotograf eindeutig als Marine indentifiziert ist. Für die Massenverkategorierierung ist daher {{PD-USGov-Military}} IMHO passender. --Slick (talk) 17:22, 7 May 2013 (UTC)
- OK good point. Lets keep {{PD-USGov-Military}}. --Jarekt (talk) 19:05, 7 May 2013 (UTC)
- Oh, mistake, sorry for the german. By the way, if a bot will work on this, it should use Category:Import_by_User:Slick-o-bot/Marines.mil_images. --Slick (talk) 19:08, 7 May 2013 (UTC)
- OK good point. Lets keep {{PD-USGov-Military}}. --Jarekt (talk) 19:05, 7 May 2013 (UTC)
- Ich kenne mich mit dem US Militär nicht so sonderlich aus, aber nur weil die Marines das Bild veröffentlich haben (was die gemeinten USMC Files waren), muss der Fotgraf kein Marine gewesen sein. Von daher halte ich {{PD-USGov-Military-Marines}} nur für die Fälle für passend wo der Fotograf eindeutig als Marine indentifiziert ist. Für die Massenverkategorierierung ist daher {{PD-USGov-Military}} IMHO passender. --Slick (talk) 17:22, 7 May 2013 (UTC)
- We should probably also change {{PD-USGov-Military}} to {{PD-USGov-Military-Marines}}. --Jarekt (talk) 16:09, 7 May 2013 (UTC)
-
-
-
-
-
- Thank you for your attention. I leave you much more experienced guys as to which category should be added. I've been adding manually categories to the files in Category:Media needing categories as of 13 December 2012 for a few days. I just want to remind you that thousands of "USMC" files are also in Category:Media needing categories as of 2 December 2012 through Category:Media needing categories as of 12 December 2012. --Nightingale (talk) 00:51, 8 May 2013 (UTC)
-
-
-
-
-
-
-
-
-
-
- It seems Category:Marines.mil images to check already is a subcat of Category:United States Marine Corps. So it would not make sense to also add Category:United States Marine Corps. --McZusatz (talk) 06:27, 8 May 2013 (UTC)
-
-
-
-
-
-
-
-
-
-
-
-
- I suggest, if Category:United States Marine Corps is not already added to the files in Category:Marines.mil images to check it should add, because this category is for maintenance only and should removed when a file is checked. So as long a file is in Category:Marines.mil images to check the Category:United States Marine Corps is not wrong to add. --Slick (talk) 06:45, 8 May 2013 (UTC)
- This task seems to be
Done? But I noticed there are still many pictures with only hidden category and without the uncategorized template. I think those should also be processed. (example File:USMC-00194.jpg). --McZusatz (talk) 08:29, 12 May 2013 (UTC)
- This task seems to be
- I suggest, if Category:United States Marine Corps is not already added to the files in Category:Marines.mil images to check it should add, because this category is for maintenance only and should removed when a file is checked. So as long a file is in Category:Marines.mil images to check the Category:United States Marine Corps is not wrong to add. --Slick (talk) 06:45, 8 May 2013 (UTC)
-
-
-
-
-
-