Help:external link icons

{{imbox

| type = notice

| name = info

| text = In the default skin on desktop (Vector), en.Wikipedia uses only two external link icons; one for PDF documents and the other for all other external links. Some other skins use additional icons.

}}{{Wikipedia how to}}

{{ombox

| image = 42px

| text = You can test how this page looks in the different skins with these links:

{{select skin}}

}}{{Linking and page manipulation|linking and diffs}}

External links usually display 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.For example, Monobook uses https://en.wikipedia.org/w/resources/src/mediawiki.skinning/images/external-ltr.svg and Vector uses https://en.wikipedia.org/w/skins/Vector/resources/common/images/external-link-ltr-icon.svg

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.

Explanation

MediaWiki software detects URI schemes and/or filename extensions to create a link; thus links without a URI will not have an external link applied. MediaWiki does not attempt to detect any part of the URL to create a link, such as {{code|www}}, which many websites do not use in the URL.

The standard Wikipedia skin, Vector, shows only PDF icons, as does Cologne Blue. Modern, MonoBook and Timeless show a full set of filename extensions icons and some URI scheme icons; Minerva (mobile) shows none. Icons are defined in the CSS for each skin except for the PDF icon, which is displayed if "pdf" is anywhere in the filename extension.{{efn|name=common.css}}

Filename extension icons are displayed 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. Link icons do not adhere to accessibility standards, since alt text cannot be added.

Example

class="wikitable"

! colspan=3 style="text-align:center;font-size:90%;font-weight:normal;"| File:Gnome-applications-science.svg Use these links to view this page with a different skin:
{{select skin}}

TypeFile extensionSample link
Portable Document Format.pdf .PDF, .pdf# .PDF# .pdf? .PDF?http://example.org/test.pdf
Audio Video Interleave.avi .AVIhttp://example.org/test.avi
MPEG-1.mpg .MPG .mpeg .MPEGhttp://example.org/test.mpg
Ogg.ogm .OGMhttp://example.org/test.ogm
MIDI.MID .midi .MIDhttp://example.org/test.mid
MP3.MP3http://example.org/test.mp3
Ogg Vorbis.OGGhttp://example.org/test.ogg
Waveform Audio File Format .WAV*http://example.org/test.wav
Windows Media Audio.wma .WMAhttp://example.org/test.wma
TypeURI schemeSample link
Internet Relay Chatirc:// ircs://irc://example.org
File Transfer Protocolftp://ftp://example.org
Network News Transfer Protocolnews:news:example.org
mailtomailto:mailto:example@example.org
HTTP Securehttps://https://example.org/test.html
Apache Subversionsvn://svn://example.org/
Bitcoinbitcoin://bitcoin://example.org/
FTPSftps://ftps://example.org/
Geo URIgeo:geo:37.786971,-122.399677
Gitgit://git://example.org/
Gophergopher://gopher://example.org
Hypertext Transfer Protocolhttp://http://example.org
Magnet URI schememagnet://magnet://example.org/
Multimedia Messaging Servicemms://mms://example.org/
NASA World Windworldwind://worldwind://example.org/
Network News Transfer Protocolnntp://nntp://example.org/
Secure Shellssh://ssh://example.org/
Secure Session Initiation Protocolsips://sips://example.org/
Session Initiation Protocolsip://sip://example.org/
Short Message Servicesms://sms://example.org/
SSH File Transfer Protocolsftp://sftp://example.org/
Telephonetel://tel://example.org/
Telnettelnet://telnet://example.org/
Uniform resource nameurn:urn:isbn:0451450523
XMPPxmpp://xmpp://example.org/

Bugs

See also

Notes

{{notelist|refs=

{{efn|name=common.css|The default PDF icon is a generic document icon, but is changed to File:Icon pdf file.png through Common.css.}}

}}

Category:Wikipedia link help