Last modified: 2013-06-03 15:51:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18409, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16409 - New "link=" parameter in [[Image: - cannot link to Media:
New "link=" parameter in [[Image: - cannot link to Media:
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Low enhancement with 9 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-21 09:53 UTC by Piotr Kubowicz
Modified: 2013-06-03 15:51 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Piotr Kubowicz 2008-11-21 09:53:38 UTC
If you try to create the following template:

[[image:loudspeaker.svg|16px|link=Media:{{{1}}}]]

after clicking on the icon user will see a message "there's no such file"; although when you change Media: to Image, everything works fine.
Comment 1 Splarka 2008-11-21 10:35:59 UTC
You should be able to use Special:Filepath/{{{1}}} although this is an imperfect solution.

Also possibly related is bug 16162
Comment 2 Capmo 2012-10-08 18:12:26 UTC
Currently (MW 1.19) the "link=Media:Something.ogg" syntax is accepted but takes us to the file description page instead of actually opening the media file as would be expected:

[[File:Something.ogg]] -> opens the file description page
[[File:Image.gif|link=File:Something.ogg]] -> opens the file description page

[[Media:Something.ogg]] -> links to media file
[[File:Image.gif|link=Media:Something.ogg]] -> opens the file description page (should link to media file!)
Comment 3 Bawolff (Brian Wolff) 2013-06-03 15:51:31 UTC
hmmm, that's kind of odd. NS_MEDIA is special cased in Parser::replaceInternalLinks2 instead of having Title::getLocalUrl output the file's url directly...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links