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
Technical discussion
Village pump/Technical
 Bug reports
 Code review
Tools
 Tools/Directory
 Idea Lab



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; recent archives: /Archive/2024/01 /Archive/2024/02.

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.

I'm trying to add formatting parameters to Template:Userpage (e.g. for changing the background color), but having some issues. I introduced them to Template:Userpage/layout, but I gather that I need to pass them through language variants like Template:Userpage/en to get them to be usable. But when I try to add something like

|border={{{border|}}}
|background={{{background|}}}
|extra-style={{{extra-style|}}}
|file={{{file|}}}

to the English translation, it shows in previews that undefined values are interpreted as blanks rather than just ignored. How do I get around this? Best, {{u|Sdkb}}talk 19:48, 5 December 2023 (UTC)Reply[reply]

{{subst:bump}} {{u|Sdkb}}talk 07:27, 3 February 2024 (UTC)Reply[reply]

Total Daily Image Views[edit]

Do we have a tool that will show the totals for image views similar to the old d.o.s. syntax "*common_image_title.jpg" that poll from the viewer logs? The site wmcloud.org does not allow wildcards * in the lookup and seems to only be able to handle one request at a time. [GLAMorous] on toolforge might be configurable to do it, anyone have any suggestions or experience here? --Don (talk) 21:07, 17 January 2024 (UTC)Reply[reply]

do you mean something like https://glamtools.toolforge.org/glamorgan.html ? RZuo (talk) 13:53, 18 January 2024 (UTC)Reply[reply]
Hi thank you for the reply, I am familiar with Glam and it does not seem to be configurable to use a wild card * in the search and limits the scope of the search to category by image. What I am looking for is total number of views of ALL images in a category. --Don (talk) 22:25, 18 January 2024 (UTC)Reply[reply]
i dont get how this tool doesnt fulfil your wish. if you try the demo, it gives
76 files in category tree.
37 files were viewed, out of 44 used.
235 pages on 66 wikis use those files.
243,106 file views in 2016-01. (= total number of views of ALL images in a category? albeit limited to only a given month.)
Data for 80 pages could not be loaded from the WMF pageview API (404 error). RZuo (talk) 23:00, 18 January 2024 (UTC)Reply[reply]
This works thank you. Don (talk) 19:35, 24 January 2024 (UTC)Reply[reply]

Is CropTool Working?[edit]

I have tried starting CropTool to modify images. It stopped working about 2024-01-19. I use it frequently and have tried to start it with several different images.

I just tried it again and got the following message:

Wikimedia Toolforge Error

This Grid Engine web service cannot be reached. Please contact a maintainer of this tool.

Tool maintainers can find more details from the documentation on Wikitech.

I have spent over an hour trying to figure out where to post my problem. This was my best guess. I am too old to figure out who the maintainer is. I do not have a talk page on Wikimedia. User-duck (talk) 01:09, 22 January 2024 (UTC)Reply[reply]

I reformatted the above message to fix heading levels. –IagoQnsi (talk) 03:01, 23 January 2024 (UTC)Reply[reply]
Having the same issue – seems to be completely down. Looks like a GitHub issue was opened yesterday. –IagoQnsi (talk) 03:01, 23 January 2024 (UTC)Reply[reply]
I opened a Phabricator ticket: phabricator:T355633. –IagoQnsi (talk) 03:15, 23 January 2024 (UTC)Reply[reply]
Thank you. User-duck (talk) 18:44, 23 January 2024 (UTC)Reply[reply]
@User-duck@IagoQnsi it's working for now. use it before it disappears again on 14 feb. RZuo (talk) 18:55, 23 January 2024 (UTC)Reply[reply]
@IagoQnsi: Why is CropTool going to disappear? I know this is Wikipedia/Wikimedia and mysterious things happen. User-duck (talk) 13:05, 24 January 2024 (UTC)Reply[reply]

How to remove unnecessary audio from video[edit]

The video file File:Arc melted rhenium block.webm comes from Flickr. When I shot the video, I accidentally recorded music that may be copyrighted. Can you please remove the audio part of this video? Thank you! Fumikas Sagisavas (talk) 07:32, 23 January 2024 (UTC)Reply[reply]

