Extension:ImageLink

'''This extension is still useful for older mediawiki installations. However, since mediawiki, a parameter "link=" can be added to any image, without the need to install an extension.'''

Purpose
Provides a clickable image link using an image (either stored in the Image namespace or accessible through an interwiki prefix) and an article title (which may or may not exist in the database).

The extension also supports the link-less mode thereby enabling a one-stop solution for both link and link-less requirements.

Furthermore, the extension also supports events but only on edit protected pages.

Lastly, the extension provides the parser function #iconlink which provides a clickable URL with the site's favicon.ico as image.

Usage Note
Please use the #img parser function instead of the older #imagelink one.

Local Image


See W3Schools on IMG tag for more details.

Link-Less option
If no page name is given, then no anchor (i.e. HTML  element) will be generated.

Default Image
When the parameter image points to a non-existing image page, then default parameter (if specified) is used as image page. Note that for interwiki link, this option is not supported.

Event Attributes
Event attributes supported: onchange, onsubmit, onreset, onselect, onsubmit, onreset, onselect, onblur, onfocus, onkeydown, onkeyup, onkeypress, onclick, ondblclick, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup.

Dependency

 * StubManager extension

Optional Dependency
The PEAR package Validate can be installed: the extension performs additional sanity check for site parameter.

Sites using this extension

 * author's web site
 * wikiants.org - German
 * wikiants.org - English

Changes in Trunk

 * Added a space between $content and img in anchor (thanks Mitchelln)