Commons:Village pump/Technical

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

Shortcuts: COM:VP/T • COM:VPT

Welcome to the Village pump technical section

This page is used for technical questions relating to the tools, gadgets, or other technical issues about Commons; it is distinguished from the main Village pump, which handles community-wide discussion of all kinds. The page may also be used to advertise significant discussions taking place elsewhere, such as on the talk page of a Commons policy. Recent sections with no replies for 30 days and sections tagged with {{Section resolved|1=--~~~~}} may be archived; for old discussions, see the archives; the latest archive is Commons:Village pump/Technical/Archive/2021/12.

Please note
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 1 day and sections whose most recent comment is older than 30 days.

How can I figure out the file url in the upload server?[edit]

For example, in the following page: the actual media file url states as: the directory "b/b3" seems to be a little random -- I can't figure out how it was assigned. So I cannot generate the actual media file url, even if I know the file name En-us-comment.ogg. Anyone can help me on this? I could not find any article discussing this. — Preceding unsigned comment added by Alanguonz (talk • contribs) 13:06, 16 December 2021‎ (UTC)[reply]

@Alanguonz You should not try to build media URLs yourself, you should always ask MediaWiki for them. This is because the URL format may change in the future. Instead, use {{filepath:En-us-comment.ogg}} or mw:API:Imageinfo. If you're curious, it's the first two characters of the MD5 hash of the filename. But like I said, you should not rely on that, the URL format may change in the future. The URL format is also more complicated for multi-page formats, video, etc.) AntiCompositeNumber (talk) 18:41, 16 December 2021 (UTC)[reply]

Tool for newest files in a category or campaign[edit]

Hello! I was wondering if there is a tool to find the newest/oldest files on some category, or uploaded via some campaign. e.g. if there is a file on Category:Uploaded via Campaign:wikivacaciones2018 uploaded this year. Thank you in advance, --·×ald·es 18:12, 20 December 2021 (UTC)[reply]

@XalD: The API can return this information, e.g. 10 most recently added files or 10 least recently added files (sorted by categorization date, not upload date, but at least for campaign categories the two should mostly be the same). This is not very user-friendly, though, and I don’t know of any tool that does this in a more user-friendly way—maybe time to write a new one? Or is there one that I don’t know of? —Tacsipacsi (talk) 19:02, 20 December 2021 (UTC)[reply]
Thank you! It really helps for what I was trying to find! ·×ald·es 19:08, 20 December 2021 (UTC)[reply]


Can we sync Template:Citation and Template:Citation/core with the more recent versions on en.Wikipedia, or otherwise update them with the functionality over there? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:36, 20 December 2021 (UTC)[reply]

Tech News: 2021-51[edit]

22:03, 20 December 2021 (UTC)

Edit raw watchlist[edit]

I have a problem editing to edit raw watchlist in my preferences.

the error message:

If you report this error to the Wikimedia System Administrators, please include the details below.

Request ID: 37cfbb3b-b1a4-47f3-8ccf-efbcde05c57f

Allowed memory size of 698351616 bytes exhausted (tried to allocate 20480 bytes)

-- Geagea (talk) 12:51, 27 December 2021 (UTC)[reply]

@Geagea: How many pages do you have in your watchlist? Find that number at the header of Special:Watchlist ( pages are on your Watchlist (plus talk pages)). NguoiDungKhongDinhDanh 13:00, 27 December 2021 (UTC)[reply]
271,237 pages. -- Geagea (talk) 13:04, 27 December 2021 (UTC)[reply]

@Geagea: Then that's exactly the problem you were looking for. Since your watchlist is stored nowhere else than your preferences, we can hardly do anything. As far as I know, the watchlist itself doesn't have any limit, but you may need to remove a bunch of them (using some semi-automated tools) if you want to monitor it manually. Otherwise, just keep adding things as you normally do. See also Don't overload your watchlist!. NguoiDungKhongDinhDanh 13:28, 27 December 2021 (UTC)[reply]