you can try com:videocuttool, or ask a sysop to import it again without the audio for you.
next time when you use v2c, make sure unselect "audio" if you dont want it. RZuo (talk) 08:27, 23 January 2024 (UTC)Reply[reply]
MKVToolNixGUI also allows the removal of audio stripes --PantheraLeo1359531 😺 (talk) 19:15, 29 January 2024 (UTC)Reply[reply]

SVG map not rendering correctly[edit]

I've uploaded this file, and I don't know why, but it doesn't render the texts properly, unless you open it directly, or outside wikimedia.

Map of the Nort-eastern Asian Languages in danger

Ewithu (talk) 13:54, 24 January 2024 (UTC)Reply[reply]

I'm afraid I'm not sure, but I did discover that the file has 295 embedded PNGs, which mostly seem to be things like borders for the legend at the top and text fragments like "Nor". —CalendulaAsteraceae (talkcontribs) 04:50, 25 January 2024 (UTC)Reply[reply]
@Ewithu: The primary issue is the file does character placements, something that librsvg (the wiki SVG to PNG rasterizer) does not support. You will get many such warnings at Commons:Commons SVG Checker. It looks like that error causes the tspan elements to just add to the last string rather than move to the expected location. The file is also poorly organized with labels placed in tspan subelements rather than their own text elements. Glrx (talk) 05:24, 25 January 2024 (UTC)Reply[reply]
Thank you very much @Glrx!
I tried fixing it, it looked like I managed, but when I uploaded as a new version, somehow it's still messed up :/
I'm not too skilled with svg programing so I cannot manually fix what's broken. Should I upload it as a large png image instead? Ewithu (talk) 17:38, 25 January 2024 (UTC)Reply[reply]
If you have another device, try viewing the image on that. You might be looking at an old cached version of the image. It looks good to me now. Soap (talk) 18:20, 25 January 2024 (UTC)Reply[reply]
Ah, you are right. Thanks! Ewithu (talk) 20:16, 25 January 2024 (UTC)Reply[reply]

Toggle the proceed button on/off for filemovers[edit]

what is responsible for the popup for filemovers to move files? a gadget?

i have a suggestion for it. it'd be good if the proceed button, or "hitting the enter key to proceed", can be toggled on/off temporarily.

it has happened occasionally that while you are editing the intended filename you accidentally hit enter, then the file gets moved to a wrong name. this is especially a trouble for me as i use input methods for cjk chars, which often involve hitting the enter key.

notice how the proceed button greys out if the filename field is less than 8 chars. a button to toggle the proceed button off like that would be good.

or even better, as long as cursor is active in the filename field it should grey out the proceed button. RZuo (talk) 07:06, 27 January 2024 (UTC)Reply[reply]

Template protection banners inconsistency[edit]

File:Nominate for deletion sidebar.png (which is used at Commons:Deletion requests as example) is template protected. This is mentioned in the edit notice of the page:

This page is currently protected, and can be edited only by template editors and administrators.

However, when viewing the file File:Nominate for deletion sidebar.png, the banner says:

This page is currently protected, and can be edited only by administrators.

which is misleading. —⁠andrybak (talk) 21:02, 27 January 2024 (UTC)Reply[reply]

UploadStash documentation[edit]

it'd be great if someone can write something at Commons:UploadStash about Special:UploadStash, like how long the temporary files are stored in the stash.

or maybe you can point to where the actual documentation about this is. i made it a soft redirect to where the doc is supposed to be but the target page is certainly abandoned and outdated. RZuo (talk) 10:49, 29 January 2024 (UTC)Reply[reply]

I made a start. Is there anything in particular you think should be included? Bawolff (talk) 09:16, 22 February 2024 (UTC)Reply[reply]
thx a lot. i was just looking for how long (48 hours). RZuo (talk) 11:16, 22 February 2024 (UTC)Reply[reply]
Ah yes, its 48 hours, controlled by $wmgUploadStashMaxAge in InitialiseSettings.php [1]. It should be noted there is currently a bug where sometimes stash files get reported as being deleted way before it should. We think it happens when multiple mediawiki jobs try to assemble the file at the same time, and one deletes the file out from under the other one and we are working to try and fix it. Bawolff (talk) 19:42, 22 February 2024 (UTC)Reply[reply]

Tech News: 2024-05[edit]

MediaWiki message delivery 19:28, 29 January 2024 (UTC)Reply[reply]

How can I revert my edit[edit]

