Extension:ImagePagePrintLink

ImagePagePrintLink will add a ”print this image” link to the list of links in the top of a image descriptions page. Printing is done using JavaScript, and the link will be visible only if JavaScript is enabled and printing is supported. Link will only show up for local files, as most browsers will not allow javascript to print from other domains, and only is the file is a printable image.

This extension was written for Säsongsmat.nu, Please feel free to improve or change anything if you feel you could use it somewhere else. Code is located here (Github).

Requirements
Only tested with MediaWiki 1.16.1 – 1.16.5, but should work with anything > 1.16.0. Please add a line here if you try it with a different version. (Earlier versions will most likely not work.)

Requires jQuery, which is included by default with MediaWiki since 1.16.0.

Installation
Download the extensions and place it in your extensions directory.

Add the following to LocalSettings.php:

Add the following JavaScript snippet to your MediaWiki:Common.js (default for most skins), or where ever you have your Javascripts.

Versions

 * 0.2
 * Make sure jQuery loads
 * Avoid conflict with parameter names for i18n
 * 0.1 first version, Swedish and English''

To do

 * Use MW 1.17 resourceloader to add js (unless asked not to)