Extension:IconLink

What can this extension do?
This extension places an icon in front of an external link. By default the favicon image of the linked site is used but it's also possible to specify the URL of an image to show instead. The width and height of the icon can also be specified. Therefore this extension can be seen as an enhanced version of Extension:FaviconLink, but implemented as a parser function so that it can be used in templates too.

Usage
where
 * url is the URL you want to create a link to
 * description is the text to show instead of the URL (optional)
 * icon is the URL of the image to show before the link (optional); if omitted, the favicon of the site you're linking is shown
 * width and height define the dimensions of the icon (both optional); if omitted, the icon will have a size of 16x16 pixels

Requirements
The extension needs at least PHP 5.x ( function get_headers ).

Download instructions
Please cut and paste the code found below and place it in.

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