Jump to content

Talk:WMDE Technical Wishes/Move files to Commons

Add topic
From Meta, a Wikimedia project coordination wiki

Alpha test

[edit]

General feedback

[edit]
  • I'm looking at the file [1], it has indeed been imported so that the page history is intact and the file was apparently uploaded in 2015. There's no indication in the File History section that the file has been imported from another Wiki: maybe there should be, to preserve that aspect of the history and potentially avoid confusion? Ghouston (talk) 03:24, 19 April 2018 (UTC)Reply
  • Will it affect bots that monitor the most recently uploaded files? They may not process these ones if they have a fake date. Ghouston (talk) 03:24, 19 April 2018 (UTC)Reply
  • Will we have files that are apparently uploaded before the date that Commons was founded? Would that be weird? Ghouston (talk) 03:24, 19 April 2018 (UTC)Reply
  • I think all the above problems, plus any need to keep the Original Upload Log, could be fixed by a) on the old, fake file history lines, add a suffix that says what Wiki the event actually happened at, like (enwiki) b) add a new history line to record the transfer to Commons, this will set the file upload date on Commons to the date of the transfer. Ghouston (talk) 03:37, 19 April 2018 (UTC)Reply
Oh, for me it’s the viewpoint, that I am on another wiki and have to export to Commons, Johanna. If the tool was started from Commons the files would be imported. — Speravir (talk– 17:52, 2 May 2018 (UTC)Reply
  • What does copied mean: Is it not anymore deleted on the original wiki? What happens then if the local copy is altered, file or description? How to deal with existing redirects – what happens now if they exist? — Speravir (talk– 22:11, 20 April 2018 (UTC)Reply
  • @Speravir: The deletion of local files is not included in this feature because the local wiki has to decide what to do with a file. So after an import, the FileImporter suggests to add the template “nowCommons” to the local file so that the local wiki can decide what to do with it. As it is likely that “nowCommons” files will be quickly deleted by most wikis, there won’t be a synchronization between the two files. Redirects won’t be imported. On a redirect page, the “Import to Commons” link won’t be shown. But existing redirects should still work if you import a file – except for when the file title was changed during the import. -- Best, Johanna Strodt (WMDE) (talk) 10:05, 2 May 2018 (UTC)Reply
Oh, yes, Johanna, my mistake. It’s the same now, and why change this. — Speravir (talk– 17:52, 2 May 2018 (UTC)Reply

Original Upload Log

[edit]

Considering that the MediaWiki feature we’re working on will import the version history properly, do you consider it necessary to still provide the Original Upload Log? If so, why?

CommonsHelper

[edit]

I think it is important to get Magnus Manske at least informed or if possible to get involved him: He is the author and maintainer of the wonderful CommonsHelper which I frequently use. Magnus’ tool had either to be rewritten or would be obsolete. In the latter case more users had to be involved: The way I use the helper is actually by a userscript of Schnark, and there may be more cases. — Speravir (talk– 22:03, 20 April 2018 (UTC)Reply

@Speravir:: Thank you! Yes, we are in touch with Magnus Manzke. -- Best, Johanna Strodt (WMDE) (talk) 15:41, 24 April 2018 (UTC)Reply

Oh there is also toolforge:commonshelper2 which I did not know until now and hence cannot say anything about this. — Speravir (talk– 22:06, 20 April 2018 (UTC)Reply

@Speravir: https://tools.wmflabs.org/commonshelper2 leads to an error page. Did you mean https://tools.wmflabs.org/admin/tool/commonshelper2 ? -- Best, Johanna Strodt (WMDE) (talk) 15:41, 24 April 2018 (UTC)Reply
Yes, Johanna, sorry that I didn’t check the link I provided. I found it by searching for Commons in Toolforge. — Speravir (talk– 17:45, 24 April 2018 (UTC)Reply
@Speravir: No worries and thanks for confirming. -- Best, Johanna Strodt (WMDE) (talk) 07:06, 25 April 2018 (UTC)Reply

Fair use

[edit]

Hi. Is there a way to block moving fair use files? Thank you. IKhitron (talk) 15:47, 7 June 2018 (UTC)Reply

@IKhitron: Yes, there is. The FileImporter checks if the source file a) has a template that explicitly allows a transfer to Commons OR b) if it has a template that prohibits the transfer. In order to determine that, the FileImporter uses the configuration files from the CommonsHelper2 tool. There is a list for each wiki (example he-wiki) and the lists can be maintained by the community. -- Best, Johanna Strodt (WMDE) (talk) 08:42, 8 June 2018 (UTC)Reply
Great, thank you. IKhitron (talk) 08:49, 8 June 2018 (UTC)Reply

Local admin

[edit]

"Our feature does not delete files. Instead, it asks users to add a template (e.g. {{nowCommons}}) to the local file so that local admins can start the cleanup process."

If the user is the admin on local, they should be able to delete it right away, without the unnecessary fuss like that template. — regards, Revi 16:32, 7 June 2018 (UTC)Reply

@-revi: Yes, admins in the local wiki are able to delete them right away. Adding a template is merely a suggestion so that each wiki can proceed with their individual process for moved files. -- Johanna Strodt (WMDE) (talk) 08:58, 8 June 2018 (UTC)Reply
If I recall correctly, current CommonsHelper have a link to ?action=delete (at least), and without it, this tool will introduce a regression. — regards, Revi 09:00, 8 June 2018 (UTC)Reply
@-revi: Having a link that directly leads to the deletion page is not planned currently, but I created ticket to further discuss this.

Tracked in Phabricator:
Task T196735 -- Best, Johanna Strodt (WMDE) (talk) 09:35, 8 June 2018 (UTC)Reply

Local image

[edit]

4 says: "If the file name hasn’t changed, the local wiki will automatically show the Commons file instead of the local file on its pages." That sounds strange. So some local files will show up ("old files") even if there is an image on Commons with the same name. The "new type" of local files will not show up? Christian75 (talk) 06:21, 12 June 2018 (UTC)Reply

  • It has always been the case that people upload images to Wikipedia, and then someone accidentally uploads a different file to Commons with the same name. I think that it would be problematic if the Commons file is then shown on all pages on Wikipedia as Wikipedia probably expects the local file instead.
There are templates (d:Q10513536) to mark local files which hide Commons files, thereby indicating that there is a filename mismatch which needs to be resolved. However, I think that it is undesirable to show the Commons file until this has been resolved. --Stefan2 (talk) 11:47, 12 June 2018 (UTC)Reply
@Stefan2: - But that not what the text says. It says "If the file name hasn’t changed, the local wiki will automatically show the Commons file instead of the local file on its pages". Maybe they ment it will show the Commons version after some admin deleted the local one. I was just surprised... Christian75 (talk) 14:30, 13 June 2018 (UTC)Reply
@Christian75 and Stefan2: That's a good point! You're right. The text on the front has been changed now, hopefully making this clearer. -- Best, Johanna Strodt (WMDE) (talk) 09:11, 14 June 2018 (UTC)Reply
[edit]
1: Click "Export to Wikimedia Commons" on a local file page

Hello, per this screenshot the link will be near "Read", "Edit", and "View history". But is it possible to add it to the "More menu, like the "Move" link. This feature is an action and has its place in the dropdown menu IMO. Thanks ! --Framawiki (talk) 20:06, 13 June 2018 (UTC)Reply

@Framawiki: Thank you for your question and suggestion! We'll give it some more thought where to best put the link. -- Best, Johanna Strodt (WMDE) (talk) 07:56, 19 June 2018 (UTC)Reply
[edit]

I've been playing around with this tool a bit, and noticed that it causes lots of redlinks because it doesn't update wikilinks to point to the originating wiki. This can be fixed manually, but it would make sense for the tool to do this automatically. For example, I imported the file File:1st Security Force Assistance Brigade Flash.svg, and had to manually change [[1st Security Force Assistance Brigade]] to [[:en:1st Security Force Assistance Brigade|1st Security Force Assistance Brigade]], [[United States military beret flash|unit flash]] to [[:en:United States military beret flash|unit flash]], and [[User:McChizzle]] to {{User at project|McChizzle|w|en}}. It seems like it should be a fairly easy task to add the originating wiki's interwiki code and to pipe wikilinks that now need piping to hide the code. Detecting usernames and using {{User at project}} would be useful too. Bonus points if the code is smart enough to only do it to redlinks. --Ahecht (TALK
PAGE
) 02:43, 2 July 2018 (UTC)Reply

@Ahecht: Thanks for your feedback and the tickets you made. We already replace links in the edit summary and links to user names in the revision history. Besides, we’re considering to have the URL in the import comment (in the file info) as a short interwiki link, too. Fixing the links in the wikitext isn’t currently on our agenda, but we’ll have it on our radar. -- Best, Johanna Strodt (WMDE) (talk) 09:07, 9 July 2018 (UTC)Reply

Default value for parameter in transferred templates

[edit]

I have been looking at adding to mw:Extension:FileImporter/Data/en.wikipedia to have the tool transfer from en:Template:PD-user to commons:PD-user-w. However, the PD-user template has a third parameter that defaults to "en" if not specified. However, I couldn't find any way to define that in the configuration file. If I entered ;PD-user:PD-user-w|+project=w|language=2|user=1, no value would be transferred for language in most cases. What's needed is a syntax like ;PD-user:PD-user-w|+project=w|language=2|+language=en|user=1, where the tool would interpret that as "set language= to the value of 2=, but if 2= is not defined, set language= to en". --Ahecht (TALK
PAGE
) 03:05, 2 July 2018 (UTC)Reply

@Ahecht: Thanks for this remark, too! We’re currently working on the ‘+’ syntax (T198606) so that parameters that were not present in the local file description page can be added to the file on Commons. So far we don’t have plans to implement fallbacks, though. But it’s a valid point you’re raising and we’ll keep it in mind. -- Best, Johanna Strodt (WMDE) (talk) 09:08, 9 July 2018 (UTC)Reply

Geht das auch in Gegenrichtung? // Does this also work in the opposite direction?

[edit]

Was, wenn Inhalte auf Commons durch anglozentrischen Vandalismus bedroht sind, wie z.B. hier? Können dann die derart bedrohten Inhalte auch einfach in die deutschsprachigen Projekte verschoben werden, um sie vor der Vernichtung zu bewahren? Grüße vom Sänger ♫(Reden) 10:52, 20 January 2019 (UTC)Reply

EN in a nutshell Sometimes, files have to be deleted from Commons, although they would be allowed on local wikis such as dewiki. For this use case, it would be great if the FileExporter/FileImporter could move files in the opposite direction, from Commons to dewiki etc.
@Sänger: Danke! Bisher geht das noch nicht. Ich hab dazu ein Ticket in Phabricator angelegt, wo wir die Wünsche zum Ausbau der Funktion sammeln. Außerdem hab ich das Anliegen in den FAQ ergänzt.
EN: This request was filed in Phabricator, and added to the FAQ.
Viele Grüße, Johanna Strodt (WMDE) (talk) 09:08, 21 January 2019 (UTC)Reply
Das sollte am besten gleich in einem Aufwasch in alle im weitesten Sinne deutschsprachigen (de, frr, dsb, bar, hsb, nds, pdc, stq...) Projekte (-pedia, -source-, voyage, -tionary, -quote, -News...) erledigt werden, und nicht mühsam einzeln per Hand.
Oder aber es gibt getrennte Lizenzräume auf Commons für verschiedene Rechtssysteme, dann wäre wieder ein einzelnes Repository für das ganze Wikiversum möglich, und die einzelnen Projekte bekämen eingeschränkten Zugriff.
Service: It should be done in one go for all roughly German projects, not one by one by hand. Or there should be different licence areas for different law Systems, so that Commons would again be a single repository for the whole wikiverse, but with different access for the Projects.
Grüße vom Sänger ♫(Reden) 09:33, 21 January 2019 (UTC)Reply
@Sänger: Hab's im Ticket ergänzt. -- Viele Grüße, Johanna Strodt (WMDE) (talk) 14:51, 21 January 2019 (UTC)Reply