am 08.08.2009 00:35 schrieb Platonides:
> Peter Velan wrote:
>> it would be nice to have the same icons following an internal
>> media-link as the ones displayed behind external links:
>> 
>> e.g.:
>> * [http://localhost/Example.pdf doc.pdf] {pdf-icon-15x15.gif}
>> * [[Media:Example.pdf|doc.pdf]] {**same as above**}
>> 
>> How could I achieve this?
> 
> At monobook/main.css you will find
>> #bodyContent a.external[href $=".pdf"], #bodyContent a.external[href 
>> $=".PDF"],
>> #bodyContent a.external[href *=".pdf#"], #bodyContent a.external[href 
>> *=".PDF#"],
>> #bodyContent a.external[href *=".pdf?"], #bodyContent a.external[href 
>> *=".PDF?"],
>> .link-document {
>>      background: url("document.png") center right no-repeat;
>>      padding: 0 12px;
>> }
> 
> remove the ".external" from them to apply to any link in the content.*

Great, this works! But I would prefer to go this way ...

> *Instead of editing the css files you can copy the modified text to
> MediaWiki:monobook.css

... instead, as this will survive coming MediaWiki upgrades.

Unfortunately, if I put this into MediaWiki:monobook.css then the
iconic image is expected to be located in wiki's root :-(

For now, I symlinked the required icons into wiki's root, but this
will possibly be killed by a future MediaWiki upgrade, too.

Peter

_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to