Commons:Village pump/Technical

Shortcuts: COM:VP/T· COM:VPT

Community portal
introduction
Help deskVillage pump
copyrightproposalstechnical
Administrators' noticeboard
vandalismuser problemsblocks and protections
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.

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: 2020-29Edit

18:09, 13 July 2020 (UTC)

No preview for mpeg videoEdit

The file File:Water rocket liftoff slow motion.mpg does not have a preview generated. It plays nicely in the commons video player, but when clicking on one of the preview image links of the file page for example on the 320px preview you see the following error message since several days:

If you report this error to the Wikimedia System Administrators, please include the details below.

Request from 89.1.45.106 via cp3065 frontend, Varnish XID 283743842
Upstream caches: cp3065 int
Error: 429, Too Many Requests at Tue, 14 Jul 2020 08:14:31 GMT

Anything we can do about this? I allready posted this question to Commons_talk:Video#Preview_for_mpeg_video_not_working but got no reaction. -- Dr. Schorsch (talk) 08:17, 14 July 2020 (UTC)

See bug phab:T244570. It is being worked on.--Snaevar (talk) 21:22, 18 July 2020 (UTC)
Thanks for the good news! -- Dr. Schorsch (talk) 14:42, 19 July 2020 (UTC)

Commons imageinfo API not always showing licenseEdit

I just noticed that I do not always see the licensing information. This

 https://commons.wikimedia.org/w/api.php?action=query&format=json&titles=File%3ANasone_10_01_51_518000.jpeg&prop=imageinfo&iiextmetadatalanguage=it&iiprop=extmetadata%7Cuser

leads to this reply:

 {"batchcomplete":"","query":{"normalized":[{"from":"File:Nasone_10_01_51_518000.jpeg","to":"File:Nasone 10 01 51 518000.jpeg"}],"pages":{"92294154":{"pageid":92294154,"ns":6,"title":"File:Nasone 10 01 51 518000.jpeg","imagerepository":"local","imageinfo":[{"user":"Dieterdreist","extmetadata":{"DateTime":{"value":"2020-07-16 08:02:01","source":"mediawiki-metadata","hidden":""},"ObjectName":{"value":"Nasone 10 01 51 518000","source":"mediawiki-metadata","hidden":""},"CommonsMetadataExtension":{"value":1.2,"source":"extension","hidden":""},"Categories":{"value":"Fountain|Self-published work","source":"commons-categories","hidden":""},"Assessments":{"value":"","source":"commons-categories","hidden":""},"ImageDescription":{"value":"Roma, Italia, July 2020, Nasone Circonvallazione Ostiense","source":"commons-desc-page"},"DateTimeOriginal":{"value":"2020-07-16 09:43:07","source":"commons-desc-page"},"Credit":{"value":"Opera propria","source":"commons-desc-page","hidden":""},"Artist":{"value":"<a href=\"//commons.wikimedia.org/wiki/User:Dieterdreist\" title=\"User:Dieterdreist\">Dieterdreist</a>","source":"commons-desc-page"},"LicenseShortName":{"value":"CC BY-SA 4.0","source":"commons-desc-page","hidden":""},"UsageTerms":{"value":"Creative Commons Attribution-Share Alike 4.0","source":"commons-desc-page","hidden":""},"AttributionRequired":{"value":"true","source":"commons-desc-page","hidden":""},"LicenseUrl":{"value":"https://creativecommons.org/licenses/by-sa/4.0","source":"commons-desc-page","hidden":""},"Copyrighted":{"value":"True","source":"commons-desc-page","hidden":""},"Restrictions":{"value":"","source":"commons-desc-page","hidden":""},"License":{"value":"cc-by-sa-4.0","source":"commons-templates","hidden":""}}}]}}}}

When I change the metadatalanguage to en,

 https://commons.wikimedia.org/w/api.php?action=query&format=json&titles=File%3ANasone_10_01_51_518000.jpeg&prop=imageinfo&iiextmetadatalanguage=en&iiprop=extmetadata%7Cuser