I was updating a .pdf of a book with page problems that I had uploaded in the past. However, in the process, I didn't read the message advising not to upload a .pdf when updating a file. As a result, my file is now broken. Is there a way to revert my edit? Here is the file: File:A Bruxa de Monte-Cordova (1904).pdf Junglk (talk) 01:42, 1 February 2024 (UTC)Reply[reply]

@Junglk: Scroll down to the file history and click the link that says "revert" next to the previous version of the file. I've gone ahead and done that here. —CalendulaAsteraceae (talkcontribs) 05:30, 1 February 2024 (UTC)Reply[reply]

Odd template behaviour at Creator:Rabindranath Tagore[edit]

Hello, in the description field of this creator tag there is a preceding hyphen, and the word "Bengali" is wikilinked but I can't find this anywhere in the Wikidata description. Please also see Creator talk:Rabindranath Tagore. pinging previously involved editors: @Jeff G. and Pacha Tchernof: Matrix(!) {user - talk? - useless contributions} 17:43, 2 February 2024 (UTC)Reply[reply]

@Matrix: I think I've worked out some of what's going on. The description is constructed by Module:NationAndOccupation, and it inserts a hyphen in the "nationality" part of the description where there are two nationalities. In the case of Rabindranath Tagore (Q7241) there are two values for ethnic group (P172), Bengali (Q402913) and Brahmin caste (Q47140). I reckon the empty string before the hyphen is a failed attempt at rendering Brahmin caste (Q47140). I haven't worked out why that's failing though. --bjh21 (talk) 18:06, 2 February 2024 (UTC)Reply[reply]
I think it may just boil down to Brahmin caste (Q47140) not being in Module:NationAndOccupation/nationalityLUT, but I'm not sure. --bjh21 (talk) 18:12, 2 February 2024 (UTC)Reply[reply]
@Bjh21: I've just specified the nationality manually at Creator:Rabindranath Tagore, so it should be good now. —Matrix(!) {user - talk? - useless contributions} 14:04, 3 February 2024 (UTC)Reply[reply]

Deleted file disappeared[edit]

Hi, FYI I filled up a bug report for File:Derain_CharingCrossBridge.png which was deleted in 2006, and can't be restored. The file description is available, but the file itself disappeared. See phab:T356535. Yann (talk) 19:48, 2 February 2024 (UTC)Reply[reply]

@Yann: Is this it: en:File:Derain CharingCrossBridge.png? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:19, 4 February 2024 (UTC)Reply[reply]

GlobalUsageCount down[edit]

toolforge:globalusagecount has been down for weeks (it was reported here), and the maintainer Steinsplitter has not been active globally since December. I submitted an edit request at MediaWiki talk:Globalusage-header-image to use a mirror instead, but looking through Category:Commons protected edit requests for interface administrators it seems like there are intadmin edit requests that have been languishing for months without response, so I am reposting it here for visibility. Ahecht (TALK
PAGE
) 18:35, 4 February 2024 (UTC)Reply[reply]

✓ Done by Lucas Werkmeister. --Ahecht (TALK
PAGE
) 23:43, 4 February 2024 (UTC)Reply[reply]

Translingual tag[edit]

It would be useful to have a translingual tag for New Latin name of species, similar to {{En}} or {{Fr}}, in {{Information}}. An example here.-- Carnby (talk) 07:31, 5 February 2024 (UTC)Reply[reply]

Tech News: 2024-06[edit]

MediaWiki message delivery 19:20, 5 February 2024 (UTC)Reply[reply]

Api that returns the file ids[edit]

I am looking for an api that can give ids of all the file revisions of a page. If the file page has multiple file uploads, I would like to get ids of all. So far I could only find API:Filearchive api that can return ids of all deleted pages but I am looking for a similar api that can return files that are not deleted. Sreejith K (talk) 21:56, 6 February 2024 (UTC)Reply[reply]

@Sreejithk2000: mw:API:Imageinfo will return all versions of a file. I don't think each version has an ID though. In the database, the filearchive table has an ID column, but the oldimage table doesn't. --bjh21 (talk) 00:04, 7 February 2024 (UTC)Reply[reply]
Thank you @Bjh21 -- Sreejith K (talk) 04:56, 8 February 2024 (UTC)Reply[reply]

Tech News: 2024-07[edit]

MediaWiki message delivery 05:46, 13 February 2024 (UTC)Reply[reply]

