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]

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]

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]
I confirm that it is not working. Theklan (talk) 09:36, 24 February 2024 (UTC)Reply[reply]
I can also confirm that it's not working for categories, although it will sometimes say that the category was moved.Smasongarrison (talk) 00:28, 27 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]

@CalendulaAsteraceae: <translate> tags are for wikitext, they cannot be used in modules. (Under the hood, the Translate extension directly manipulates the page’s wikitext content, it’s not a real parser tag, and refuses to manipulate anything that’s not wikitext, to be on the safe side.) You have basically two options:
  • Keep {{POTY/header}} (which you’d probably do anyway) and pass the translatable strings as parameters to the module. This also has the advantage that existing translations can stay where they are, no need to copy translations over (and pay attention to the attribution required by the CC license).
  • Use message bundles. This is a JSON-based format, designed for use in modules, but it’s pretty new, I couldn’t even find any useful documentation on it. (It’s mentioned at mw:Translatable modules/Technical implementation#Proposed solution: Message bundles on module subpage(s), but that page hasn’t been touched in over three years.)
By the way, Module:POTY/header is currently almost twice as big (in terms of bytes) as Template:POTY/header. Does it really make sense to reimplement it in Lua? Much of the complexity comes from HTML and translation markup – HTML is even more complicated in Lua than in wikitext, translation is impossible. —Tacsipacsi (talk) 23:24, 25 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]

All videos uploaded in the last week lack audio[edit]

Hello! All videos uploaded in the last week lack audio, despite the audio can be downloaded in the mp3 transcode. You can check this here. Theklan (talk) 14:41, 23 February 2024 (UTC)Reply[reply]

Thank you for asking the question here, I need help too on this subject! My video , File:Wikimania - The Wikimentary - Edited.webm , does not display sound when viewing in a thumbnail; It does have the mp3 Transcode, though, and also, when I search for it in the search bar, the "preview" played does have audio with it!
Blocktomo (talk) 15:36, 24 February 2024 (UTC)Reply[reply]

Commons mobile phone app – problems with setting author name[edit]

Hi there.

I have some problems with setting an author name to the files I upload from the Commons app I downloaded from F-Droid. I found the "Custom author name" setting, but no matter what value I try to set, I'll never get the result I want.

What I want to achieve: Link to my user page masked as my full name (like this: Jan Štěch, for example on File:Jasan u Milešic 01.jpg).

What I tried:

Any ideas what do I need to set in there?

Thanks in advance. ShadyMedic (talk) 17:21, 24 February 2024 (UTC)Reply[reply]

@ShadyMedic: it appears that the app is automatically wrapping your entry in a user link. What happens if you submit ShadyMedic|Jan Štěch, without the brackets or User:?—Odysseus1479 (talk) 00:01, 25 February 2024 (UTC)Reply[reply]
Hi Odysseus, thank you for your reply. I tried setting the Custom author name to ShadyMedic|Jan Štěch, result of which is another unwanted formatting, which you can see on File:Dálnice D3 – Konec u Českých Budějovic.jpg
.
Do you have any other ideas? ShadyMedic (talk) 16:47, 25 February 2024 (UTC)Reply[reply]
Sorry, no—other than not using the setting, instead making follow-up edits to ‘pipe’ your name. Looking more carefully at the examples it seems to be just duplicating whatever you submit, which seems to me either a bug or a design flaw.—Odysseus1479 (talk) 03:27, 26 February 2024 (UTC)Reply[reply]
Nevermind, still thanks. Just one more question: is there a tool on Commons or perhaps a bot of sorts where I can request to set the Author value of all my uploads to the desired value, so it's done automatically? ShadyMedic (talk) 08:23, 26 February 2024 (UTC)Reply[reply]
i suggest you report this to https://github.com/commons-app/apps-android-commons/issues .
as for a manual patch after upload, you can DIY with com:vfc com:jwb etc. RZuo (talk) 08:43, 26 February 2024 (UTC)Reply[reply]

Broken PNG[edit]

Is there any way to know what is broken about this file? It cannot display a thumb or at full or other resolution. But I cannot even download it to try to work on it locally. DMacks (talk) 22:47, 24 February 2024 (UTC)Reply[reply]

The uploader uploaded File:Photo of a TLC plate Baclofen.tif minutes later, so my guess is that it's the same image. The Squirrel Conspiracy (talk) 23:27, 24 February 2024 (UTC)Reply[reply]
Makes sense. DMacks (talk) 23:28, 24 February 2024 (UTC)Reply[reply]
(Edit conflict) @DMacks: I believe that was a lossless JPEG, from a version of the standard that’s not widely supported outside of medical imaging. FWIW the original file displayed in my browser, and when downloaded could be opened in Apple Preview (but not in Adobe Photoshop).—Odysseus1479 (talk) 23:44, 24 February 2024 (UTC)Reply[reply]
Crazy! I was also using Apple (Firefox), since I have better tools on my Mac for handling a range of situations like that, but couldn't even get as far as downloading it. Thanks for the info. DMacks (talk) 23:49, 24 February 2024 (UTC)Reply[reply]
Safari here, fairly recent. I just tried it on a much older Mac, where it couldn’t be opened with any of Safari, Preview or GIMP. (Too late to check download-ability from there.)—Odysseus1479 (talk) 00:11, 25 February 2024 (UTC)Reply[reply]
@Odysseus1479: I've undeleted it. Is it possible for you to download the file and save it as a different format of jpg? Alternatively, can you confirm that it's identical to File:Photo of a TLC plate Baclofen.tif? Thanks! The Squirrel Conspiracy (talk) 02:29, 25 February 2024 (UTC)Reply[reply]
@The Squirrel Conspiracy: ✓ Done and linked to the (presumably) losslessly compressed TIFF, for anyone who cares, not that there’s any appreciable difference in quality for such a ‘fuzzy’ original. While I was at it I cropped off the white border.—Odysseus1479 (talk) 03:30, 25 February 2024 (UTC)Reply[reply]
Awesome, thanks! The Squirrel Conspiracy (talk) 04:49, 25 February 2024 (UTC)Reply[reply]

CommonsDelinker[edit]

Hi, CommonsDelinker is stuck since 09:06, 23 February 2024. Could someone restart it? Thanks, Yann (talk) 11:40, 26 February 2024 (UTC)Reply[reply]

Tech News: 2024-09[edit]

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