User:SPage (WMF)/ExternalLinks

An external link in Flow (example) appears as

<a title="" rel="mw:ExtLink" href="http://www.mullie.eu"
    data-parsoid="{&quot;stx&quot;:&quot;url&quot;,&quot;dsr&quot;:[34,54,0,0]}">
  Text

An external link here to href="http://www.mullie.eu is translated by Parser/Linker to...

<a title="" rel="nofollow" class="external free" href="http://www.mullie.eu" > Text

An external link in wikitext markup is translated by Parser/Linker to...

<a title="" rel="nofollow" class="external text" ...
  • No rel="nofollow" is {[bug|66289}}
  • Missing styling of external links is bug 56756

styling different kinds of URL links edit

Vector no longer gives these special icons universally, but other skins and wikis do. See w:Help:External_link_icons in monobook vs in vector for examples. (Enwiki's Vector still adds icons for pdf and https - I'm not sure where the override is.)

File types edit

PDF
http://partners.adobe.com/public/developer/en/xml/AdobeXMLFormsSamples.pdf
MP3
http://archive.org/download/testmp3testfile/mpthreetest.mp3
https
https://www.archive.org/

URL formats edit

ftp://example.com/this/that
mailto:jdoe@example.com

getLocalURL / getFullURL() edit

getLocalURL() produces /wiki/index.php. But you can't put this in a [ ] link, it doesn't work.

  • [/wiki/index.php/Special:UserLogin?returnto=Talk%3AMain_Page&returntoquery=debug%3D1%26x%3D log in]

getFullURL() produces //SERVERHOST/wiki/index.php, which does work in a [ ] link