Mediawiki file size
From Bjoern Hassler
When linking to larger files (such as images, pdfs, zips or other files), best practice guidelines (such as http://www.aptivate.org/webguidelines/Guidelines.html) suggest that you give the size of the file, so that the user can make a decision about whether to download (and what version if there's a choice).
How do you do this in mediawiki?
You can obviously link to a file (such as Media:Mediawiki sunflower.png), but how do you give the size? I had a look around, but couldn't find a way of inserting the size of an image (or other document) into a wiki page. Hence I wrote an parser function to do this.
With this extension, you can now say "here's the link to the file Media:Mediawiki sunflower.png (503 kB)".
For more examples, see Mediawiki file size/example.
Code to follow!
If this is possible with mediawiki out of the box, let me know :-) --Bjoern 17:50, 14 September 2008 (UTC)
Related extension: LocalFile
Also related: http://www.mediawiki.org/wiki/Extension:MediaFunctions