Help talk:Extension:FileImporter

Jump to navigation Jump to search

About this board

Central feedback page for FileImporter/FileExporter.

How to fix licenses in a self template?

1
MGA73 (talkcontribs)

Hi! It is easy to translate a template from local name to Commons name by adding it in the configuration page under translate. For example on sr.wikipedia it is simply to add this code to translate глсд to GFDL:

;глсд:GFDL

But if it is {{self|глсд|Cc-by-sa-3.0}} then FileImporter does not translate глсд to GFDL. Can that be done?

Reply to "How to fix licenses in a self template?"
Summary by Daehan

Button is only shown to users in the "autoconfirmed" group of local wiki.

Daehan (talkcontribs)

Hello,

I don't have the new tab to export a local file to Commons.

For example, I want to move [https://ko.wikipedia.org/wiki/%ED%8C%8C%EC%9D%BC:Mujujeja1.jpg this file] from wp:ko to Commons, but have no "Export to Wikimedia Commons" tab. It doesn't work either in any other language.

The documentation says "FileExporter is now a default feature on all wikis." so I guess I should not activate anything in my preferences, but can you see what could I do?

Thanks.

Daehan (talkcontribs)

(meanwhile, another user moved the file on my request, but I need the feature :) )

Thiemo Kreuz (WMDE) (talkcontribs)

It looks like you don't have any edits on this wiki. The export button is only shown to users in the "autoconfirmed" group, which typically means 10 edits must have been made, and the user must have been active for a few days. This is an intentional, very basic safety measure to avoid misuse.

Daehan (talkcontribs)

Hello Thiemo,

OK, I understand, thank you.

Improving error messages

5
Summary by Thiemo Kreuz (WMDE)
MGA73 (talkcontribs)

I get errors when I try to move

  1. vi:Tập_tin:Sơ_đồ_thành_cổ_Tân_Sở.svg : "[3cebc9bf-72cf-4731-8a33-210f65603ea1] 2020-08-21 17:03:10: Fatal exception of type "TypeError""
  2. vi:Tập_tin:Plan_de_Son_Tay.svg : "This file (or an older revision of this file) contains elements that cannot be accepted for security reasons: $1"

The first error message does not say anything of use to me. The second does except the $1.

Is it possible to improve the error messages?

MGA73 (talkcontribs)

Someone was so kind to report the first error on phab:T261006 and the second is not very important to me.

Thiemo Kreuz (WMDE) (talkcontribs)

These are super helpful bug reports (not speculating but just repeating what happened, with links). Thank you very much! Both appear to be smaller mistakes we made while working on FileImporter, both loosely related to phab:T253872. I created a ticket for the second issue as well, see phab:T261060.

MGA73 (talkcontribs)

Thanks, thats great Thiemo. It would of course be nice if FileImporter said "Sorry we can't move version 4. Do you want to move the other versions?". But no need to make things more complicated and risk breaking something if it is just because there are a few files that are wierd. :-D

MGA73 (talkcontribs)
Reply to "Improving error messages"
MGA73 (talkcontribs)

The license migration is sometimes a problem. For example on vi.wikipedia and ja.wikipedia. If possible it would be nice if changes like this could be automated. On ja.Wikipedia the changes could look like this. If it makes things too complicated don't try. It can be fixed on Commons. But if it is an easy fix it would be nice.

Thiemo Kreuz (WMDE) (talkcontribs)

There is a feature that allows the replacement of template parameters. In this case chuyển đổi= can be changed to migration= automatically. A rule for this can be added to Extension:FileImporter/Data/vi.wikipedia#Transfer. But that's all we have at the moment.

In the discussions at phab:T199453 and phab:T214365 are alternatives discussed that make use of subst: templates on Commons.

MGA73 (talkcontribs)

Thank you. But changing to "migration=" is only half the solution because we need the part after the "=" to complete the migration.

Off topic: Did you notice what I did with YouTube CC-BY? Someone really wanted to have a review template so I made this and it works :-)

Stefan2 (talkcontribs)
MGA73 (talkcontribs)

User:Stefan2 Hmmmm. I missed those disclaimers. It is easy to fix the conversion. I wonder what those disclaimers are.

MGA73 (talkcontribs)

