Extension:ImgLink

What can this extension do?
Sometimes it's desirable to have small images/icons inline in text. This is possible for non-link text with simply. Unfortunately, this doesn't work inside a link. This is a quick extension I put together to allow link text to contain inline images.

Usage
Use the parser hook where substitutions is a comma-separated list of search/replace pairs in the form pattern=filename.png or pattern=filename.png=alt text

For example, suppose Image:Heart.png and Image:Spade.png are defined on the wiki. Then the following code would produce a single link with the images inlined: The link points to the page Michaels cuebid, and the text is "2H or 2S" where the H and S are replaced by the images, presumably of a small heart and spade suit icon.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php: