User:Subfader/Linker
Appearance
On other Special Pages I made it work using those
[edit](Tried those of course, but they gave me the same UNIQ error)
ImagePage:
$wgOut->addWikiText( <<<EOT
<div class="fullMedia">
{{#if:getMediaType()=="AUDIO"|{{#mp3i:$filename}}|[[Media:$filename|$filename]]}}$dirmark <span class="fileInfo"> $longDesc</span>
</div>
EOT );
SpecialMIMEsearch
$playfile = $skin->makeMediaLinkObj( $wgOut->addWikiText(<<<EOT
<span style="padding-right:4px">[[:File:$text|{{#Icon:Desc.png|Links to the description page of this file}}]]</span>
{{#mp3i:$text}}<span style="padding-left:10px;color:#828282; font-size:88%;"></span>
EOT
)) ;
return "$playfile";