User:Stefan2 there is a text on c:Template:GFDL-ja saying something like that if file was uploaded before july 2009 then we should use GFDL. It is only GFDL-ja after that date. And only if there was no multi-license.

Stefan2 (talkcontribs)

ウィキペディア日本語版からコモンズへ移入されたファイルのうち、日本語版で2009年7月以前にアップロードされたGFDL単独ライセンスだったファイルには、必ず {{GFDL}} ではなく {{GFDL-ja}} のタグを付してください。

Meaning: If the file was uploaded to jawiki before (not after!) July 2009, then the Commons tag is c:Template:GFDL-ja, not c:Template:GFDL.

なお、日本語版でGFDL/CCマルチライセンスだったファイルには、GFDL-jaのライセンスタグは使用しないでください。

Also, don't use GFDL-ja for GFDL/CC multi-licensed files. I wonder if they are talking about files with ja:Template:Self. Note that {{self|GFDL|cc-by-sa-3.0}} inserts ja:Template:GFDL-no-disclaimers (not ja:Template:GFDL) on the file information page.

Liuxinyu970226 (talkcontribs)
MGA73 (talkcontribs)

I do not think its a new upload if we are talking about moving the file from xx.wiki to Commons. Anyway at least from ja.wiki there are probably no files that does not also have cc-by-sa-3.0 or have been license migrated.

MGA73 (talkcontribs)

User:Stefan2 perhaps we should discuss that on Commons. It is not a bug in FileImporter. Just a matter of changing the settings.

Stefan2 (talkcontribs)

It's a bug in FileImporter or some FileImporter settings (where are those defined?) as ja:Template:GFDL is converted to the wrong Commons template.

MGA73 (talkcontribs)
MGA73 (talkcontribs)

I think I solved it at vi.wiki. The script can translate the first part. And the templates on vi.wiki understand the English terms so I just changed all the file pages to English. Problem solved :-) On ja.wiki the solution can be either changing with my bot on ja.wiki or to remove the template during transfer and then let a bot on Commons fix migration.

MGA73 (talkcontribs)

The problem with GFDL vs GFDL-ja have been fixed on ja.wiki. I changed the license of about 35k files so from now on GFDL=GFDL and GFDL-ja=GFDL-ja. The license migration is also mostly fixed as I changed 99% of the files to use the same migration code as on Commons.

Reply to "License migration"
Ahmetlii (talkcontribs)
Thiemo Kreuz (WMDE) (talkcontribs)
Reply to "Problematic MIT licenses"
Xaosflux (talkcontribs)
Thiemo Kreuz (WMDE) (talkcontribs)

I assume you are talking about the configuration pages at mw:Extension:FileImporter/List of configured wikis. The exact location really doesn't matter that much – from a technical standpoint. We just need to store it somewhere where the community is able to edit the pages. Do you have a suggestion for a better location?

Reply to "config location"

DOI links

1
Summary by Thiemo Kreuz (WMDE)
Leyo (talkcontribs)
Reply to "DOI links"

Should we remove (or add to "Bad" section) all "GFDL-only" like tags?

2
Liuxinyu970226 (talkcontribs)
Jeff G. (talkcontribs)

Yes, we should.

Reply to "Should we remove (or add to "Bad" section) all "GFDL-only" like tags?"

2 files failed

2
Summary by Thiemo Kreuz (WMDE)
MGA73 (talkcontribs)
Michael Schönitzer (WMDE) (talkcontribs)

We track this bug here: T258945 and are looking into it.

Reply to "2 files failed"

Wiki link not changed during transfer and turn up red on Commons

3
Summary by Thiemo Kreuz (WMDE)
MGA73 (talkcontribs)

Hi! Usually when we move from xx.wiki to Commons any wiki links will be changed from [[foo]] to [[:xx:foo]] but today I noticed one link was not changed. I fixed it manually but I wonder why that one link was not changed.

Thiemo Kreuz (WMDE) (talkcontribs)

As it turns out this is indeed a bug. I created phab:T258929 as well as a fix. Thanks a lot for the report! This is very helpful.

MGA73 (talkcontribs)

It is me that say thank you! FileImporter is really a great tool! I tell everyone to use that when copying files to Commons!

Reply to "Wiki link not changed during transfer and turn up red on Commons"