Extension:Title Icon

The Title Icon extension places an icon to the left of the page title when the title is displayed at the top of the page and when the page is listed in search results. Display of such an icon can help users easily visually detect that a page is in a particular category. This helps on the page itself, but also helps when trying to pick out the correct page from a list of search results.

The icon is specified by a semantic property of type Text that indicates the filename of an image file uploaded to the wiki. The extension looks for the property on the page itself and on the category page of any category to which the page belongs. Multiple icons will be displayed where mutiple values are assigned to the property up to a maximum of five for each page queried for the property (the page itself and its categories). However, if the same icon is specified more than once, it will only be displayed once. The icon is sized to 36 pixels by 36 pixels maintaining its original aspect ratio.

By default, Title Icon will insert the icon in the title at the top of a page for any skin that puts the title in an HTML element with id "firstHeading" such as the default Vector skin. This can be changed for other skins using the  configuration variable.

Special thanks to Bernadette Clemente for the original idea that inspired this extension and to Keven Ring for an early implementation of this extension.

Installation
This extension requires Semantic MediaWiki to be installed first.

Configuration parameters
NOTE: The $TitleIcon_UseDisplayTitle and $TitleIcon_DisplayTitlePropertyName parameters were removed in version 2.0 since they duplicate and conflict with functionality provided by the Semantic Title extension.

Examples
 Category:Title Icon Example :

 Title Icon Example 1 :

 Title Icon Example 2 :

 Title Icon Example 3 :

 Title Icon Example 4 :

 Title Icon Example 5 :