"semi-automated tools" - can you provide link? I dont mind to remove the first 50000 from my watchlist but have to add manually som 30000 lines. -- Geagea (talk) 13:40, 27 December 2021 (UTC)[reply]
@Geagea: I'm afraid you'll need to remove at least 100000 to make the raw watchlist accessible. AWB has a feature that allows listing pages in your watchlist (even though I have never tried with 270000 pages – it is truly a huge number). All you need to do is order AWB to remove pages from your watchlist after null-editing them. Same goes with adding, excludes non-existent pages. NguoiDungKhongDinhDanh 13:50, 27 December 2021 (UTC)[reply]
@NguoiDungKhongDinhDanh: , I opened the AWB but couldn't find where ot how I can handle my watchlist. -- Geagea (talk) 18:42, 27 December 2021 (UTC)[reply]
@Geagea: See the "Make list" tab at the left of your screen? Click the drop-down bar, then "My watchlist". NguoiDungKhongDinhDanh 19:17, 27 December 2021 (UTC)[reply]

Community Wishlist Survey 2022 is coming. Help us![edit]

The Community Wishlist Survey 2022 starts in less than two weeks (Monday 10 January 2022, 18:00 UTC). We, the team organizing the Survey, need your help.

Only you can make the difference

How many people will hear and read about the Survey in their language? How many will decide to participate? Will there be enough of you to vote for a change you would like to see? It all depends on you, volunteers.

Why are we asking?

  • We have improved the documentation. It's friendlier and easier to use. This will mean little if it's only in English.
  • Thousands of volunteers haven't participated in the Survey yet. We'd like to improve that, too. Three years ago, 1387 people participated. Last year, there were 1773 of them. We hope that in the upcoming edition, there will be even more. You are better than us in contacting Wikimedians outside of wikis. We have prepared some images to share. More to come.

What is the Community Wishlist Survey?

Community Wishlist Survey banner - translatable.svg

It's an annual survey that allows contributors to the Wikimedia projects to propose and vote for tools and platform improvements. Long years of experience in editing or technical skills are not required.

Thanks, and be safe and successful in 2022! SGrabarczuk (WMF) (talk) 03:15, 29 December 2021 (UTC)[reply]

disappearing file[edit]

See Commons:Help desk#No se ve la vista previa de la imagen. The file is there, but for some reason not displaying properly. Beeblebrox (talk) 23:13, 29 December 2021 (UTC)[reply]

Search in the deletion logs[edit]

Hello, is there a way to search for some selected key words in the deletion log. E.g. yesterday I deleted files such as File:Kris Kourtis photo shoot.jpg. Is there a way to access to a list of all files deleted (by all administrators) and that contain "Kris+Kourtis"? Christian Ferrer (talk) 20:07, 30 December 2021 (UTC)[reply]

Here you are quarry:query/61111: 269 files. 4nn1l2 (talk) 21:14, 30 December 2021 (UTC)[reply]
@4nn1l2: Very great thanks you. Is there a way to display additional infos for each files? such as the deleting administrator(s) or/and the uploaders. I ask because I blocked more than 15 socks who uploaded (some of) those files but I wonder if some socks have escaped me. If I can find quickly the files that were not deleted by me it will help me to find potential additional socks. Christian Ferrer (talk) 21:33, 30 December 2021 (UTC)[reply]
Deleting admin
Deleting admin
4nn1l2 (talk) 22:13, 30 December 2021 (UTC)[reply]
  • Excellent, thanks you. I already found another sock thanks to that, I will check all this tomorrow. Christian Ferrer (talk) 22:24, 30 December 2021 (UTC)[reply]
6 more socks blocked. Christian Ferrer (talk) 22:42, 30 December 2021 (UTC)[reply]

This one also lists uploaders: quarry:query/61113

Deleting admin and uploader

