Commons:Village pump/Technical/Archive/2022/12

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

I cannot add a description

Breaking my mind over it... For File:1665 Girl with a Pearl Earring.jpg trying to add a Russian part to the Description section, exactly like that: {{ru|1=«[[w:ru:Девушка с жемчужной серёжкой (картина)|Девушка с жемчужной серёжкой]]», [[w:ru:Вермеер, Ян|Ян Вермеер]], около 1665 года.}} - already reverted, see page history. But after that all descriptions (including mine) do disappear - except the English one. What possibly am I doing wrong? NeoLexx (talk) 11:03, 1 December 2022 (UTC)

@Neolexx: I see all four languages. You may have run into m:Meta:Language select, which kicks in only after a certain number of languages have been added (I remembered three, but it may be four). —Tacsipacsi (talk) 16:43, 1 December 2022 (UTC)
Holy Him of heaven!.. Thank you, Tacsipacsi, I was already getting crazy trying to find an error in char-by-char input checks. That was it. For such hidden functionality one should impose the most severe punishments on developers. Like no doughnuts to the whole team and the whole day... --NeoLexx (talk) 20:31, 1 December 2022 (UTC)
P.S. I went to my Preferences > Gadgets and unchecked Language select (it is on by default). After that that damn thing disappeared right away so I finally made the edit (diff) being able to actually see it. --NeoLexx (talk) 20:46, 1 December 2022 (UTC)

Invisible file

Hello, I have uploaded this file: https://commons.wikimedia.org/wiki/File:Benesov_Machova_400_nemocnice_a.jpg . It appeared in my list of contributions, Wikimedia tracker for a project recorded it, but the file page says "The file does not exist, but you can upload it". I have tried to reupload it, but the uploader doesn't let me (first saying "this appears to be an exact duplicate of a file already on Commons", but letting me proceed, but then saying "this appears to be an empty file"). I don't think there's anything wrong with the file, just a photo like any other; more likely it got corrupted on Commons. Can it be somehow 'revived'? Or do I have to upload it under a different name? Thanks. --JiriMatejicek (talk) 19:17, 4 December 2022 (UTC)

Purge is needed. @JiriMatejicek: Použijte purge (vyčištění cache). Lze zapnout v udělátkách přímý odkaz, nebo klikněte na odkaz zde. — Draceane talkcontrib. 19:44, 4 December 2022 (UTC)

Filter false positive

Tried changing a category from "arrows" to "traffic signals with arrows" and it said I was disallowed. 137a (talk) 13:23, 5 December 2022 (UTC)

Join the Coolest Tool Award 2022: Friday, Dec 16th, 17:00 UTC

The fourth edition of the Wikimedia Coolest Tool Award will happen online on Friday 16 December 2022 at 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! -Komla


MediaWiki message delivery 18:53, 5 December 2022 (UTC)

Tech News: 2022-49

MediaWiki message delivery 00:39, 6 December 2022 (UTC)

Increasing number of my deleted edits

Hi

In 2022 I almost none of my edits haven't been reverted or deleted. Yesterday I 385 deleted edits and today I have 398 deleted edits. Why it is happening? Why number of deleted items increase without any deletion or reverting?

Right now (in less that 6 hours) I have 403 deleted edits!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! How come????????????????????????????????????????????????????????????

Cheers Shkuru Afshar (talk) 23:45, 5 December 2022 (UTC)

@Shkuru Afshar: every time you nominate a file for deletion, you (automatically) edit the file to include a deletion template. Once somebody actually deletes that file, the edit where you added the deletion template is also deleted. Nothing to worry about. --HyperGaruda (talk) 19:15, 6 December 2022 (UTC)
Thank you for informing me. But That is not fair. Shkuru Afshar (talk) 20:33, 6 December 2022 (UTC)

How to search under 6807 photos

Hi, the Category:Satellite pictures of Chile has 6807 photos but no index or help to search some place.

  1. Is it posible to add to the category page some bar "1-50 51-100 101-150 ..." to help to (re)find some image?
  2. Better, is it posible to read all the "object location" (e.g.: 32° 06′ S, 73° 00′ W ) of every image in order to create an imagemap with an zone image and the respective fotos?
  3. is there other alternative?