Request for comments about my recent uploads.[edit]

Hi, Just added three drawings linked here.
JPG
PNG
XCF My XCF files were produced by GIMP 2.10. Not supported currently; hopefully the constraint will be removed sooner rather than later. =8~)

The upload process has changed since my previous uploads. Any comments or suggestions before I add more drawings? Thanks, ... PeterEasthope (talk) 04:43, 14 February 2024 (UTC)Reply[reply]

Thanks for these. But as to formats, I think the JPG alone is enough. They're primarily document scans, and their context as documents rather than just designs is important too. I can't see the XCF, even the bitmap previews of it. But I don't se a big advantage to having these in a vector form, or even that a full 3D CAD model would be worth the effort of drawing them. Andy Dingley (talk) 20:44, 14 February 2024 (UTC)Reply[reply]
Yes, XCF is the most questionable. Perhaps I should request deletion of those.
Doesn't the official image documentation recommend PNG when available. The primary benefit of JPG is the smaller size. Will review the documentation. Thx, ... PeterEasthope (talk) 03:26, 16 February 2024 (UTC)Reply[reply]

Patrol interface changed?[edit]

I just noticed that the links that I normally see when viewing unpatrolled diffs seem to have disappeared. When viewing a new page the link shows as usual. Have the revision-patrol links moved, and I’m just not seeing them, or might a gadget or something be interfering with their display? (I haven’t changed any preferences recently.)—Odysseus1479 (talk) 04:14, 15 February 2024 (UTC)Reply[reply]

Hi, It seems there is bug when patrolling edits since this morning (CET). Example: this edit doesn't seem to be patrolled (i.e. not in the log [23]), but it can't be patrolled, and the user is not autopatrolled. Yann (talk) 16:32, 15 February 2024 (UTC)Reply[reply]

Since it was reported by at least 2 persons, I made a bug report. Yann (talk) 16:49, 15 February 2024 (UTC)Reply[reply]
Can confirm this, also in RTRC. GPSLeo (talk) 16:59, 15 February 2024 (UTC)Reply[reply]
I note that the red exclamation-marks that indicate unpatrolled edits in my watchlist are still showing, so the problem is apparently not that the edits are failing to be identified by the software, occurring instead during the construction or presentation of diff pages.—Odysseus1479 (talk) 21:42, 15 February 2024 (UTC)Reply[reply]
This seems to be fixed despite no one commented at the Phabricator ticket. GPSLeo (talk) 08:05, 18 February 2024 (UTC)Reply[reply]
No, the bug is still here for me. Yann (talk) 16:46, 18 February 2024 (UTC)Reply[reply]
Me too. In case it helps anyone from Phabricator who may be reading this, I’m in Safari 17.3 / MacOS 13.6 using the Vector legacy (2010) skin. I might try other skins (although I don’t know what the patrol link usually looked like in them); will report back if any difference is seen.—Odysseus1479 (talk) 01:24, 21 February 2024 (UTC) P.S. Tried all the skins: the links do appear in MinervaNeue. Twice in fact, one in the usual place under the ES &c. and one at the bottom of the page. (I have my preferences set not to display pages under diffs.) But missing from all the others AFAICT. (I tried turning off a couple of Gadgets in Vector; no difference.)—03:01, 21 February 2024 (UTC)Reply[reply]
Does adding the following code to User:Odysseus1479/vector.css fix the issue for you?
.patrollink.patrollink-diffonly { display: block; }

Jdlrobson (talk) 04:22, 21 February 2024 (UTC)Reply[reply]

@Jdlrobson: it does indeed; thank you very much!—Odysseus1479 (talk) 06:03, 21 February 2024 (UTC)Reply[reply]
Thanks for the extra information. I'll feed that back to the ticket tomorrow and work out what happened here to find a better long term solution. Jdlrobson (talk) 06:06, 21 February 2024 (UTC)Reply[reply]

Cat-a-lot does not work for categories[edit]

There seems to be a technical problem with Help:Gadget-Cat-a-lot: when I click on Preferences, click on "Allow categorising pages (including categories) that are not files", then select one or more subcategories and try to move/copy/delete them to/from another category (like I always do), nothing happens but an endless "Editing page 1 of X". Moving files is no problem. Can this be fixed? JopkeB (talk) 11:05, 16 February 2024 (UTC)Reply[reply]

