User:Subfader/

My solution without patching includes/ImagePage.php:

I use my old Media template, so I won't need to change all the pages, but most important: It's a combination of all 3 functions:
 * Link to desc page of file
 * Play the file
 * Give a download link to the file

Therefor InlineMP3.php uses the direct link code again on line 92.

Possible insert code:

This insert code uses the following Template:Media which includes  then:

is an extension to display either unclickable images or to display images that link somewhere else instead of the desc page of the image.

So the fix is to use to have the "page with the insert code" listed on the desc page of file Foo. But the generated link is hidden by display:none but the markup is working in the "background" as MediaWiki requires it to.

Note: This may be a secruity issue for you since $wgSpamRegex disables using display:none.

Btw: What happens if you only use the speaker icon and the link to desc page if you have an external file included?

In my solution the desc icon leads to a non-existing wiki page (of course). example

I would need to find a way to disable the desc icon if external link, i.e. if the template parameter 1 = http...

= Usage Help =