for PDF add this to MediaWiki:Commons.css in your wiki changing "FULL URL OF IMAGE" to the actually URL of the image file (not the image page) including the http:// part.
#bodyContent a[href$=".pdf"].external, #bodyContent a[href*=".pdf?"].external, #bodyContent a[href*=".pdf#"].external, #bodyContent a[href$=".PDF"].external, #bodyContent a[href*=".PDF?"].external, #bodyContent a[href*=".PDF#"].external { background: url(FULL URL OF IMAGE ) center right no-repeat;padding-right: 16px;}
for doc, simply change all occurrences of pdf to the extension of your choice (in exactly the same capitalisation used previously). Continue doing this for all of them.
After doing so you may need to purge the MediaWiki:Common.css by adding "?action=purge" to the end of the title.
Hope that helps.
On 18/10/06, Mr Scsi mrscsi@gmail.com wrote:
In the 1.8.2 release on the Specialpage 'Gallery of new files', I have a nice icon for pdf files, but doc, ppt, ....are blank images.
The link to the files works just fine, but I would like to define an icon for those file types.
How would I set that value?
Andy _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l