Juan Villalobos (talk) 18:32, 7 December 2022 (UTC)

Re option 2: if you add {{ Object location-32.1-73.0 }} to the category (you don't have to save it, just check the results in preview mode), a link to Openstreetmaps will lead you to a map with all geocoded images in the category. A word of caution: thousands of images may cause lag.
Re option 3: you could try a regular search while including the phrase incategory:"Satellite pictures of Chile". --HyperGaruda (talk) 18:54, 7 December 2022 (UTC)

Google search gadget error on mobile devece

During the last weeks every time i try to use Google Lens search button on the top of a file page (MediaWiki:Gadget-GoogleImagesTineye.js) on a Android smartphone browser (on computer version) I get 404 error. It's a significant problem because on a computer i may use drag and drop method alternatively whereas on mobile that gadget is an only way to search copyvios. ~Cybularny Speak? 21:56, 7 December 2022 (UTC)

Tech News: 2022-50

MediaWiki message delivery 23:32, 12 December 2022 (UTC)

Citation "widget"

Is there a way to have the citation widget in the Commons editor as on Wikipedia? To be able to generate templates such as {{Cite book}}, {{Cite web}}, or {{Cite journal}} by providing an ISBN, a URL, or a DOI (for instance). (typical use case: add the sources) A455bcd9 (talk) 16:57, 10 December 2022 (UTC)

Not as such as Commons doesn't use visual editor. However, en:Wikipedia:ProveIt and en:Wikipedia:RefToolbar should be working. Most likely proveit is easier to install if somebody with suitable rights to edit gatgets wants to try. -- Zache (talk) 00:46, 11 December 2022 (UTC)
Thanks @Zache. You don't need the visual editor to use this tool on Wikipedia: it works well in the source editor. en:Wikipedia:ProveIt and en:Wikipedia:RefToolbar look nice but they're nowhere as good as the default tool on Wikipedia that generates the whole template just based on a URL (or any other unique identifier). A455bcd9 (talk) 07:54, 11 December 2022 (UTC)
Both of them can generate the template from the url. Also there is no afaik non-visual editor version of visual editors citoid integration which was mentioned in the diff article which you linked. Enwiki's wikitext editor citation tool enabled by default is the RefToolbar. -- Zache (talk) 07:57, 11 December 2022 (UTC)
Hm. That's not what I saw in the video. Anyway what I'm looking for is citoid, which indeed requires the VisualEditor. I activated the VisualEditor in my Beta settings on Commons, and I do see it. But I don't see citoid: why? A455bcd9 (talk) 08:03, 11 December 2022 (UTC)
Help:Gadget-ProveIt works here and supports citoid indeed. Thanks @Zache! A455bcd9 (talk) 08:05, 11 December 2022 (UTC) Actually, it doesn't seem to be enabled here, I don't understand why. A455bcd9 (talk) 08:21, 11 December 2022 (UTC)
Hmm, i didn't have new wikitext mode enabled from enwiki's beta AND in that there is indeed visual editor's citation tool enabled. So that explains it. I think that enabling it would require least w:en:MediaWiki:Citoid-template-type-map.json and citoids mappings to themplatedata w:en:Template:Cite web/doc (see source code of page and there templatedata and citoid parameter inside json definition). Most likely third thing would be phabricator request for configuration change to enable visualeditor cite tool in commons. -- Zache (talk) 08:27, 11 December 2022 (UTC)
@Zache, as suggested here I've just started a discussion to enable one of these gadgets, see: Commons:Village_pump/Proposals#Enable_ProveIt_or_Citoid_on_Commons. A455bcd9 (talk) 12:25, 13 December 2022 (UTC)

CSRF token rejection

I got locked out of Commons for a few minutes just now; it kept rejecting the CSRF token. Clearing the browser history did not help. But then it suddenly started working again. Did anyone else experience this? Brianjd (talk) 12:26, 13 December 2022 (UTC)

I've just had the same issue: now everything is working. A455bcd9 (talk) 12:27, 13 December 2022 (UTC)
There was an incident: phab:T325056. —Tacsipacsi (talk) 08:54, 14 December 2022 (UTC)

Local-multiwrite error when trying to delete file

I think I encountered this a long time ago, but I forget the solution. I tried to delete the following image after closing the DR (File:Goodenough Sakhile Dlamini.jpg) but it keeps giving me a local-multiwrite error whenever I try to delete it. IronGargoyle (talk) 01:16, 16 December 2022 (UTC)

@IronGargoyle Unfortunately, there is no real solution, other than the instructions in Category:Deletion error. AntiCompositeNumber (talk) 02:05, 16 December 2022 (UTC)

Tech News: 2022-51

MediaWiki message delivery 23:57, 19 December 2022 (UTC)

Category error

Hi everyone, I recently noticed an error when adding categories: when I add a category that exists under a different name and thus has to be redirected, then another category that I added will be removed when saving the edits. I have noticed that a few times now, most recently with File:POR Porto Rua de Cedofeita 03.jpg. The first category I added was Category:Rua de Cedofeita, the second one was Category:Church doors in Portugal. The second one was automatically changed to Category:Church portals in Portugal and during that change, the first category disappeared, so that I had to add it again. Sometimes I notice this but sometimes when a larger number of categories is added, this can go unnoticed which is really annoying (and also kinda "harmful" to the project). It would be highly appreciated if someone could have a look into this. Best wishes from Germany. wuppertaler Post um 15:30, 8 December 2022 (UTC)

And again: Category:Arched doors was automatically changed to Category:Arch doors, and during this process Category:Depósito de Materiais da Companhia Cerâmica das Devesas disappeared.. I add categories via Help:Gadget-HotCat, if that helps. Kind regards. wuppertaler Post um 15:40, 8 December 2022 (UTC)
That's really strange. -- Tuválkin 22:19, 21 December 2022 (UTC)

Editing watchlist - server timeout error

Hi, I am trying to edit and clear my watchlist on Commons (it has over 19.000 pages, uploads from content donations), but when I hit the 'Edit your watchlist' button I get an error message ' Request ID: 69829cb9-d045-44d9-b372-8ca953b4fb47 Allowed memory size of 698351616 bytes exhausted (tried to allocate 65060168 bytes)'. I guess it is because there are to many files on there? How can I fix this (if I cannot edit my watchlist, I can also not remove the files..) Thanks for helping me out or pointing me in the right direction! MichellevL (WMNL) (talk) 15:21, 20 December 2022 (UTC)

You have to open Special:EditWatchlist/raw the other one does not work for many pages see: --GPSLeo (talk) 19:05, 21 December 2022 (UTC)

Mediaviews

How exactly the Mediaviews tool counts views of a given image at Commons, e.g. here? When an image is clicked through the relevant WP article, when the image is clicked at Commons or somehow else? Brandmeister (talk) 15:31, 21 December 2022 (UTC)

This count every visit of page where the file is on the page. The file does not need to be visible for the visitor, if the file in on the bottom of the page and the visitor does not scroll down this is also counted as a mediaview. --GPSLeo (talk) 19:00, 21 December 2022 (UTC)
Wow. That explains some high viewcounts of uploaded images. Brandmeister (talk) 12:59, 22 December 2022 (UTC)

"Lua error in Module:Wikidata_date at line 190: attempt to concatenate local 'adj' (a nil value)"

Hello. Those the summaries of those two files show the same error ("Lua error in Module:Wikidata_date at line 190: attempt to concatenate local 'adj' (a nil value)") since I have updated the names of the files in the gallery:

Could someone fix this ? Veverve (talk) 22:35, 24 December 2022 (UTC)

It is complaining about property P4241 (refine date) being missing under P577 (publication date) on d:Q108736980. Snævar (talk) 23:14, 24 December 2022 (UTC)
@Snævar: I have added it to the Wikidata item, but it does not work. I have also tried removing P577 and it did not fix things either. Veverve (talk) 23:30, 24 December 2022 (UTC)
@Snævar: I do not know how, but now it appears to be fixed. Veverve (talk) 05:42, 26 December 2022 (UTC)

Multilingual "References" template

Is there something like {{int:filedesc}} (=> Summary) but to display "References" in the user's preferred language? I currently use {{ucfirst:{{I18n/references}}}} (=> References) and I would prefer a simple syntax such as {{int:ref}} or a template such as {{Source}}. A455bcd9 (talk) 09:35, 30 December 2022 (UTC)

Can page titles start in lower case in non-latin scripts?

if i understand correctly, all pages in all namespaces that start with a latin letter must start with A-Z, right? then what about other scripts, cyrillic, arabic, indian ones...? if those scripts have their equivalent "lower case" letters, can page titles (like filenames) start with those? RZuo (talk) 18:31, 27 December 2022 (UTC)

Firstly, only a minority of scripts employ dual letter case; of the ones you listed, only Cyrillic. Secondly, both en:w:WP:NCLOWERCASEFIRST (Latin script) and ru:w:ВП:ТЕХН (Cyrillic script) explain that it is technically impossible to start with lower case. They also describe that a work-around is needed to have the title look like it starts with lower case, even though the "base" title is still capitalised. --HyperGaruda (talk) 05:48, 28 December 2022 (UTC)
The question is valid, and what Russian Wikipedia says does not necessarily apply here – capitalization is based on the site language (which is English on Commons). For example, istanbul is normalized to Istanbul on Commons, but would be normalized to İstanbul if the site language was Turkish. However, “based on the site language” doesn’t mean that it uses a hardcoded table of lowercase → uppercase values, but the PHP functions ucfirst (which handles only English letters) and mb_strtoupper (which should handle accented Latin-script letters and other bicameral scripts) are used. (There could be exceptions set for this, but as far as I see, there are none right now.) By the way, it’s easy to see if certain file names would be capitalized: if you hover over file:москва.jpg, you’ll see that the URL contains an М instead of an м. —Tacsipacsi (talk) 10:32, 29 December 2022 (UTC)
My experience is that, upon page creation, the first character of a page name is always normalized to its upper case variant, if applicable: That would be based on the character’s Unicode property Case Mapping: Upper value (and therefore excluding specific tailorings, such as the mentioned hard dotted Turkic "i" and such others). Most characters do not have any case mapping but almost all letters of a few scripts do: Latin, Greek, Cyrillic, Armenian, Georgian, Glagolitic, Coptic, Cherokee, Deseret, Osage, Vithuqi, Caucasus Albanian, Hungarian Runic, Warang Citi, Medefaidrin, and Adlam. -- Tuválkin 08:46, 31 December 2022 (UTC)

Structured data for user-created maps?

On Commons, how should we tag the source(s) of maps created by users based on existing work? Examples:

Commons:Structured data/Modeling/Source says that {{Based}} is "still under discussion".

When a reference URL is available, I used it. Sometimes I used the DOI of the article but it returns an error. I also used "published in" (e.g., with Ethnologue: Languages of the World, 25th Edition (Q115923483), see File:Arabic_Varieties_Map.svg for an example).

But maybe based on (P144) is better? A455bcd9 (talk) 09:45, 30 December 2022 (UTC)

Found the answer to my question here: d:Help:Sources#Web_page: "Please note if the web page belongs to a major web site that already has an item in Wikidata, you should use publisher." and all the other qualifiers if possible (title, publication date, etc. "so the source can be tracked down if the URL changes"). A455bcd9 (talk) 08:09, 31 December 2022 (UTC)

Category:Unsupported event

where does Category:Unsupported event come from? what should be done to get rid of it from pages? afaict, it's added by {{Artwork}}? @Zolo: do you have more info about this cat? RZuo (talk) 09:46, 31 December 2022 (UTC)

Looking at one random example, it seems to come from the institution templates, i.e. from Module:Institution (or one of its dependencies), and it probably means that the module could not process some Wikidata data. Maybe someone can help on its talk page. —Tacsipacsi (talk) 10:50, 31 December 2022 (UTC)

Template:Year at airport automatically categorizes into "Category:YYYY at airports by location" (YYYY=year). It should use "Category:YYYY at airports by country" if existing. If this category does not exist, use "Category:YYYY at airports by location" instead (as it is now). I am not too much into template programming, so can anyone please do this for me? --2001:4652:FBAF:0:B4CB:3ECC:59F6:6FA1 20:10, 12 December 2022 (UTC)

Nobody? --2003:D0:3F0C:6892:40AC:94CA:8694:13DC 16:19, 22 December 2022 (UTC)
Where to get support in regards to templates? --88.128.92.26 12:21, 4 January 2023 (UTC)
This would be the correct place. You just need be lucky that a volunteer feels like digging into the code. I have implemented your request, but I am not going to sort out what relevant categories are now double-categorised through both the template and [[:Category:YYYY at airports in InsertCountry]]. It has no further effect on the result, but just looks a bit messy/redundant in the wikicode of the affected categories. --HyperGaruda (talk) 13:06, 4 January 2023 (UTC)
Thank you so much. --2001:4652:FBAF:0:892D:A144:2B0C:BEE4 18:44, 6 January 2023 (UTC)

File pages ask for confirmation when closing them, even when there are no unsaved changes (bug)

Sometimes pages ask for permission to close it or refresh it, even when the user did not edit anything. see example and try to navigate to another page or click the "File" tab to reload the page. example If someone understands what is happening here and knows a fix, please let me know. I would want to fix it on the pages whenever I see this behavior. But if it is a template error, the template should be checked and repaired. Tx Peli (talk) 04:11, 8 December 2022 (UTC)

@Pelikana Keeps happening to me too (Firefox), I'm wondering if that might be connected to COM:SDC somehow ... El Grafo (talk) 08:37, 8 December 2022 (UTC)
I have been getting that a lot in recent months. At first I though it was a matter that the page takes a little longer to fully load than usual, but even if it’s that, it’s still bad. (Fireforx on Win10 here). -- Tuválkin 22:21, 21 December 2022 (UTC)
The section was poorly worded; I have changed the heading. It is not really about ‘permission’, but rather about confirmation that the user wants to abandon their unsaved changes. This behaviour is a bug, because there are no such changes to abandon. It occurs when closing the existing page, which includes refreshing it or navigating away.
I have also observed this bug many times (on Firefox); it seems to occur during a specific stage of loading the page (it doesn’t occur very early in loading and doesn’t occur after the page has finished loading). I just noticed that if I choose to stay on the page, then the page continues displaying this buggy behaviour until I choose to close it. This might help someone (with access to non-minified code?) with debugging. Brianjd (talk) 09:14, 25 December 2022 (UTC)
Everyone can access the non-minified code – first, all source code is available on Git with several frontends (Phabricator, Gerrit/Gitiles, GitHub); second, you can avoid minifying the JavaScript codes by appending ?debug=1 to the URL (or &debug=1 if it already contains a question mark). —Tacsipacsi (talk) 15:13, 25 December 2022 (UTC)
@Tacsipacsi Of course, I just didn’t know how to get it in a production environment. The debug=1 parameter works; it also seems to make it so only one thing loads at a time, which is also useful here.
When I used this parameter, initially, the ‘file information’ and ‘structured data’ screens displayed together, then ‘structured data’ disappeared behind a non-selectable tab (clicking it did nothing). When the tab became selectable, immediately refreshing the page triggered the bug. Stepping through the code in the debugger revealed that property P1259 seemed to have a problem and, sure enough, property P1259 (along with property P1949 – these are both coordinates properties) had its edit screen open. Brianjd (talk) 15:21, 26 December 2022 (UTC)
@Brianjd: Thanks for debugging! I found phab:T312315 about this issue, so I left a comment there about your results. —Tacsipacsi (talk) 10:40, 29 December 2022 (UTC)
@Tacsipacsi I just happened to open the structured data on another file (Naked in the streets.jpg, though I don’t think it matters) before it finished loading, and saw the ‘depicts’ section switch to edit mode, then back to normal, all by itself. I suspect it happens with all properties, but haven’t been able to verify this. Brianjd (talk) 06:32, 13 January 2023 (UTC)
  • I don't know if it's relevant but I've been experiencing this with Chrome too for some time now, Always thought it was related to me for some reason, Good to know it's not, –Davey2010Talk 02:01, 14 January 2023 (UTC)
I have got this a lot for quite a while, too. It's really annoying. I mostly use Firefox, but I believe it has happened in Chrome as well. Blue Elf (talk) 10:35, 18 January 2023 (UTC)

File usage

If a file is used at a Wikidata item, and that item is linked from another page, then that page is listed as using that file. Examples are given at File talk:Sunburn flickr 01.jpg#File usage, where I claimed that this is a bug. It is certainly very confusing. Is it the intended behaviour? Brianjd (talk) 06:14, 22 December 2022 (UTC)

This in intended. File usage shows every page where the file is visible. The file does not have to be in the Wikitext of the page. GPSLeo (talk) 06:29, 22 December 2022 (UTC)
@GPSLeo For the examples I cited, the images are not visible on those pages. In one case, even the Wikidata link is not visible; the only connection I can find is a Wikidata ID in the page’s markup. Brianjd (talk) 06:32, 22 December 2022 (UTC)
I can see the image in the box on all these Wikipedia pages. Only on the Wikivoyage page I could not fine this photo in my quick search. --GPSLeo (talk) 18:20, 22 December 2022 (UTC)
@GPSLeo The Wikipedia pages are fine. I specifically asked about the Wikivoyage page, then gave a second example on Wikivoyage. In both cases, the photo is not shown on the page. Brianjd (talk) 12:28, 23 December 2022 (UTC)
As a bureaucrat/administrator on Wikivoyage, I strongly agree that we do not need to be informed except when an image visible on a Wikivoyage page has been nominated for deletion or tagged for speedy deletion. We really don't care about Wikidata images that are not shown as thumbnails or pagebanners in Wikivoyage articles. -- Ikan Kekek (talk) 13:27, 23 December 2022 (UTC)
If you edit wikivoyage:Tunisia, you'll see that the "Wikidata entities used in this page" list includes "sunburn: Statement: P625, Statement: P18, Title", so something on the page is querying the image (P18) for sunburn (Q649717) even if it's not rendering it on the page. And indeed that's what wikivoyage:Module:Marker does: it queries image (P18) for every marker with a Wikidata link even though it only uses the result when the Wikidata item also has co-ordinates (which sunburn (Q649717) does not). Possibly this is a bug in MediaWiki, and uses of image (P18) by a script shouldn't cause the image to be marked as being in use unless the image is actually included in the page. But it could be worked around by modifying wikivoyage:Module:Marker to only query image (P18) where it's actually going to use the result. --bjh21 (talk) 15:39, 19 January 2023 (UTC)
Regarding the wikivoyage:GlasgowFile:Wfm barrowland ballroom.jpg link mentioned by Brianjd, that one really does appear on the page. Click the "2" next to the words "The Barrowland Ballroom" and a map will open up. Click the "2" on the map and it will sprout a label containing File:Wfm barrowland ballroom.jpg. --bjh21 (talk) 15:48, 19 January 2023 (UTC)
@Bjh21 I had no idea that the numbers were links or that such a map existed! Brianjd (talk) 07:12, 20 January 2023 (UTC)
@Ikan Kekek It’s interesting that you were apparently unaware of this too. How many Wikivoyage users actually know about this? Brianjd (talk) 07:15, 20 January 2023 (UTC)
Very few, I imagine. Ikan Kekek (talk) 07:26, 20 January 2023 (UTC)
@Ikan Kekek It might be time to redesign the interface then. Brianjd (talk) 07:29, 20 January 2023 (UTC)
Wait: No, I know this, and I think a lot of users do. The whole point of the numbers, which are geocoding numbers, is to represent specific points on dynamic maps. -- Ikan Kekek (talk) 07:30, 20 January 2023 (UTC)
No. Wikivoyage users don't need to know they can click the numbers in order to see them on the map. This does not have to be redesigned. -- Ikan Kekek (talk) 07:32, 20 January 2023 (UTC)
I think the first time I looked at that page, I went straight to the markup and searched for the Wikidata ID, then went back to the rendered page and went straight to the list where that Wikidata ID was referenced. I never actually saw the map. But even if I did, I am not sure that I would have made the connection because: (1) The map is so far away from the lists. (2) The numbers in the lists do not look like map pins.
I do know the connection between numbers and maps, having seen it elsewhere (but always on embedded Google Maps, I think). Brianjd (talk) 07:38, 20 January 2023 (UTC)
I think most users who wanted to use a dynamic map would click on the map, see the numbers, look at the article and see that they represent listings in the article. -- Ikan Kekek (talk) 08:14, 20 January 2023 (UTC)