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? ;)

= Usage Help =