Page MenuHomePhabricator

Redirect file page of foreign files directly to commons
Open, LowPublicFeature

Description

Redirect File: page directly to Wikimedia Commons in case file is streamed from there and no local file copy is available (most images on Wikipedias) because of 2 main reasons:

  • Commons categories are not shown on local File: pages
  • Commons annotations are not shown on local File: pages

This feature would basically be needed on all Wikimedia wiki projects.


Version: 1.21.x
Severity: enhancement

Details

Reference
bz44471

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:20 AM
bzimport set Reference to bz44471.
bzimport added a subscriber: Unknown Object (MLST).

Just to clarify, you are asking that

User links to (or goes to) [[File:Example.png]] on en.wikipedia, they end up at http://commons.wikimedia.org/wiki/File:Example.png instead of http://en.wikipedia.org/wiki/File:Example.png. (Just want to make sure I understand you correctly. "stream" can sometimes have a different meaning).

Doing this would probably make the "what pages use this file" not have the information for the specific wiki, which might be considered bad. Magically moving the user to the other site could also cause some confusion. People might not realize what happened, etc.

  • Commons categories are not shown on local File: pages

In theory there's nothing preventing us from showing them. How to present them so as not to be confusing is probably the biggest issue.

  • Commons annotations are not shown on local File: pages

annotations are done via js and really don't have much to do with MW. I see no reason why adding the javascript to the local js of the downstream user can't be done (Aka, add the annotation js to [[mediawiki:Common.js]] on wikipedia).

(In reply to comment #1)

Just to clarify, you are asking that

User links to (or goes to) [[File:Example.png]] on en.wikipedia, they end up
at
http://commons.wikimedia.org/wiki/File:Example.png instead of
http://en.wikipedia.org/wiki/File:Example.png. (Just want to make sure I
understand you correctly. "stream" can sometimes have a different meaning).

Yes this is what I meant.

  • Commons categories are not shown on local File: pages

In theory there's nothing preventing us from showing them. How to present
them
so as not to be confusing is probably the biggest issue.

Ok, lets do it. I filled another bug for this as bug #38786.

  • Commons annotations are not shown on local File: pages

annotations are done via js and really don't have much to do with MW. I see
no
reason why adding the javascript to the local js of the downstream user can't
be done (Aka, add the annotation js to [[mediawiki:Common.js]] on wikipedia).

Ok, lets do this too.

Sorry that bug goes to annotations of course.

Regarding the categories there already is a bug too: bug #18752.

I'm taking this bug to just be about redirected users to commons image page. The copy over categories is now a separate bug.

It should perhaps be re-evaluated if we still want to redirect file desc pages to commons. As it stands, we now have

*Multimedia viewer that changes the default viewing of file page experience
*"tabs" on the file page which now point users to commons.

  • Commons annotations are not shown on local File: pages

annotations are done via js and really don't have much to do with MW. I see
no
reason why adding the javascript to the local js of the downstream user can't
be done (Aka, add the annotation js to [[mediawiki:Common.js]] on wikipedia).

Ok, lets do this too.

To clarify, that part is out of scope for bugzilla (unless we bring annotations into MediaWiki at some future date). You'd have to ask at local wikipedia

  • Bug 38634 has been marked as a duplicate of this bug. ***
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM
Aklapper removed a subscriber: wikibugs-l-list.