Help talk:Extension:FileImporter

Jump to navigation Jump to search

About this board

Central feedback page for FileImporter/FileExporter.

Is "subst:" allowed in {{tl|Information}} template configuration?

3
Jarekt (talkcontribs)

I am trying to properly configure Extension:FileImporter/Data/en.wikipedia after there were requests to rewrite Information template on Commons to make it work with this extension. The issue is that w:en:Template:Information has some rarely used extra parameters as compared to c:Template:Information ("Location" and "Additional_information")and we would like not to loose their content. Traditionally when mapping from one template to another we use substitution, for example c:Template:Artwork/subst(information) can be used to map from c:Template:Information to c:Template:Artwork. I would like to use the same mechanism to handle w:en:Template:Information's "Location" and "Additional_information" so we can add them either to c:Template:Information's "description" field or to a separate field added using "Other fields" parameter. So can I use "Subst:" configuration file?

Johanna Strodt (WMDE) (talkcontribs)

Thanks for testing the feature and for your question, @Jarekt. Using "Subst:" currently isn't possible, but I've created a Phabricator ticket so T214365 we have this request on our radar.

Best,

Johanna

Jarekt (talkcontribs)

Johanna thanks for you reply. Is there another way one can use to map multiple fields in the source template into one?

Reply to "Is "subst:" allowed in {{tl|Information}} template configuration?"

Option to delete file on transfer to Commons?

3
Summary by Johanna Strodt (WMDE)

Tracked in T196735

Sadads (talkcontribs)

So I am an admin on Enwiki, and after I do the import, I would like to be able to quickly fill out the deletion rational and delete the file that is unnecessarily hanging out on the local Wiki. Is there any way to toggle an option to go directly to the deletion interface? Otherwise, It takes me about 4 more gestures with my mouse to get to the Delete File interface. I am leaving the names on the files the same -- so it, in theory, should be something that could be made much more efficient.

Johanna Strodt (WMDE) (talkcontribs)

@Sadads Thanks for your comment! Currently, there's no way to do this, but this request has been raised before: T196735 I've added your comment there.

Have a happy weekend,

Johanna

Sadads (talkcontribs)
Deryck Chan (talkcontribs)

This is a great extension! I've started trying it out on yue.wp .

How do we localize the tool's messages? For example the name and description of the tool on Special:Preferences?

Thiemo Kreuz (WMDE) (talkcontribs)
Deryck Chan (talkcontribs)

(translatewiki:MediaWiki:Fileimporter-sourcetitleexists)

"The title you are currently trying to import to already exists on the source wiki."

Do you mean "destination wiki"?

Thiemo Kreuz (WMDE) (talkcontribs)
Deryck Chan (talkcontribs)

Thanks. I localized it with the meaning "The title you are trying to use is being used by another file on the source wiki."

Deryck Chan (talkcontribs)

yue and zh-hant all done! Thank you!

Not working, and error message not helpful

2
Bennylin (talkcontribs)
Thiemo Kreuz (WMDE) (talkcontribs)
Reply to "Not working, and error message not helpful"
Summary by زكريا

delete manually.

زكريا (talkcontribs)

I uploaded this from this, changing the file name. I'm curious about what to do next: mark the original for deletion, or redirect it...? Tx!

Thiemo Kreuz (WMDE) (talkcontribs)

This depends on the processes in your local wiki. One possibility is to make sure the old file name is not used any more, and then delete it.

Cross-wiki imports of Commons-incompatible media

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

Hi! I don't have tested the extension yet, but i see another "feature" to be added, something like the ability to export an image to another wiki edition, not only commons. That can save some time to article maintainers. Thanks

Thiemo Kreuz (WMDE) (talkcontribs)

What exactly do you have in mind when you say "another wiki edition"?

Manlleus (talkcontribs)

to upload an image from english wikipedia (copyrighted like film or game cover for example) to another language without using local uploader of the wiki target, all from the same page with a button or option and the ability to modify some info text fields of the license template like description, portion, resolution, etc.

Something like local wiki to another local wiki (no Commons)

Thiemo Kreuz (WMDE) (talkcontribs)

Thanks a lot for the clarification. Unfortunately there are no plans to install the FileImporter extension on other wikis than Wikimedia Commons. This would need at least a clearly communicated community consensus, as well as resources being assigned, mostly for communication. WMDE is currently unable to do this. However, the example of non-free media like cover art or movie stills that can be used in a few wiki languages only seems very plausible. We will keep this in mind.

Manlleus (talkcontribs)

Thanks, its just an idea, maybe a new extension cross-wiki to be added in the future. Good stuff

