Help talk:Extension:FileImporter

Jump to navigation Jump to search

About this board

Central feedback page for FileImporter/FileExporter.

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.

Reply to "License migration"

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"

Shorten FileImporter message

9
Summary by Thiemo Kreuz (WMDE)
Violetbonmua (talkcontribs)

Please help shorten FileImporter message in vi.wikipedia. We have a lof of files to move to Commons but the space in Recent changes need to be used for other tasks.

Thiemo Kreuz (WMDE) (talkcontribs)

I'm sorry, can you please explain in more detail what the problem is? Do you have an example or an URL to look at? I'm not aware of any space constrains on Special:RecentChanges. The number of entries shown is not limited by what FileImporter does.

Violetbonmua (talkcontribs)
Thiemo Kreuz (WMDE) (talkcontribs)

Why? I seriously don't think this is a "long" message. All the information in this message is crucial. It might be possible to find a wording that's 2 or 3 characters shorter. But why? What's the problem?

MGA73 (talkcontribs)
Violetbonmua (talkcontribs)

On most normal screen, it tooks 2 lines to display this message. Some files have longer name so maybe it tooks 3 lines. We have thousand files need to be moved so I wish the message could be as short as possible (within 1 line only).

Thiemo Kreuz (WMDE) (talkcontribs)

I'm afraid I still don't understand the issue. What exactly happens on Special:RecentChanges when many exports have been made? Why not use the filters on top of Special:RecentChanges?

Violetbonmua (talkcontribs)

I can set the filters for myself but it won't apply for everyone who is monitoring all the changes on Specia:RecentChanges for possible vandalism. If I use FileImporter to move 200 files to Commons, all they can see is me doing that.

Thiemo Kreuz (WMDE) (talkcontribs)

But this will be the same, no matter how long the summary line is.

Changing the links to use the shorter interwiki link syntax is something we are aware of, see phab:T189196. However, it turns out this is not easy to do. As of now, we don't have the capacity to work on this ticket.

Reply to "Shorten FileImporter message"

Getting error trying to import files

6
Summary by Tacsipacsi
MGA73 (talkcontribs)

I moved hundreds of files from ja.wiki today but now I get this error:

"[930e0015-1e74-426b-a787-8e308ec5fd1e] 2020-07-22 19:34:32: Fatal exception of type "MediaWiki\Revision\RevisionAccessException"

Any way to see what that is about? Not just for 1 file but for many files.

Jeff G. (talkcontribs)

Do you have an example filename?

MGA73 (talkcontribs)
Jeff G. (talkcontribs)

I got "[715f5c71-de69-447f-9ce5-12ca46ba124d] 2020-07-22 20:32:16: Fatal exception of type "MediaWiki\Revision\RevisionAccessException" trying to import that same file. Very disconcerting.

Peteforsyth (talkcontribs)
Hdfan2 (talkcontribs)
Brainulator9 (talkcontribs)

Files using en:Template:PD-US-expired-abroad are not permitted to be transferred to Commons despite their copyright expiring and being marked as eligible for transfer.

Tacsipacsi (talkcontribs)

c:Template:PD-US-expired-abroad is not a valid license tag, it needs replacement anyway. You can change it e.g. {{PD-US-expired}}{{PD-old-70}} before transfer, after which FileImporter will accept the file.

Brainulator9 (talkcontribs)

I'll concede to that. Thanks.

Reply to "PD-US-expired-abroad"

Translating categories

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

I noticed that sometimes categories are "translated" to Commons categories and sometimes they are converted to text like xx:Category:Some name. Example this edit.

Is it because the category have a ":" in the name? If I change "Kategorija" to "Category" before I import then it works fine.

Thiemo Kreuz (WMDE) (talkcontribs)
Reply to "Translating categories"

Internationalisation and interface issues

1
Summary by Pols12
Pols12 (talkcontribs)

Since I haven’t received any comment yet, I just wish to point here several minor issues reported on Phabricator:

  • to use interwiki prefixes instead of external link syntax in system message (but maybe it is not possible?)
  • if FileImporter is supposed to work on MetaWiki (but maybe it should only works on Commons?) an interwiki prefix should be fixed
  • in one place, NowCommons template name seems to be not internationalized
  • an inconsistency may occur between doc and real messages if two different translators localize messages at issue.
Reply to "Internationalisation and interface issues"

Edits to getting a tag

2
Summary by Thiemo Kreuz (WMDE)
Jonteemil (talkcontribs)

Hello!

I think these edits also should be tagged with the 'fileimporter' tag. Can this be implemented?

MGA73 (talkcontribs)

As you can see on this edit I can now change stuff and it says it was made by FileImporter. One way to fix is to remove the option for user to change stuff during transfer. User can just edit after the import and fix stuff.

Reply to "Edits to getting a tag"