Extension:ImageLink

Purpose
Provides a clickable image link using an image stored in the Image namespace and an article title (which may or may not existin the database).

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

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.

Dependancy

 * StubManager extension

History

 * Removed dependency on ExtensionClass
 * Added 'stubbing' capability though StubManager
 * Added non-existing link (i.e. red link) when image page does not exist
 * Moved to PEAR distribution repository.
 * Added support for interwiki image.

1.0.2

 * Fixed minor issue when page title isn't valid; this situation can occur in templates (for example).

1.1.0

 * Added '#imagelink_raw' parser function

1.1.1

 * Adjusted to return '' when $page parameter is empty; helps with templating with Extension:PageAfterAndBefore

1.2.0

 * Added 'link-less' functionality

1.2.1

 * Added input sanitization for increased security