Commons:Village pump/Technical

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/2022/07.

COMMONS DISCUSSION PAGES (index)
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.

Tech News: 2022-29Edit

22:58, 18 July 2022 (UTC)

Question about Template:WEdit

Hello!

Why is a colon written with italics in {{W}}? See for example File:Wiki.png. It seems weird with the colon in italics. Jonteemil (talk) 09:56, 19 July 2022 (UTC)

I can see that it was added at the request of Sarang in 2016, though it's not obvious why. Maybe he can remember why? --bjh21 (talk) 13:01, 19 July 2022 (UTC)
AFAIK the edit of 2016-11-25 does not only result on a request by me.
Nevertheless, it makes an optical difference whether you link a file with {{W}} as above File:Wiki.png, or with {{F}} File:Wiki.png
(the link target is in both cases identical). IMHO {{W}} is more thought for articles, other namespaces as {{C}}, {{F}}, {{M}}, {{T}}, {{U}} have their own link templates.
But I see also no use or advantage to write the colon in bold & italic. -- sarang사랑 13:42, 19 July 2022 (UTC)
@Sarang: Sorry; I linked to the wrong edit. It should have been the next one, Special:Diff/219240806. You added the ''''' to the sandbox in Special:Diff/218747469. --bjh21 (talk) 14:45, 19 July 2022 (UTC)
@Bjh21: I can see now, yes, it is my guilt; but I cannot remind why I thought in 2016 that italic looks better 👀.
As I wrote above, {{W}} can be used and it is correct for all namespaces, but may not be the best choice for foreign files.
The template is protected also against template editors, so when a consensus for a change can be found it is not my turn. -- sarang사랑 15:01, 19 July 2022 (UTC)

Migrating licensesEdit

Hello, do you know where I could ask for someone to mass migrate the license of 5,000 files ? Luilui6666 uploaded her files under CCBYSA. Following a request by HK's computer linguists, she publicly announced her will to share her audio files under dual CCBYSA / CC0. But who could migrate all those files to dual license ? @VIGNERON and Kanashimi: Yug (talk) 11:32, 20 July 2022 (UTC)

Perhaps you could give a more detailed description of what to do and give some demo edits? Kanashimi (talk) 23:46, 23 July 2022 (UTC)

How to find click stats on uploaded video?Edit

I've uploaded a few videos, and I'd like to see how many people click on the videos and watch them.

I start here: https://commons.wikimedia.org/wiki/Category:Wikipedia_page_view_statistics

I then click "Video clicks" and I get a page not found.

How can I find out these clicks? Don Wiss (talk) 02:13, 25 July 2022 (UTC)

@Don Wiss: I know there's an external tool that counts media views, but I'm not sure if that's what you are looking for. Weeklyd3 (talk) 17:10, 28 July 2022 (UTC)
If that doesn't work, try pageviews, but I believe that's only for people loading the description page on Commons. Weeklyd3 (talk) 17:11, 28 July 2022 (UTC)

Tech News: 2022-30Edit

19:25, 25 July 2022 (UTC)

Weird observationsEdit

Hello!

I'm often browsing Commons with my iPhone with desktop view. Currently there have been some weird observations, since just the past hour or so. Firstly when I refresh or enter a new page on Commons I enter it automatically zoomed in onto the bottom left or top left corner, so I have to zoom out to see the content of the page. Secondly the search bar is supermall, like a third of the length of the normal size. These issues I couldn't reproduce on Wikipedia so it seems it's Commons that has some issue at the moment. Jonteemil (talk) 23:30, 27 July 2022 (UTC)

When I logged out it went away, can it be something with my account? I haven't done any updates to my common.js or anything like that so it should not be.Jonteemil (talk) 23:34, 27 July 2022 (UTC)
Reproducable on Wiktionary, but still not Wikipedia.Jonteemil (talk) 23:35, 27 July 2022 (UTC)
Now also present at Wikipedia, see w:WP:VPT#Search box and default zoom messed up while using desktop on mobile.Jonteemil (talk) 15:37, 29 July 2022 (UTC)

Why do user scripts have to be valid ECMAScript 5 even though ECMAScript 6 works perfectly in my browser?Edit

(Note: This may be suitable for somewhere else. If so, please tell me, because I'm currently writing a user script.)

To reproduce, try putting something like (function(param = "defaultValue") {})();. It outputs:

JavaScript parse error (scripts need to be valid ECMAScript 5): Parse error: Unexpected token; token , expected in file 'User:Weeklyd3/common.js' on line 6

...and refuses to run. Why? Thanks in advance.

(And no, I didn't save the page, so that code isn't there.) Weeklyd3 (talk) 05:47, 28 July 2022 (UTC)

Fichage —Preceding unsigned comment was added by 196.89.46.87 (talk) 00:17, 30 July 2022 (UTC)

That is becouse we have not really moved fully from ECMA 5 to ECMA 6, although that is the plan. WMF (the host of this site) is still using Jquery UI, which uses ECMA 5, but is planning to move to Vue.js, which uses ECMA 6. Eventually this requirement will be replaced with ECMA 6.--Snævar (talk) 07:01, 30 July 2022 (UTC)
This is bug phab:T178356.--Snævar (talk) 07:14, 30 July 2022 (UTC)

We need a new bot to add uncategorized category automaticallyEdit

So right now there is no way to search for images that have non-hidden categories. The only way you can is using Category:Media needing categories 's template but that template isn't automatically applied (well it used to be, but that bot needed to be rewritten and nobody ever bothered to do that).

Having them be searchable atleast makes it easier to use in tools like WikiMap to see them on a map, which helps with categorization thibaultmol (talk) 23:43, 30 July 2022 (UTC)

Maybe so, but there is a way to find them, Special:UncategorizedFiles.--Snævar (talk) 22:06, 3 August 2022 (UTC)
Those are all images without categories (but also no hidden categories).
What I meant is that there are many images on Commons that have no NON-HIDDEN categories. which don't show up on that page. thibaultmol (talk) 06:58, 4 August 2022 (UTC)
It looks like SteinsplitterBot used to do this, but looking through its contributions the last time it did so was in April. @Steinsplitter: Is the bot unhappy? --bjh21 (talk) 12:21, 4 August 2022 (UTC)

Display issue of MediaWiki:Gadget-LicenseReview.jsEdit

This script looks pretty strange on the vector skin since last week - I believe this is caused by some update in 1.39.0-wmf.22, but I failed to find how to fix it. Is there anyone willing to give a hand? Thanks a lot. Stang 23:49, 31 July 2022 (UTC)

Bot that goes over images with Location template in page but not in SDC yetEdit

and then adds the new location as SDC

(currently for ex Locator-tool only adds the template, not the SDC) thibaultmol (talk) 06:24, 1 August 2022 (UTC)

I have seen SchlurcherBot and BotMultichill do that. --HyperGaruda (talk) 13:05, 4 August 2022 (UTC)

Translation of the "Welcome" message on the Main pageEdit

Hello! I've found a thing: if the Wikimedia Commons is opened in its mobile version, it shows a "Welcome, <username>!" message on the top. AFAIK, it is not related to the {{Main Page Template}} template. Does anyone know how and where I could suggest translation of that message?

TWIMC, a translation in Russian would be: "Добро пожаловать, <username>!"

Thanks! — Pacha Tchernof (talk) 17:25, 1 August 2022 (UTC)

Tech News: 2022-31Edit

21:19, 1 August 2022 (UTC)

File:Keep tidy ask.svgEdit

This file, used by Template:Delete, is apparently broken. The preview images of all versions are gone, and when I click on the links for them, I get an error message saying "File not found: /v1/AUTH_mw/wikipedia-commons-local-public.15/1/15/Keep_tidy_ask.svg" (path varies). What happened here? --Rosenzweig τ 12:30, 7 August 2022 (UTC)

see phab:T314712. Snævar (talk) 15:53, 7 August 2022 (UTC)

Possible bug in the Wikimedia Commons mobile appEdit

Hello everyone. I wanted to ask you about a possible bug in the Wikimedia Commons mobile app.

If I enter the statistics of my profile in the App, I see that I have 89 Quality images; however, I have been including my quality images in this category, and they are 124. I suppose that the App takes the data from another party, not necessarily from that category.

Could someone tell me what the error is? Thanks for your help. Drow male (talk) 16:59, 8 August 2022 (UTC)

Tech News: 2022-32Edit

19:47, 8 August 2022 (UTC)

JS errorEdit

While previewing edits in source mode, I keep getting a pop-up message with the following content: TypeError: itemsById[id] is undefined from https://commons.wikimedia.org/w/load.php?lang=en-gb&modules=ext.discussionTools.init%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui%7Coojs-ui.styles.icons-editing-advanced&skin=monobook&version=1i04l at line 99:755 ThreadItemSet.js/ThreadItemSet.static.newFromAnnotatedNodes/item.replies<@https://commons.wikimedia.org/w/load.php?lang=en-gb&modules=ext.discussionTools.init%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui%7Coojs-ui.styles.icons-editing-advanced&skin=monobook&version=1i04l:99:755 ThreadItemSet.js/ThreadItemSet.static.newFromAnnotatedNodes@https://commons.wikimedia.org/w/load.php?lang=en-gb&modules=ext.discussionTools.init%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui%7Coojs-ui.styles.icons-editing-advanced&skin=monobook&version=1i04l:99:738 init@https://commons.wikimedi ...

The changes, however, don't seem to be affected. De728631 (talk) 13:51, 9 August 2022 (UTC)

I also got these. Yann (talk) 14:24, 9 August 2022 (UTC)
It started a few days ago, see Commons:Forum#Irgend ein Scheiß. --Rosenzweig τ 17:02, 9 August 2022 (UTC)
And Commons:Village pump#Type Error. --Rosenzweig τ 17:07, 9 August 2022 (UTC)
Same here. — Tulsi 24x7 06:25, 10 August 2022 (UTC)
Did anyone fill up a bug report on Phabricator? Yann (talk) 09:31, 10 August 2022 (UTC)
I did now. De728631 (talk) 21:05, 10 August 2022 (UTC)

What is the proper way to automatically obtain licensing infoEdit

I have a list of files and their claimed licences/credits, some linking back to Commons. I want to extract Commons licences, and maybe also thumbnails for comparison.

What is the proper way to obtain machine readable licensing info? I see https://commons.wikimedia.org/wiki/Commons:API with for example https://magnus-toolserver.toolforge.org/commonsapi.php?image=Sa-warthog.jpg&thumbwidth=150&thumbheight=150&versions&meta but can I expect this to work well long-term? Is there some official way to do this? Mateusz Konieczny (talk) 07:45, 14 August 2022 (UTC)

Tech News: 2022-33Edit

21:06, 15 August 2022 (UTC)