Reply to "Cross-wiki imports of Commons-incompatible media"

Incompatible "self" license

4
Summary by Thiemo Kreuz (WMDE)

"Self" templates are recognized when the included license templates are listed on the per-wiki configuration page.

Ruthven (talkcontribs)
Thiemo Kreuz (WMDE) (talkcontribs)

Which licenses allow a transfer to Commons is an individual community decision. The relevant configuration in this case is Extension:FileImporter/Data/it.wikipedia#Good. It seems it misses the it:Template:Cc-by-sa-4.0. I see Creative Commons 4.0 licenses are listed on other configuration pages (e.g. en and de), so I assume it is fine to add it.

The fact that a license template is transcluded indirectly via {{self|…}} does not make a difference. FileImporter will find it.

Ruthven (talkcontribs)

That's correct, my mistake. I assumed that the CC by-sa 4.0 license was added to the list already. Just adding the name of the template in the list will suffices? Thanks.

Thiemo Kreuz (WMDE) (talkcontribs)

Yes, your edit looks like it should do it. Thanks for using the tool and the feedback. Both is very much welcome.

Parameter aliases

2
Summary by Thiemo Kreuz (WMDE)
Saint Johann (talkcontribs)
Thiemo Kreuz (WMDE) (talkcontribs)

The syntax in your example is perfect. Good job! Unfortunately, the tool currently does not fully understand this. When a parameter is listed multiple times, only the last instance is used. I created phab:T213955 to help us keep track of this requirement. Until then, I suggest to list the more common spelling variant of each parameter last.

Reply to "Parameter aliases"
Habitator terrae (talkcontribs)

Hello,

there are many files in the de.wikipedia that are automaticly tagged with nocommons, because they should have individual review. That is important because the PD-tags are often not enough for Commons. But there aren't tags, which are enough for Commons, for many PD file, that we could import to Commons, on the de.wikipedia. For example: There are many PD-alt-100 images - images that are older than 100 years, where the author in unknown -, that are older than 120 years (for example de:Datei:''Marie'' Haug ∞ Carl Ferdinand Pistorius, Foto Neapel um 1862, Abzug auf Albuminpapier um 1862.jpg), so that we are able to import them to Commons with PD-old-assumed. But the FileImporter, doesn't allow to do anything, if there a NoCommons-tag. So I think, we should allow to use the FileImporter for File with NoCommons. The FileImporter should make a warning text to the NoCommons Tag, and the User must add the right Commons-tag, before he/she Import the File.

Thiemo Kreuz (WMDE) (talkcontribs)

As far as the software is concerned, NoCommons means NoCommons. If these files need individual review, why not do this and remove the NoCommons template before moving a file to Commons?

Habitator terrae (talkcontribs)
Habitator terrae (talkcontribs)

Now I wanted to import the file de:Datei:''Marie'' Haug ∞ Carl Ferdinand Pistorius, Foto Neapel um 1862, Abzug auf Albuminpapier um 1862.jpg (150 years old and only a Foundation as author, so unknow author ==> allowed on Commons with PD-old-assumed). I removed the NoCommons tag with "Commons=ja". Then I read "The file cannot be imported, because it is not marked with one of the required licences.", yes is has not the license tag to import the file to Commons, but there is no license tag on the de.wp like PD-old-assumed, because we don't need it.

Thiemo Kreuz (WMDE) (talkcontribs)
Slowking4 (talkcontribs)

the use of nocommons on edge cases is a symptom of lack of trust among communities. it is a soft issue not a code issue. the communities need to work it out, and the tool will reflect that consensus.

Reply to "NoCommons"

Not yet in Common's preferences

4
Summary by Johanna Strodt (WMDE)

The beta feature will show up in all wikis except Commons soon. It won't show up in Common's preferences.

Tuvalkin (talkcontribs)

@Johanna Strodt (WMDE): In spite of what’s announced here, this feature is not yet shown in my preferences. (Apparently, I hadn’t set my preferences here in MW to disable the VisualEditor. Boy, is this thing even more of an UI nightmare than it was before! Cannot go and tick it disabled fast enough!)

Tuvalkin (talkcontribs)

Oh, I’m so dumb. Of course a gadget to import files to Commons i not available in Commons! Please forget this! Tuvalkin (talk) 12:10, 14 January 2019 (UTC)

Johanna Strodt (WMDE) (talkcontribs)

No worries, @Tuvalkin.

Also, right now, the beta feature is available on a handful of first wikis. Deployment to all other wikis is planned for January 16.

Best, Johanna

Johanna Strodt (WMDE) (talkcontribs)