the same query leads to this:

 {"batchcomplete":"","query":{"normalized":[{"from":"File:Nasone_10_01_51_518000.jpeg","to":"File:Nasone 10 01 51 518000.jpeg"}],"pages":{"92294154":{"pageid":92294154,"ns":6,"title":"File:Nasone 10 01 51 518000.jpeg","imagerepository":"local","imageinfo":[{"user":"Dieterdreist","extmetadata":{"DateTime":{"value":"2020-07-16 08:02:01","source":"mediawiki-metadata","hidden":""},"ObjectName":{"value":"Nasone 10 01 51 518000","source":"mediawiki-metadata","hidden":""},"CommonsMetadataExtension":{"value":1.2,"source":"extension","hidden":""},"Categories":{"value":"","source":"commons-categories","hidden":""},"Assessments":{"value":"","source":"commons-categories","hidden":""}}}]}}}}

--Dieterdreist (talk) 09:23, 16 July 2020 (UTC)

Unexplained color differenceEdit

There is something weird going on with File:Check-green.svg.

  • The SVG source includes style="fill:green; ...", which I believe is the name for #008000 – a medium green.
  • The 512 px PNG shown at the File:Check-green.svg page is a medium-green (#008000) check. Some of the other size PNG renderings listed show the same color as well.
  • However, others, like the 240 px, show a bright green check (#00FF00) instead.
  • If I try to display it inline here with a size of 15 px, I get the bright green check:  . If, instead, I try 17 px, I get the medium green:  .
  • The page history and logs only show a single version of the file, uploaded at 2009-06-06T03:46:20Z.

Why are some of these renderings bright green? —[AlanM1(talk)]— 07:04, 19 July 2020 (UTC)

I guess this problem comes from the thumbnail server which is known to produce some weird results every now and then. For that matter, the 1024px version is also bright green. Additionally, the bright thumbs have also been cropped on the right edge. De728631 (talk) 09:16, 19 July 2020 (UTC)
De728631 (or anyone): How can I get the incorrect PNGs to be rendered again (hopefully correctly this time)? I tried downloading the SVG and then re-uploading it as a new version of the file, but it complained that the file was identical and the upload was not saved. Before I resort to modifying the file in some way that is hopefully seen as a change but doesn't change the appearance, is there a way to just get the PNGs re-rendered? —[AlanM1(talk)]— 01:06, 20 July 2020 (UTC)
@AlanM1: Appending ?action=purge to the thumbnail URL used to work, I don’t know what the current situation is. (Appending it to wiki page URLs used to throw the page out of cache immediately, but now a form appears to let the user confirm the action. No such form appears when using this trick at thumbnail URLs, so I don’t know whether it still works without a form, or silently stopped working at all.) —Tacsipacsi (talk) 10:39, 20 July 2020 (UTC)
@Tacsipacsi, De728631: I did try the Page->Purge cache (which is a link to the page with ?action=purge), but that did not solve the problem, at least not immediately. I'm not sure when the last time I tried forcing a local browser cache refresh (with F5) was, though, so maybe there's a rendering queue? Today, when I refresh my local cache on the images that were wrong, they are correct, so it's resolved. —[AlanM1(talk)]— 23:05, 20 July 2020 (UTC)

Official list of language codesEdit

Could someone link to the definitive list of language codes that must be used in {{language}}?

Reading documents like mw:Manual:Language#Language_code leaves us none the wiser, as it mentions exceptions, but never gives the implemented current list.

Writing due to current housekeeping tasks which are adding this to potentially several hundred thousand uploads, so it should be right first time. As an example, what's the code for Arawak? Thanks (talk) 13:16, 20 July 2020 (UTC)

@: I'm not quite sure, but various links brought me to Names.php and CldrNamesEn.php. Experiments with {{Language}} suggest that it uses codes from both of them, and probably shouldn't be trusted where they disagree. For instance, {{Language|ksh}} says "Colognian", but {{Language|ksh|ksh}} says "Ripoarisch", reflecting a discrepancy mentioned on meta:Special language codes. I'd suggest following CldrNamesEn.php for preference since it's more likely that Wikimedia will adopt ISO codes than vice versa. For Arawak, CldrNamesEn.php says arw, which seems to work. --bjh21 (talk) 19:41, 20 July 2020 (UTC)
Honestly, I thought there would be a 'right' answer to this. It seems a rather basic question that we can't find a firm definitive solution for, especially considering the recent (large) investments the WMF is making around languages/abstraction.
A Phab ticket may be in order to push for better definition. -- (talk) 21:08, 20 July 2020 (UTC)
This is my understanding: Names.php represents the set of languages that MediaWiki could use, along with the name for that language in that language. The CldrNames files represent the languages that MediaWiki has a translatable name for. There are also LocalNames files that pick up what CldrNames does not. Finally, the translation files represent the languages that MediaWiki does use. The translation files must be a subset of the languages in Names.php. Names.php and CLDR intersect, but neither is a subset of the other.
The {{#language}} ParserFunction should pick from Names.php when called with only one parameter, and from CLDR when called with two parameters. However, {{Language}} always calls the ParserFunction with two parameters, so it should always return values from CLDR. However, when the CLDR extension is called with a language code it does not have a translation for, it will fall back to the Names.php value.
However, the best way to know how MediaWiki's configured is to ask MediaWiki, which you can do with the languageinfo API. "code" is the canonical form in MediaWiki, "autonym" is set from Names.php, and "name" is set from CLDR. Entries exist for languages included in Names.php or CLDR, so you should expect that MediaWiki could use any. However, MediaWiki will probably only use languages from Names.php in normal circumstances. --AntiCompositeNumber (talk) 00:21, 21 July 2020 (UTC)

Tech News: 2020-30Edit

19:13, 20 July 2020 (UTC)

Please help prioritize the Commons API "error 500" bug on searches and category queriesEdit

Phab:T255981
Persistant error 500 getting category members

Related: Phab:T253591, Phab:T195992

Typical results running a basic API search on Commons filenames this morning
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['250']
WARNING: Waiting 5 seconds before retrying.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['125']
WARNING: Waiting 10 seconds before retrying.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['250']
WARNING: Waiting 20 seconds before retrying.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['125']
WARNING: Waiting 40 seconds before retrying.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['250']
WARNING: Waiting 80 seconds before retrying.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['125']
WARNING: Waiting 120 seconds before retrying.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['250']
WARNING: Waiting 120 seconds before retrying.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['250']
WARNING: Waiting 120 seconds before retrying.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['250']
WARNING: Waiting 120 seconds before retrying.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['250']
WARNING: Waiting 120 seconds before retrying.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['250']
WARNING: Waiting 120 seconds before retrying.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['250']
WARNING: Waiting 120 seconds before retrying.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['250']
WARNING: Waiting 120 seconds before retrying.
WARNING: API warning (result): This result was truncated because it would otherwise be larger than the limit of 12,582,912 bytes.
WARNING: Http response status 500
WARNING: Non-JSON response received from server commons:commons; the server may be down.
Set gcmlimit = ['250']
WARNING: Waiting 120 seconds before retrying.

Can folks help by giving this a supporting token on Phabricator? This bug has been persistent for the last calendar month, and has broken even the most basic Commons housekeeping tasks that rely on being able to query members of a Commons category. Most complex bots need this type of query to work reliably, and getting indefinite error 500 failures back from the API often causes fatal time-outs, brown-outs or unpredictable failures.

It's incredibly basic use of the Commons API, and the break must have been caused by a recent change as this behaviour was not apparent using the same scheduled tasks before ~22 June 2020. That critical bugs like this which cause serious damage to Commons maintenance can be left for over a month, casts a long shadow over whether Commons can be relied on by other institutions as an open source media repository for their projects and open knowledge services. -- (talk) 08:57, 22 July 2020 (UTC)

Map doesn't loadEdit

We've got an email about that Data:Stay-at-home orders in the United States.map doesn't load and it's just an empty page. I can confirm the problem, can somebody fix it? Thanks in advance! Bencemac (talk) 17:46, 22 July 2020 (UTC)

Need help with tablesEdit

If you look at File:Arvid Frederick Nyholm - John Ericsson - NPG.66.54 - National Portrait Gallery.jpg and the {{Artwork}} template there you can see a lot of "   " linking back to the place where given piece of information is stored. When I try to use the same approach to add such links to "Author" or "Collection" field I get

test
creator QS:P170,Q4802438

  

I would like it to look like

test
creator QS:P170,Q4802438
 

using

<table class="fileinfotpl-type-artwork toccolours vevent mw-content-%s" dir="%s" style="width: 100%%" cellpadding="4">
<tr>
<td class="fileinfo-paramfield" lang="en">test</td>
<td valign=left>
<table><tr><td>{{Creator|wikidata=Q4802438|option=collapse}}</td><td>[[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata|link=https://www.wikidata.org/wiki/Q47508743#P170|Edit this at Wikidata]]</td></tr></table>
</td>
</tr>
</table>

code. Is there a way to do it without nested tables? --Jarekt (talk) 17:56, 22 July 2020 (UTC)

@Jarekt: How does this look?
test
creator QS:P170,Q4802438
  
--AntiCompositeNumber (talk) 19:00, 22 July 2020 (UTC)
Thank you AntiCompositeNumber. That is much nicer solution. --Jarekt (talk) 20:38, 22 July 2020 (UTC)

Magic word or template that returns the user's interface language?Edit

Is there such a thing? Which is equivalent to {{LangSwitch|en=en|fr=fr|ja=ja|...}}. LangSwitch detects the UI lang and returns values accordingly. Now I just want a piece of code that detects UI langcode and returns it exactly.--RZuo (talk) 20:32, 22 July 2020 (UTC)

{{int:lang}} gives "en". --Jarekt (talk) 20:43, 22 July 2020 (UTC)

File importer is brokenEdit

When I want to import some files to here, the internal error occurred: "[f97e1294-a269-4107-8742-62b04b82f2c6] 2020-07-23 03:11:49: 嚴重例外類型 "MediaWiki\Revision\RevisionAccessException" and so on. This is Taiwania Justo speaking (Reception Room) 03:13, 23 July 2020 (UTC)

@Taiwania Justo: This is a known problem; there's a link to the bug report on the right. Vahurzpu (talk) 14:58, 23 July 2020 (UTC)

Searching files by propertyEdit

I tried to search for files that are Slow Motion movies. Many of them have a property "is a: Slow motion": instance of (P31) slow motion (Q1899749). When I enter "slow motion" in the search filed I get the following search suggested: "haswbstatement:P180=Q1899749" that means depicts (P180) contains slow motion (Q1899749). That is something completely different and leads to no result, while manually putting together the search string haswbstatement:P31=Q1899749 produces the right result. I think the search mechanism could be improved if it allows to look for certain kind of media by querying P31 property. -- Dr. Schorsch (talk) 13:45, 23 July 2020 (UTC)

Upload failing for large fileEdit

[Following on from a question at enWS: s:en:User_talk:Inductiveload#Failed_Commons_upload].

I'm struggling to upload a PDF file from Google books (~300MB):

  • Upload via upload wizard fails during assembly of chunks (both the exact file and the file with the Google cover sheet cut off)
  • A direct copy-upload from the Internet Archive following a BUB2 transfer also fails, with a 503 error.
  • The IA derive process is probably going to fail due to the large file size, so it's unlikely the IA Upload tool would work either (and it also generally seems to be broken recently).

How can this file be uploaded? Inductiveload (talk) 14:13, 23 July 2020 (UTC)

Apparently, this might already be known as phab:T255981. And one of the attempts apparently did actually upload as File:Maryland_Law_Reporter_-_Volume_1.pdf, despite throwing a 503 page. Inductiveload (talk) 14:59, 23 July 2020 (UTC)
And the same file uploaded with User:Rillke/bigChunkedUpload.js succeeded with no visible errors at File:Maryland Law Reporter, Volume 1 (1872).pdf. Slightly slow, but not exceptionally so. --Xover (talk) 15:21, 23 July 2020 (UTC)

Can you see that too?Edit

I once uploaded the picture File:Mini excavator.jpg, the picture is also displayed correctly, but under "File history" a different picture is displayed than what I uploaded, what is that supposed to be? -Killarnee (CTU) 19:49, 23 July 2020 (UTC)

@Killarnee: yes I saw it. it's a yellow one facing slightly to the left of the camera. it might be the other photo that had this name. might be an interesting thing to report to the developers, that uploading a file onto a deleted one might reveal the deleted one in file history thumbnail.--RZuo (talk) 19:54, 23 July 2020 (UTC)
Now the picture, quite magical, is gone again. Strange. -Killarnee (CTU) 20:02, 23 July 2020 (UTC)
coz i purged the page.--RZuo (talk) 21:00, 25 July 2020 (UTC)
Huh. That's a new one, and definitely not supposed to happen. Unfortunately without more information (request headers), it would be very difficult to investigate. If you see something like that again, don't purge it and file a Phab task under Thumbor. --AntiCompositeNumber (talk) 02:23, 3 August 2020 (UTC)

How to set sorting key in UploadWizard?Edit

I uploaded File:Dr Jerome Adams - How to Make Your Own Face Covering.webm. I wanted to set key for the cat videos of 2020 from US to 0404, but the bar method (...|0404) doesnt work. How to tell the wizard i want a different key?!!! Or it's impossible now?--RZuo (talk) 21:00, 25 July 2020 (UTC)

  • I am unsure about that, but if you use {{taken on}} on a video, it will cat everything correctly with a key. ℺ Gone Postal ( ) 15:20, 29 July 2020 (UTC)

Wikidata-based template for source informationEdit

Hi all, I started to use the Template:Creator to add information about the authors of images which are in the public domain.

Since most of them comes from books, i was wondering if there is a similar wikidata-based template which can be used to add source references.

any suggestion (or good practice already used) is welcome!

--Sette-quattro (talk) 12:19, 26 July 2020 (UTC)

@Sette-quattro: nothing Wikidata-based yet, as far as I'm aware. For books, we have Template:Book that serves as a replacement for {{Information}}. Based on that, you can make an individual template for an individual book – see Category:Book templates for examples. --El Grafo (talk) 09:04, 27 July 2020 (UTC)
@El Grafo: Thanks! I'll try now Sette-quattro (talk) 06:34, 30 July 2020 (UTC)

What is a good way to sort a category?Edit

I have been going through and sorting Category:Russian pronunciation category. Currently I am finishing up files which are not obvious from the file name, but there is a huge batch where I could sort by looking at the file name alone from the category view. Unfortunately it is a very long process (open a file, edit the category, add |sort-key), I am looking for something faster, perhaps something where I can change the sorting key from within a category view... Does that exists somewhere? ℺ Gone Postal ( ) 08:52, 27 July 2020 (UTC)

Tech News: 2020-31Edit

13:51, 27 July 2020 (UTC)

warning about not matching Wikidata Commons sitelink - but the link works OKEdit

Today I added a wikilink to https://en.wikipedia.org/wiki/Old_Live_Oak_Cemetery for the related Commons Category https://commons.wikimedia.org/wiki/Category:Live_Oak_Cemetery_(Selma,_Alabama) - In the preview, I got a red warning (showing only in the preview, as the warning stated): "Wikimedia Commons has media related to Old Live Oak Cemetery, Selma, Alabama. Warning: Commons category does not match the Commons sitelink on Wikidata - please check (this message is shown only in preview)". I checked the Wikidata entry for Live Oak Cemetery ( Live Oak Cemetery (Q20792450) ) and the Commons sitelink there is the same as the Commons Category: Live_Oak_Cemetery_(Selma,_Alabama), except that it shows without the 'underscore' characters - so I Published the edit, and the link works fine. I can't tell if there's something I need to do, or if this is just an internal glitch. Seauton (talk) 17:13, 27 July 2020 (UTC)

Hi there. You're not supposed to use the underscores in a wikilink as you did here. They are only needed for the url to substitute the blank spaces in the category name. Additionally it turned out that Wikidata had two different entries for the same location "Live Oak Cemetery" and "Old Live Oak Cemetery" which may have caused further trouble. I have now merged these two Wikidata items so the Commons category is also shown in the side toolbar of the Wikipedia article. De728631 (talk) 17:35, 27 July 2020 (UTC)
  ResolvedThank you

Seauton (talk) 01:37, 1 August 2020 (UTC)

Batch file deletionEdit

I used to be able to do this as a batch task, but at User talk:Timtrent#Your VFC installation method is deprecated was given instructions on updating the batch files task. I think I am now in an incorrect status to enable the new gadget, since I have tried multiple times.

Please can you advise me? Is it as simple as asking for a status change? If so, whom do I ask, please?

My main experience is in en WP, as a new draft reviewer for w:WP:AFC. Often I see 'unusual' pictures uploaded here and come to offer them for deletion. Please ping me on any reply. I am not on commons regularly Timtrent (talk) 12:42, 29 July 2020 (UTC)

@Timtrent: You should be able to turn on VFC by simply visiting the Gadgets section of your Preferences page scrolling down to find "VisualFileChange" under "Maintenance tools", and turning it on. Can you see the VisualFileChange option on that page? Is it enabled? Do you get "Perform batch task" in the "Tools" menu in the left side bar? --bjh21 (talk) 16:54, 29 July 2020 (UTC)
@Timtrent: Sorry: I got that wrong. Based on Special:Gadgets, you need the autopatrol right to be able to get VFC as a gadget. I think you should be eligible for autopatrol. You can request it at Commons:Requests for rights#Autopatrol. --bjh21 (talk) 17:16, 29 July 2020 (UTC)
bjh21 Many thanks I will do that Timtrent (talk) 17:51, 29 July 2020 (UTC)

Visual EditorEdit

VE somewhy can’t start in stop starting (but I still can see toolbar of it), Firefox 56, Windows 10. 217.117.125.72 16:30, 29 July 2020 (UTC)

Wrong arrow in SVG renderingEdit

 
This SVG image

Hi to all,

I have uploaded this SVG image.

Now, the original file has the vertical arrow as it should be.

But in all renderings, the arrow is to right not to above.

Is this a problem of the image (of its code) or other?

Thank you and bye,

--Galessandroni (talk) 13:14, 30 July 2020 (UTC)

@Galessandroni: It is a known bug that the MediaWiki software will render certain SVG components incorrectly (usually text, but other things as well as you can see here). You'll just have to convert the arrow to a path. -- King of ♥ 14:50, 30 July 2020 (UTC)
@King of Hearts: Thank you, my Lord. Now it's work. ;-) --Galessandroni (talk) 16:06, 30 July 2020 (UTC)
This issue is fixed in the newest version of librsvg, We'll be getting that eventually (phab:T193352), dependent on phab:T216815. If you know any SREs with some round tuits... --AntiCompositeNumber (talk) 02:16, 3 August 2020 (UTC)

Tech News: 2020-32Edit

15:42, 3 August 2020 (UTC)

SVG size?Edit

Hi! I just made an SVG (File:Canadian Atlantic Command formation patch.svg) in a text editor. It went well, except the file on Commons is a different size than the ViewBox is set to -- 512 × 366 when it should be 316 x 226. Why is this? Thanks, DemonDays64 (talk) 19:42, 3 August 2020 (UTC) (please ping on reply)

@DemonDays64: The view box was 316px by 226px, but you didn't tell MediaWiki how big a pixel was. viewBox defines the size of the SVG's coordinate system, not the displayed size of the viewport itself. Without a width and/or a height in <svg>, the standard requires that we use 100%. MediaWiki just happens to define 100% as 512px. --AntiCompositeNumber (talk) 20:28, 3 August 2020 (UTC)
@AntiCompositeNumber: ah, thanks! didn't realize those two things were separate. DemonDays64 (talk) 23:21, 3 August 2020 (UTC)

Where's the blacklisted domains listEdit

I'm auto-filling the description of youtube videos if the uploader forgot to. I built an API to parse data from Youtube via the Internet Archive(tool forge IP is blocked by YouTube) and return the useful stuff but it would be great to remove all the blacklisted URLs before return the description. There's a bit.ly URL in https://eatchabot.toolforge.org/youtube?user_agent=YouTubeReviewBot&url=https://www.youtube.com/watch?v=j9V78UbdzWI and I would like to parse these out. // Eatcha (talk) 15:15, 4 August 2020 (UTC)

@Eatcha: There is a Commons-specific blacklist at MediaWiki:Spam-blacklist accompanied by a whitelist at MediaWiki:Spam-whitelist, and a Wikimedia-wide one at m:Spam blacklist (there’s no global whitelist). bit.ly is on the Meta blacklist. (Your Toolforge tool timed out for me, by the way.) —Tacsipacsi (talk) 17:18, 4 August 2020 (UTC)

Marking files superseded by a template?Edit

I've reconstructed File:2007 US News Top 40 colleges.png as w:Template:U.S. News top 10. However, when I try to mark the 2007 file as {{Superseded}}, it wants to force me to use a filename. Is there any way to mark the file as superseded in the way I want? Sdkb (talk) 06:31, 5 August 2020 (UTC)

@Sdkb: You have to state the new file that supersedes the old one.Jonteemil (talk) 20:20, 10 August 2020 (UTC)
@Jonteemil: So I'm going to take that as indication that there's no current way to do what I want? That seems like something that should be fixed, since this isn't even the first time I've come across a file that was superseded by a graph. I'll put a pointer to here at the template's talk page. Sdkb (talk) 20:51, 10 August 2020 (UTC)
@Sdkb: Sorry, but what is it that you want? Can you please elaborate?Jonteemil (talk) 21:33, 10 August 2020 (UTC)
@Jonteemil: I created w:Template:U.S. News top 10, which is an updated/dynamic version of the old File:2007 US News Top 40 colleges.png. I want to mark the old file with a notice that anyone coming across it should probably use w:Template:U.S. News top 10 instead. Sdkb (talk) 21:36, 10 August 2020 (UTC)
@Sdkb: I think the way to achieve what you want probably lies in creating a local description on enwiki. On en:File:2007 US News Top 40 colleges.png there's a link to "Add a local description". I've never tried using it, but it would seem to be the obvious way to add a statement of supersession that would only appear on enwiki. You might want to ask in en:Wikipedia:Help desk for guidance, though. --bjh21 (talk) 10:07, 11 August 2020 (UTC)

@Sdkb: You do realize that w:Template:U.S. News top 10 is not a file, right? Furthermore, since Wikimedia Commons is global project, and enwiki a local one, an enwiki file can't supersede a Commons file.

I do agree that File:2007 US News Top 40 colleges.png would be considered superseded on enwiki but on Wikimedia Commons we also have to take into account all the other thousands of wikis that hypothetically might be in use of the file.Jonteemil (talk) 21:45, 10 August 2020 (UTC)
  1. How can a template on en-wiki supersede a file on Commons? The former is specific to en-wiki; the latter can be used by any wiki in our system.
  2. How can something that shows a "top 10" be considered as necessarily superseding something else that shows a "top 40"? They are clearly not interchangeable.
- Jmabel ! talk 02:37, 11 August 2020 (UTC)

Trouble downloadingEdit

First time user. Whenever I click download --> full resolution, the image enlarges, but no download. Please advise what to do. And if I'm not supposed to be asking this question here, please let me know where to go.

Thank you. — Preceding unsigned comment added by Clem1822 (talk • contribs) 21:37, 5 August 2020 (UTC)

Ctrl+s would make it be downloaded to your computer.Jonteemil (talk) 19:57, 10 August 2020 (UTC)

Prevent automatic section int:filedesc on uploadEdit

Hello,

because I have my own description template to simplify some useful informations (camera, location etc.), I use the blank upload form (&uploadformstyle=basic). My template already includes == {{int:filedesc}} == (and == {{int:license-header}} ==, too), which was no problem so far. But newly the basic upload form automatically adds the section int:filedesc on top, which is very annyoing, because I have to edit each new file page and remove it manually. Isn't there a possibility to prevent this? I already use the basic form excactly to have no unnecessary additions, and for those who need the section they can use the button in the click-and-paste-bar below the text field.

By the way, why don't we have a preview here like at dewiki? Would be very useful.

Thanks and regards --MdE [de] [com] 09:19, 6 August 2020 (UTC)

  • We have preview on basic upload, I use it all the time, but you have to select the file and the name of the file before it will work. Also keep in mind that it will show all the category links in blue, even if they do not exist, so it doesn't help to check if categories are typed correctly. Also for me the top header has been adding itself since I have started here. As I can see it works in the following way, it adds == {{int:filedesc}} == as th first line, unless your first line is exactly that text (with spaces in those spots, etc.) if your approach adds a slightly different string, then perhaps it is misdetecting it, make sure that you do that exactly. ℺ Gone Postal ( ) 15:16, 11 August 2020 (UTC)
@Gone Postal: First, I ment a preview of the description, not of the image! In order to check article links etc. (categories are no problem, existing ones are suggested and non-existing ones become red). Second, the first line in the description will always be my template and not int:filedesc even though the first line inside my template exactly matches the string as you mentioned. Isn't there any possibility to disable automatic adding manually? --MdE [de] [com] 21:33, 11 August 2020 (UTC)
@MdE: Yes, I meant the description. What are you talking about? You clearly read me talking about categories, and they are not on the file itself, but in the description. I am confused, did you read what I have written or not? As for the addition of the heading, it should be the first heading anyhow, it is quite a bad idea to add things before it. So simply remove that heading from whatever template you are using to fill in all the fields, and the problem is solved. ℺ Gone Postal ( ) 04:59, 12 August 2020 (UTC)

Tool for downloading spited images and merge themEdit

I want to download some pictures. The only way to show highest resolution is to use zoom like [25]. It will give 0_0.jpeg to 22_16.jpeg. Is there a way to download the pictures and make them together automatically? Thanks.--維基小霸王 (talk) 14:34, 6 August 2020 (UTC)

There is a download symbol on this website. You have to register to download high resolution of this pictures. I guess this is the intention of the owner. It might be illegal to work around this mechanism. -- Dr. Schorsch (talk) 16:03, 6 August 2020 (UTC)
This is something that could be done with something like image magic, however, it will not be lossless. I'm not sure if that is possible to do it easily corretly. I seriously doubt that it can be illegal to merge files you have downloaded, but it maybe against their terms of use and you may be banned from their website. ℺ Gone Postal ( ) 16:21, 6 August 2020 (UTC)
@維基小霸王: https://ophir.alwaysdata.net/dezoomify/dezoomify.html is the common tool for this, and it does work with www.nationalgalleries.org. Your image: https://ophir.alwaysdata.net/dezoomify/dezoomify.html#https://www.nationalgalleries.org/art-and-artists/76444/min-choi-temple-and-octagonal-tower-wall-yen-ping?search=Afong%20Lai&search_set_offset=49 Theoretically, yes, they could ban you from their website for circumventing their controls. However, given that the photographer has been dead for 130 years, this image is squarely in the public domain. --AntiCompositeNumber (talk) 17:36, 6 August 2020 (UTC)
@AntiCompositeNumber:Thank you!--維基小霸王 (talk) 17:37, 6 August 2020 (UTC)

Bug in UploadWizard?Edit

When I use UploadWizard, the first round is okay, but every next upload, proceeding from 'Upload more images', after starting the upload I always get the message "You are already uploading etc." (but in Dutch, in my case: "U bent het bestand xxx.jpg al aan het uploaden"). This happens every time and has been going on for months, if not a year or longer. At first I thought it was due to an oversensitive mouse button, but it's not. Do other people also have this problem, and if so: could this be fixed? Thanks, Eissink (talk) 11:58, 9 August 2020 (UTC).

Is this it? Phabricator:T235542. — Sam Wilson ( TalkContribs ) … 21:35, 11 August 2020 (UTC)
Thank you, yes, that's exactly it. From the lack of responses it seems not everyone is experiencing it. Eissink (talk) 22:34, 11 August 2020 (UTC).
@Eissink: yeah! I'm not sure why not. I guess it's not that common to click 'Upload more files' — I use it all the time though, and it's really annoying! I'm not very familiar with the UploadWizard code, but I might try to fix it if no one does soon. — Sam Wilson ( TalkContribs ) … 04:34, 12 August 2020 (UTC)

Tech News: 2020-33Edit

16:06, 10 August 2020 (UTC)

Add to watchlistEdit

Hello!

Can you make files that you request be renamed, with RenameLink, to be added to your watchlist automatically?Jonteemil (talk) 19:56, 10 August 2020 (UTC)

Who changed the WikiData object describing a file page?Edit

Since a couple of days I receive a warning message when applying wikidata Property instance of (P31) to a file page. As an example file File:Muelheim an der Ruhr - Arion rufus - contraction.webm has a property instance of (P31) with the value video clip (Q677466). This was an accepted property until one day in the last week. Now I get a problem marker:

 Zulässige Entitätstypenbeschränkung
 Hilfe Diskussion
 Die Eigenschaft ist ein(e) sollte nicht auf diesem Objekttyp verwendet werden, die einzig gültigen Objekttypen sind:
   Wikibase-Element
   Wikibase property Englisch
   Lexem

If you click on the flash next to video clip (Q677466) on the file page you will see the message in your language. I think this happens because someone changed the allowed properties of a mediawiki file page.

My problem is that I do not exactly now, which wikidata object is defining the allowed properties of a mediawiki file page. If I would I could probably fix the problem itself. Does anyone now where this mistake can be fixed? -- Dr. Schorsch (talk) 15:08, 11 August 2020 (UTC)

@Xorx: If you click on "Zulässige Entitätstypenbeschränkung" in that marker, you'll be taken to the constraint that caused the problem, which is part of instance of (P31). It looks like this constraint was added by Dhx1 a few days ago[30]. --bjh21 (talk) 16:17, 11 August 2020 (UTC)
Thank you! -- Dr. Schorsch (talk) 20:02, 11 August 2020 (UTC)
@Xorx, Bjh21: It was a property constraint on Wikidata that was the cause for this issue. Fixed at [31]. --Dhx1 (talk) 23:00, 11 August 2020 (UTC)
@Dhx1: Thanks for the quick fix! -- Dr. Schorsch (talk) 07:24, 12 August 2020 (UTC)