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?
Help talk:Extension:FileImporter
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
Johanna thanks for you reply. Is there another way one can use to map multiple fields in the source template into one?
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.
@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
Thanks @Johanna Strodt (WMDE)!
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?
We are happy you like it! All languages other than English are managed here: https://translatewiki.net/wiki/Special:Translate/ext-fileimporter
(translatewiki:MediaWiki:Fileimporter-sourcetitleexists)
"The title you are currently trying to import to already exists on the source wiki."
Do you mean "destination wiki"?
Excellent question. I checked and made sure the message intentionally talks about the source wiki. I updated the explanation for this message at translatewiki:MediaWiki:Fileimporter-sourcetitleexists/qqq. I hope this explains it better.
Thanks. I localized it with the meaning "The title you are trying to use is being used by another file on the source wiki."
yue and zh-hant all done! Thank you!
The configuration file for your wiki (https://www.mediawiki.org/wiki/Extension:FileImporter/Data/id.wikipedia) does not contain enough info about <Information/Licensing> to know if this file can be put on Commons.
I'm trying to move my file: https://id.wikipedia.org/wiki/Berkas:Laweyan.svg
What does it mean that it does not contain enough info about <Information/Licensing>?
We updated this message just a few days ago. Now it says: The configuration page for your wiki (Extension:FileImporter/Data/id.wikipedia) does not contain enough information to know if this file can be put on Commons. Please make sure it contains a section "Information/Licensing". Does this explain it better?
I also fixed a spelling mistake on Extension:FileImporter/Data/id.wikipedia. Can you please try again?
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!
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.
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
What exactly do you have in mind when you say "another wiki edition"?
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)
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.
Thanks, its just an idea, maybe a new extension cross-wiki to be added in the future. Good stuff
When exporting from it.wiki, I encountered a file (https://it.wikipedia.org/wiki/File:2007-Mostra_di_Riccardo_Del_Fa3.JPG) where the import was blocked because of "incompatible license". The license in this case is more than valid: {{Self|cc-by-sa-4.0}}.
Maybe what's behind the "self" should be checked as well... Thanks
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.
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.
Yes, your edit looks like it should do it. Thanks for using the tool and the feedback. Both is very much welcome.
Is this a fool-proof way to add parameter aliases? If not, what is one? We have some discrepancies in the way information template is filled in across the files, and I would like to fix this when importing.
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.
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.
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?
Sorry, I didn't see the parameter "Commons" of the template de:Vorlage:Bild-PD-alt-100. Thank you.
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.
I suggest to bring this topic up at de:WP:DÜP or the corresponding discussion page on Wikimedia Commons. The current community consensus documented at Extension:FileImporter/Data/de.wikipedia#Bad 2 is to not allow transfers of files with a de:Template:Bild-PD-alt-100.
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.
@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!)
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)
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
@Tuvalkin I've just updated my message on Commons. Now it should be clearer that there are two different extensions at work; one on Commons, and one on the wikis to export from: