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

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.

d:Q405426[edit]

If you go to Botevgrad, you see language links to complete other articles other than the city in Bulgaria, e.g. de:Uhrturm von Botewgrad and en:Arena Botevgrad. Please, can s.o. fix it, it don't find the solution. Thx and have a nice day! --Mateus2019 (talk) 13:25, 3 November 2022 (UTC)Reply[reply]

@Mateus2019: that happens because it uses {{Wikidata}}, which uses {{Interwiki from Wikidata}}, which makes those links.--RZuo (talk) 17:00, 16 November 2022 (UTC)Reply[reply]
@Mateus2019: instead of {{Wikidata}}, try using {{WikidataItem}}. It also links to Wikidata, but without summoning links to other Wikiprojects. --HyperGaruda (talk) 19:34, 6 December 2022 (UTC)Reply[reply]

Changing the gps border of Data:Iceland/Reykjavík.map[edit]

Hi. I am able to get a more accurate gps dataset of the municipalities borders in Iceland from LMÍ. I'm just wondering what string to request from them so that I can import it into Commons. Here is an example of a map I want to update Data:Iceland/Reykjavík.map Steinninn ♨ 01:34, 19 November 2022 (UTC)Reply[reply]

@Steinninn: If you click on the edit tab, you’ll see the JSON code. The easiest for you is if you ask for exactly that format, but if they provide just the coordinates in JSON, that can also work, like:
[
	// Island
	[[[-21.83275, 64.15974], [-21.84211, 64.15677], [-21.85237, 64.1614], ...]],
	// Mainland part
	[[[-21.61588, 64.25724], [-21.60605, 64.18599], [-21.65519, 64.08156], ...]]
]
(without the // comments, those are just for you), and you simply replace that part. —Tacsipacsi (talk) 19:51, 19 November 2022 (UTC)Reply[reply]

Thank you --Steinninn ♨ 16:24, 21 November 2022 (UTC)Reply[reply]

Strange import by flickr2commons[edit]

File:Felicity Jones (29582838166) (2).jpg (395 KB) and File:Felicity Jones (29582838166).jpg (267 KB) were both imported from https://www.flickr.com/photos/gdcgraphics/29582838166/ . original size on flickr is 395kb. was this a bug of flickr2commons? has it been fixed? RZuo (talk) 09:10, 21 November 2022 (UTC)Reply[reply]

Tech News: 2022-47[edit]

MediaWiki message delivery 23:19, 21 November 2022 (UTC)Reply[reply]

Tech News: 2022-48[edit]

MediaWiki message delivery 20:00, 28 November 2022 (UTC)Reply[reply]

I cannot add a description[edit]

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)Reply[reply]

@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)Reply[reply]
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)Reply[reply]
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)Reply[reply]

Invisible file[edit]

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)Reply[reply]

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)Reply[reply]

Filter false positive[edit]

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)Reply[reply]

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

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)Reply[reply]

Increasing number of my deleted edits[edit]

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)Reply[reply]

@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)Reply[reply]
Thank you for informing me. But That is not fair. Shkuru Afshar (talk) 20:33, 6 December 2022 (UTC)Reply[reply]

Tech News: 2022-49[edit]

MediaWiki message delivery 00:39, 6 December 2022 (UTC)Reply[reply]

How to search under 6807 photos[edit]

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)Reply[reply]

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)Reply[reply]

Google search gadget error on mobile devece[edit]

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)Reply[reply]

Page asks for permission to leave the page (bug)[edit]

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)Reply[reply]

@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)Reply[reply]

Category error[edit]

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)Reply[reply]

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)Reply[reply]

Citation "widget"[edit]

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)Reply[reply]

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)Reply[reply]
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)Reply[reply]
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)Reply[reply]
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)Reply[reply]
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)Reply[reply]
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)Reply[reply]
@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)Reply[reply]

Help with Template:Year at airport[edit]

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)Reply[reply]

Tech News: 2022-50[edit]

MediaWiki message delivery 23:32, 12 December 2022 (UTC)Reply[reply]

CSRF token rejection[edit]

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)Reply[reply]

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

Local-multiwrite error when trying to delete file[edit]

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)Reply[reply]

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

Tech News: 2022-51[edit]

MediaWiki message delivery 23:57, 19 December 2022 (UTC)Reply[reply]

Editing watchlist - server timeout error[edit]

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)Reply[reply]