I am not the only one having troubles, see Commons:Village_pump#Cat-a-lot as well. JopkeB (talk) 13:27, 16 February 2024 (UTC)Reply[reply]
Same for me: moving categories does not work, moving files works. --Reinhard Müller (talk) 14:49, 16 February 2024 (UTC)Reply[reply]
Note: If there is specific categories where problem can be replicated then please list them. (ie. fixing requires example cases) --Zache (talk) 15:58, 16 February 2024 (UTC)Reply[reply]
I would like to copy a lot of subcategories in Category:Energy by type of energy to Category:Energy by topic‎ (all except for the 'by' categories). JopkeB (talk) 16:20, 16 February 2024 (UTC)Reply[reply]
It was broken by a change to the HTML structure of the category pages, see phab:T355636#9553616. I hope it will be fixed by another change to the HTML structure, but if not, an interface admin should update the method getMarkedLabels() to account for the change. —Tacsipacsi (talk) 14:02, 18 February 2024 (UTC)Reply[reply]

Tech News: 2024-08[edit]

MediaWiki message delivery 15:34, 19 February 2024 (UTC)Reply[reply]

Protection not showing correctly[edit]

When I go to File:Dự thảo Bảng lương Quân nhân chuyên nghiệp Việt Nam năm 2021.jpg, it says "This page is currently protected, and can be edited only by administrators". However, when I click "view source", it then state that the file is actually template protected, not fully protected. This issue only seems to affect files with autopatroller or template protection. —Matrix(!) {user - talk? - useless contributions} 16:55, 19 February 2024 (UTC)Reply[reply]

How to solve the problem that videos uploaded using video2commons lack normal audio[edit]

I recently uploaded a Flickr video using video2commons, but the audio was missing after uploading it several times. How to solve it?The target file is File:Freezing rain (20240220).webm, and the video source link is [29]. Fumikas Sagisavas (talk) 06:24, 21 February 2024 (UTC)Reply[reply]

what do you mean by normal audio? i played it on commons and flickr for a few seconds. they sound the same. upload appears successful? did you turn on your loudspeaker, etc.? RZuo (talk) 09:12, 21 February 2024 (UTC)Reply[reply]

More worthless structured data?[edit]

Does Structured Data still matter, or have we given up on it?

There's a new tool out there, and it (once again) seems to be focussed on diluting the usefulness of any Structured Data that's held in favour of the trivial and pointless. Is this (again!) the direction we want to be going in?

File:Avenue des Champs-Elysées from top of Arc de triomphe Paris.jpg is a major landmark in Paris. There are clear topics of significance here. But what do we have instead? 'Arc de Triomphe' (which isn't here) and 'road, tree, building', which sound like an example case from a text on 'How to categorize things in a way that's not incorrect, yet also quite useless'.

Or taking a historically significant photo like File:Crowds of French patriots line the Champs Elysees-edit2.jpg with the useful and relevant data 'Arc de Triomphe' (yes, it is), 'Liberation of Paris' (yes, although maybe we could be even more specific), 'M3' and 'M8' (horribly ambiguous as names, although the QIDs are much better. But then adding 'sky, human, tree' to it ?

What is the point to any of this? SD is largely useless to start with, but why do we keep building projects like this to make it worse? Andy Dingley (talk) 13:15, 21 February 2024 (UTC)Reply[reply]

Using translate tags in Lua[edit]

{{POTY/header}} has a lot of complicated logic so I'm working on implementing it in Lua at Module:POTY/header, but judging from {{POTY/header/sandbox}}, it seems the <translate> tags are being stringified too early. How can I fix this? —CalendulaAsteraceae (talkcontribs) 22:43, 21 February 2024 (UTC)Reply[reply]

The current pipeline for uploading images through Flickr is completely broken.[edit]

At present, the pipeline for uploading pictures and videos through Flickr has been completely damaged. After uploading, it stays at "Submitting details…". Please repair it as soon as possible. Fumikas Sagisavas (talk) 23:27, 21 February 2024 (UTC)Reply[reply]

Image timeouts[edit]

Hi, during browsing I'm getting a lot of timeouts trying to load images from Wikimedia servers on en.Wikipedia and wikimedia.org. For the last few days. Any advice? It's intermittent, but when it's out it's out. Temerarius (talk) 23:08, 22 February 2024 (UTC)Reply[reply]