*** Welcome to piglix ***

Help:External link icons


External links usually display with an icon at the end of the link. CSS is used to check for certain filename extensions or URI schemes and apply an icon specific to that file type, based on the selected skin.

This page contains example URLs to demonstrate the link icons. The displayed icon only depends on the URL itself. It is not checked whether a file of that type is actually at the link. The examples here do not link to real files.

PDF icons have precedence over all others— if pdf is anywhere in the filename extension, then the icon is applied. Other icons for filename extensions are applied only if the extension matches the text. Filename extension icons have precedence over URI scheme icons. Internet Explorer may show an empty space or misplaced icon if the page is rendered with a line wrap inside the link text.

Icons are defined in the CSS for each skin, except for the .pdf icon which is defined in . Vector and Cologne Blue will show only the PDF icon. Modern and MonoBook will show a full set of icons for filename extensions, and icons for some URI schemes. Minerva (mobile skin) will not show any icons. The links at the top of the page can be used to view the different icon sets.

The link icons have no alt text, thus do not meet accessibility standards.

You can add link icons by editing (current skin only) or (all skins). For example, to add an icon for Excel files:

When successfully updated, this link will show an Excel icon:

The markup detects file extensions .xls or .xlsx with both upper and lower case. The image must be 16 pixels wide and cannot be SVG format. The image link must be from . To get this link, go to the file page and click on the image to open it without the file description, then copy the URL.

To remove a default icon, simply add the CSS with no URL. For example, to remove the padlock icon when viewing secure links:

To remove all the default icons, use this CSS:

The class plainlinks disables the link icon.


...
Wikipedia

...