4nn1l2 (talk) 22:58, 30 December 2021 (UTC)[reply]

  • Even better, exactly what I needed, such a query is potentially very useful. Very good, thanks again! Christian Ferrer (talk) 23:11, 30 December 2021 (UTC)[reply]

Scaling multimedia support -- where should we discuss prioritizing major changes?[edit]

From a thread on the mailing list : User:Sj/multimedia --SJ+ 20:43, 2 January 2022 (UTC)[reply]


Would there be a way for {{X-To-DR}} to expand the F3 part for clarification (like shown here) for those unfamiliar with the speedy policy? 1989 (talk) 09:41, 4 January 2022 (UTC)[reply]

Deletion notice language links are broken[edit]

If you look at any file that has been nominated for deletion, at the bottom of the deletion notice there is a list of blue-linked languages under the heading "Click here to show further instructions." If you click on the English link you get only another notice that says "This template has been nominated for deletion." If you click on one of the other languages (I tried several) you get the template deletion notice helpfully translated into that language. This is an embarrassment. What is the best way, besides this posting, to get attention to this problem?--agr (talk) 13:49, 5 January 2022 (UTC)[reply]

@ArnoldReinhold: I think the links are working as intended, but the layout isn't as clear as it should be. The text "Click here to show further instructions" is not a heading for the list of languages; rather if you click on that text (for instance on the word "here"), the further instructions appear in-line. The list of languages is to allow you to see the template in a different language if it's ended up being displayed in an inappropriate one for you. I wonder if arranging to keep a horizontal rule displayed after this line would make it clearer that it's not connected to the languages underneath. --bjh21 (talk) 18:59, 5 January 2022 (UTC)[reply]
@Bjh21: I agree it would help to add a line between the Click here... and the language links. I would also make the word here blue to give readers a specific target distinct from the language links. That would match the usage in the second line of th etemplate.
But the language links are completely broken, and it is easy to reproduce. (So we are both looking at the same place, I was using File:Turkish Policy Quarterly.jpg as a test case, just because it is a recent nomination.) If you click on any language link (this time I tried a bunch more) you get a template taking about removing Template:Delete/xx, where xx is the language code, e.g. for Neederlands, you get to Template:Delete/nl The text says "Dit of deze template is genomineerd voor verwijdering." If you the click on "'hier"' in "Voor overleg hierover, zie hier. " which should have taken you to the deletion discussion for File:Turkish Policy Quarterly, instead you are taken to "Commons:Deletion requests/Template:Delete/nl" which was closed "keep" about a year ago. From what I can see, some vandal was nominating many of these Delete templates for deletion. Perhaps in the process of restoring order, something broke.--agr (talk) 02:09, 6 January 2022 (UTC)[reply]
I added my report to Template talk:Delete. Maybe this discussion should move there.--agr (talk) 17:22, 7 January 2022 (UTC)[reply]

Template:Extracted from[edit]


There's something broken with {{Extracted from}}. See transclusion at File:Wieś Ilustrowana, marzec 1911.jpg.Jonteemil (talk) 19:49, 7 January 2022 (UTC)[reply]

@Jonteemil: AFAIC, this edit caused the problem (though made in good faith). FYI, <onlyinclude>a</onlyinclude>b is equivalent to <includeonly>a</includeonly><noinclude>b</noinclude>. When changing from onlyinclude to includeonly, they forgot to wrap the rest in noinclude so as to prevent them from appearing on transcluding pages. This fix should have done that, but it seems that A1Cafel unintentionally left the language bar out. In short: Problem solved. NguoiDungKhongDinhDanh 21:55, 7 January 2022 (UTC)[reply]


Template {{Trademarked}} transclude a template with translate extension enabled. However, when checking the simplified Chinese translation of this template, I found some text are marked with red background said "Outdated translations are marked like this". As pages can no longer be translated to simplified Chinese (zh-hans), those message could not be updated anymore. Could anyone give a suggestion about how to fix this issue? Also same issue on tranditional Chinese translation. Thanks. Stang 18:25, 8 January 2022 (UTC)[reply]

