Topic on Project:Support desk

Download a file from an image.

3
TheAlmightyGuru (talkcontribs)

I'm trying to make it so that I can click on an image and download an audio file, but I'm not having very much success.

Essentially, I want to take the functionality of MEDIA namespace that allows you to download a file rather than visit the file's page:

[[Media:Audio.ogg]]

And combine it with the LINK option of the IMAGE namespace which allows you to use an image to link to a file page.

[[Image:Image.png|link=File:Audio.ogg]]

However, when you put the MEDIA namespace in an IMAGE link:

[[Image:Image.png|link=Media:Audio.ogg]]

It still takes you to the file page rather than downloading the file. Anyone know how to fix this? I'm using MediaWiki v1.18.3

MarkAHershberger (talkcontribs)

Something like the following?


[[Image:Wild Turtle.jpg|100px|link={{filepath:AmicusMeus.ogg}}]]
Reply to "Download a file from an image."