<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Help%3AExternal_link_icons</id>
	<title>Help:External link icons - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Help%3AExternal_link_icons"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Help:External_link_icons&amp;action=history"/>
	<updated>2026-05-14T08:28:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Help:External_link_icons&amp;diff=20665&amp;oldid=prev</id>
		<title>Richardpruen: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Help:External_link_icons&amp;diff=20665&amp;oldid=prev"/>
		<updated>2022-01-01T18:32:44Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:32, 1 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Richardpruen</name></author>
	</entry>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Help:External_link_icons&amp;diff=20664&amp;oldid=prev</id>
		<title>Wikipedia&gt;Izno: /* Custom link icons */ remove this restriction - likely pertaining to IE &lt; 9, which MediaWiki no longer supports</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Help:External_link_icons&amp;diff=20664&amp;oldid=prev"/>
		<updated>2021-09-15T03:13:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Custom link icons: &lt;/span&gt; remove this restriction - likely pertaining to IE &amp;lt; 9, which MediaWiki no longer supports&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{imbox&lt;br /&gt;
| type       = notice&lt;br /&gt;
| name       = info&lt;br /&gt;
| text       = In the default skin on desktop ([[mw:Skin:Vector|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.&lt;br /&gt;
}}{{Wikipedia how to}}&lt;br /&gt;
{{ombox&lt;br /&gt;
| image = [[File:Gnome-applications-science.svg|42px]]&lt;br /&gt;
| text = You can test how this page looks in the different skins with these links:&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center; font-size:90%&amp;quot;&amp;gt;{{select skin}}&amp;lt;/div&amp;gt;&lt;br /&gt;
}}{{Linking and page manipulation|linking and diffs}}&lt;br /&gt;
External links usually display an icon at the end of the link. CSS is used to check for certain [[filename extension]]s or [[URI scheme]]s and apply an icon specific to that file type, based on the selected [[Wikipedia:Skin|skin]].&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Explanation ==&lt;br /&gt;
[[MediaWiki]] software detects [[URI scheme]]s and/or [[filename extension]]s to create a link; thus links without an 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.&lt;br /&gt;
&lt;br /&gt;
The standard Wikipedia skin, &amp;#039;&amp;#039;[[WP:Vector|Vector]]&amp;#039;&amp;#039;, shows only PDF icons, as does &amp;#039;&amp;#039;Cologne Blue&amp;#039;&amp;#039;. &amp;#039;&amp;#039;Modern&amp;#039;&amp;#039;, &amp;#039;&amp;#039;MonoBook&amp;#039;&amp;#039; and &amp;#039;&amp;#039;Timeless&amp;#039;&amp;#039; show a full set of filename extensions icons and some URI scheme icons; &amp;#039;&amp;#039;Minerva&amp;#039;&amp;#039; (mobile) shows none. Icons are defined in the CSS for each skin except for the PDF icon, which is displayed if &amp;#039;&amp;#039;&amp;quot;pdf&amp;quot;&amp;#039;&amp;#039; is anywhere in the filename extension.{{efn|name=common.css}}&lt;br /&gt;
&lt;br /&gt;
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 [[MOS:ACCESS|accessibility standards]], since alt text cannot be added.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=3 style=&amp;quot;text-align:center;font-size:90%;font-weight:normal;&amp;quot;| [[File:Gnome-applications-science.svg|left|38px]] &amp;#039;&amp;#039;&amp;#039;Use these links to view this page with a different skin:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;{{select skin}}&lt;br /&gt;
|-&lt;br /&gt;
! Type !! File extension !! Sample link&lt;br /&gt;
|-&lt;br /&gt;
| [[Portable Document Format]] || .pdf .PDF, .pdf# .PDF# .pdf? .PDF? || http://example.org/test.pdf&lt;br /&gt;
|-&lt;br /&gt;
| [[Audio Video Interleave]] || .avi .AVI || http://example.org/test.avi&lt;br /&gt;
|-&lt;br /&gt;
| [[MPEG-1]] || .mpg .MPG .mpeg .MPEG || http://example.org/test.mpg&lt;br /&gt;
|-&lt;br /&gt;
| [[Ogg]] || .ogm .OGM || http://example.org/test.ogm&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDI]] || .MID  .midi .MID || http://example.org/test.mid&lt;br /&gt;
|-&lt;br /&gt;
| [[MP3]] || .MP3 || http://example.org/test.mp3&lt;br /&gt;
|-&lt;br /&gt;
| [[Ogg Vorbis]] || .OGG || http://example.org/test.ogg&lt;br /&gt;
|-&lt;br /&gt;
| [[WAV|Waveform Audio File Format ]] || .WAV* || http://example.org/test.wav&lt;br /&gt;
|-&lt;br /&gt;
| [[Windows Media Audio]] || .wma .WMA || http://example.org/test.wma&lt;br /&gt;
|-&lt;br /&gt;
! Type !! URI scheme !! Sample link&lt;br /&gt;
|-&lt;br /&gt;
| [[Internet Relay Chat]] || irc:// ircs:// || irc://example.org&lt;br /&gt;
|-&lt;br /&gt;
| [[File Transfer Protocol]] || ftp:// || ftp://example.org&lt;br /&gt;
|-&lt;br /&gt;
| [[Network News Transfer Protocol]] || news: || news:example.org&lt;br /&gt;
|-&lt;br /&gt;
| [[mailto]] || mailto: || mailto:example@example.org&lt;br /&gt;
|-&lt;br /&gt;
| [[HTTP Secure]] || https:// || https://example.org/test.html&lt;br /&gt;
|-&lt;br /&gt;
| [[Apache Subversion]] || svn:// || svn://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[Bitcoin]] || &amp;lt;nowiki&amp;gt;bitcoin://&amp;lt;/nowiki&amp;gt; || bitcoin://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[FTPS]] || ftps:// || ftps://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[Geo URI]] || geo: || geo:37.786971,-122.399677&lt;br /&gt;
|-&lt;br /&gt;
| [[Git (software)|Git]] || &amp;lt;nowiki&amp;gt;git://&amp;lt;/nowiki&amp;gt; || git://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[Gopher (protocol)|Gopher]] || gopher:// || gopher://example.org&lt;br /&gt;
|-&lt;br /&gt;
| [[Hypertext Transfer Protocol]] || http:// || http://example.org&lt;br /&gt;
|-&lt;br /&gt;
| [[Magnet URI scheme]] || &amp;lt;nowiki&amp;gt;magnet://&amp;lt;/nowiki&amp;gt; || magnet://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[Multimedia Messaging Service]] || mms:// || mms://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[NASA World Wind]] || worldwind:// || worldwind://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[Network News Transfer Protocol]] || nntp:// || nntp://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[Secure Shell]] || ssh:// || ssh://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| Secure [[Session Initiation Protocol]] || &amp;lt;nowiki&amp;gt;sips://&amp;lt;/nowiki&amp;gt; || sips://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[Session Initiation Protocol]] || &amp;lt;nowiki&amp;gt;sip://&amp;lt;/nowiki&amp;gt; || sip://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[Short Message Service]] || &amp;lt;nowiki&amp;gt;sms://&amp;lt;/nowiki&amp;gt; || sms://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[SSH File Transfer Protocol]] || sftp:// || sftp://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| Telephone || &amp;lt;nowiki&amp;gt;tel://&amp;lt;/nowiki&amp;gt; || tel://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[Telnet]] || telnet:// || telnet://example.org/&lt;br /&gt;
|-&lt;br /&gt;
| [[Uniform resource name]] || urn: || urn:isbn:0451450523&lt;br /&gt;
|-&lt;br /&gt;
| [[XMPP]] || &amp;lt;nowiki&amp;gt;xmpp://&amp;lt;/nowiki&amp;gt; || xmpp://example.org/&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Hiding link icons ==&lt;br /&gt;
&amp;lt;!-- Negates off-site link alert and may potentially lead to abuse. --&amp;gt;&lt;br /&gt;
A link icon can be hidden with the {{code|plainlinks}} class or {{tl|Plainlink}}, but this is not advisable.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;http://example.org/test.pdf&amp;lt;/span&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom link icons ==&lt;br /&gt;
Custom icons can be added by editing [[Special:MyPage/skin.css]] (current skin only) or [[Special:MyPage/common.css]] (all skins). For example, to add an icon for Excel files:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
#content a[href$=&amp;quot;.xls&amp;quot;].external,&lt;br /&gt;
#content a[href$=&amp;quot;.XLS&amp;quot;].external,&lt;br /&gt;
#content a[href$=&amp;quot;.xlsx&amp;quot;].external,&lt;br /&gt;
#content a[href$=&amp;quot;.XLSX&amp;quot;].external {&lt;br /&gt;
    background: url(&amp;quot;http://upload.wikimedia.org/wikipedia/commons/b/ba/Page_white_excel.png&amp;quot;) center right no-repeat; padding-right: 18px;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When successfully updated, this link will show an Excel icon:&lt;br /&gt;
:http://example.org/test.xls&lt;br /&gt;
&lt;br /&gt;
The markup detects file extensions .xls or .xlsx with both upper and lower case. The image must be 16 pixels wide. The image link must be from http://upload.wikimedia.org. 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.&lt;br /&gt;
&lt;br /&gt;
To remove a default icon, simply add the CSS with no URL. For example, to remove the padlock icon when viewing secure links:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
#content a[href ^=&amp;quot;https://&amp;quot;].external {&lt;br /&gt;
    background: center right no-repeat; &lt;br /&gt;
    padding-right: 18px;&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove all the default icons, use this CSS:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
#content a.external {&lt;br /&gt;
    background: none !important;&lt;br /&gt;
    padding: 0 !important;&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Bugs ==&lt;br /&gt;
* [[:bugzilla:20024|bug 20024]] - a destination-dependent icon should be shown for interwiki links&lt;br /&gt;
* [[:bugzilla:30682|bug 30682]] - Link icon inconsistencies when using protocol relative URLs&lt;br /&gt;
* [[:bugzilla:45891|bug 45891]] - External link icons should have alt text&lt;br /&gt;
* [[:bugzilla:54604|bug 54604]] - Large number of CSS rules for external links - (re-opened)&lt;br /&gt;
* &amp;lt;s&amp;gt;[[:bugzilla:61178]]&amp;lt;/s&amp;gt; - Remove yellow padlock icons on HTTPS links - (and discussion for Enwiki at [[MediaWiki talk:Vector.css#Padlock for secure links]])&lt;br /&gt;
* &amp;lt;s&amp;gt;[[:bugzilla:63521]]&amp;lt;/s&amp;gt; - Default external link icons should be a module&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{commonscat|External link icons}}&lt;br /&gt;
* [[Wikipedia:Manual of Style/Linking#Non-English-language sites]]&lt;br /&gt;
* [[Help:Link#External links]]&lt;br /&gt;
* [[Wikipedia:External links]]&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
{{notelist|refs=&lt;br /&gt;
{{efn|name=common.css|The default PDF icon is a generic document icon, but is changed to [[File:Icons-mini-file acrobat.gif]] through [[MediaWiki:Common.css|Common.css]].}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Wikipedia link help]]&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Izno</name></author>
	</entry>
</feed>