Listing of all gallery pages[edit]

How do I get a listing of all gallery pages of our WM Commons universe easily, this includes non-categrozied ("gallery pages of/about ...")? BTW: Our search machine does not a great job in this subject (for years). Greetz, --Mateus2019 (talk) 01:40, 10 January 2022 (UTC)[reply]

MediaWiki do have special pages for your need, but I guess this is something SQL queries can do better. NguoiDungKhongDinhDanh 07:24, 10 January 2022 (UTC)[reply]

Tech News: 2022-02[edit]

01:22, 11 January 2022 (UTC)

Save the Date: Coolest Tool Award 2021: this Friday, 17:00 UTC[edit]

Hello all,

The ceremony of the 2021 Wikimedia Coolest Tool Award will take place virtually on Friday 14 January 2022, 17:00 UTC.

This award is highlighting software tools that have been nominated by contributors to the Wikimedia projects. The ceremony will be a nice moment to show appreciation to our tool developers and maybe discover new tools!

Read more about the livestream and the discussion channels.

Thanks for joining! andre (talk) -08:02, 6 January 2022 (UTC)[reply]

Can't upload a replacement file[edit]

I have tried several times to upload a new version of the file at The original is 16 MB and the new version is 22 MB. Every time I try, the upload ?times out? and I get a message like this: Request from 2602:304:5eab:489:74d6:4c86:4ad4:cc10 via cp4032 cp4032, Varnish XID 535415660 Error: 503, Backend fetch failed at Thu, 13 Jan 2022 02:47:41 GMT I am not running any memory-intensive programs. Please help. Downtowngal (talk) 02:54, 13 January 2022 (UTC)[reply]

@Downtowngal: Did you try the Upload Wizard instead of using the direct upload form? The Wizard uses chunked uploads which should enable the upload process of larger files. De728631 (talk) 19:12, 14 January 2022 (UTC)[reply]
Since one year or two I have the same issue and 95% of time I don't manage to upload new versions of big files (the upload never end until an error message saying that I must try again), the last exemple was 3 days ago, I managed to upload a new version by uploading it firstly into my Flickr acount and then to upload here the new version from Flickr. Christian Ferrer (talk) 19:33, 14 January 2022 (UTC)[reply]
No, I haven't because I am not familiar with the process of saving the new file uploaded via Upload Wizard as a replacement for an existing file.Downtowngal (talk) 19:53, 14 January 2022 (UTC)[reply]
Oh, that's right. Overwriting existing files doesn't seem to work with the Wizard. De728631 (talk) 22:10, 14 January 2022 (UTC)[reply]
I always used the chunked upload script for this, as its the only thing that's even vaguely reliable. It also works well to bypass the Upload Wizard (which is almost impressively subfunctional if you already have a template to use) and the basic upload form, which will not do chunked upload, has a 100MB limit and will sometimes fail. The script is User:Rillke/bigChunkedUpload.js, and it will happily upload over existing files as well as allow you to create a file page without a file and upload the file into it (thus bypassing the upload forms entirely). Inductiveload (talk) 23:52, 14 January 2022 (UTC)[reply]

Is whitelisting specific albums of a blacklisted Flickr author technically possible?[edit]

There is this Flickr user with literally thousands of public domain images that are wrongly licensed and because of the consistent mislicensing of files they were blacklisted a long, long time ago. Now I fully understand why they're blacklisted and because of the sheer amount of bad files on their account I don't expect them to ever get removed from the blacklist.

But... They have dozens of albums which are fully composed of public domain photographs and postcards that were published before 1948 (which would make them in the public domain according to Vietnamese law) and because the person uploading these is a collector of rare and old Vietnamese photographs that can basically be found nowhere else on the internet (excluding re-shares of their uploads), is it possible to request for specific albums to be whitelisted so I could upload those? --Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 22:52, 14 January 2022 (UTC)[reply]