Page MenuHomePhabricator

Link to File: page in embed code if no licensing information can be extracted
Open, LowPublic


Current behavior: If a file page contains no machine-readable attribution information, media viewer includes only a link to the project (e.g. Wikipedia itself) in the embed link.

Expected behavior: Media Viewer should provide best-available attribution information in the embed link. Since we don't know if the file requires attribution and cannot predictably extract the author, linking to the File: page is likely the best-available information.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:34 AM
bzimport set Reference to bz69618.
bzimport added a subscriber: Unknown Object (MLST).

Is this what Rich was hinting at in or is it a separate bug?

I don't know what Rich was hinting at, he hasn't told us. :)

Yeah, I thought you might have insider information somehow. Thanks anyway!

Dumb question: doesn't mediaviewer simply mimic the existing behavior of the "use this file" gadget in this situation?

Possibly. Technically, the "use this file" gadget does not exist on local wikis (only on Commons), and this issue will be most common for local file uploads where templates haven't been adopted yet to emit machine-readable metadata. Example:

(We should help fix some more of those templates, but the issue will remain for files without any standard templates.)

Ugh. Yes, a link to the File: page would be much superior in that case.

@mark Holmquist - I am going from what I have read on de; Commons en: and meta: written by representatives of the respective communities that I trust.

I want to avoid us doing the wrong thing, legally, ethically, morally and technically, and it seems to me that being inflexible is not consistent with that aim.

Luis Villa (WMF Legal): I have commented on the legal aspect at

I am sure MV will be fabulous when it is finished.

Gilles triaged this task as Low priority.Nov 24 2014, 2:06 PM
Gilles added a subscriber: Gilles.
Tgr added a comment.Dec 28 2014, 8:15 AM

Do you have any recommendation for the exact text? Currently if there is no machine-readable attribution data (example), the attribution text will be something like

"[image name or caption]". Licensed under [license name] via [Wikimedia Commons]

with the links being

[thumbnail]: the file page with MediaYViewer opened
"[image name or caption]: the file page with MediaYViewer opened
[license name]: license-specific URL
[Wikimedia Commons]: Commons main page

What would be a better text?

Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 6:09 PM
Restricted Application added subscribers: Matanya, Aklapper. · View Herald TranscriptSep 4 2015, 6:09 PM

Mass-removing the Multimedia tag from MediaViewer tasks, as this is now being worked on by the Reading department, not Editing's Multimedia team.

Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptApr 27 2016, 4:24 PM

I was looking into this on the latest code from git and it seems fixed to me. Here I what I get on a local image with no copyright tag:

<p><a href=""><img src="" alt="Ioan Em. Florescu - Europeana.jpeg" width="303" height="480"></a><br>By <a href="" class="extiw" title="en:Carol Szathmari">Carol Szathmari</a> - <a rel="nofollow" class="external free" href=""></a>, Public Domain, <a href="">Link</a></p>

The last part links directly to the file

Tgr removed a subscriber: Tgr.Jul 9 2019, 6:04 PM