|MediaWiki Handbook: Contents, Readers, Editors, Moderators, System admins +/-|
Using the externallinks table it provides a list of links in external link style from the site on which it is applied, to a given URL pattern. For each link the source page is provided, and the exact target, both linked. The listing shown is all links in all namespaces, thus there is no way to show only external links in only articles, which is often of greatest interest as evidenced by w:Wikipedia:External links. Note that external links of the form ftp: gopher:, telnet: etc. are not reported.
The URL pattern can be:
- a whole top-level domain, e.g. "*.nl": Special:Linksearch/*.nl
- a second-level domain, e.g. "*.wikimedia.org": Special:Linksearch/*.wikimedia.org; also a third-level domain etc.
- a full domain name, e.g. "www.wikimedia.org": Special:Linksearch/www.wikimedia.org
- a full domain name and any first part of the rest of the URL, e.g.:
- "en.wikipedia.org/wiki/a": Special:Linksearch/en.wikipedia.org/wiki/a
- "en.wikipedia.org/wiki/March_2007": Special:Linksearch/en.wikipedia.org/wiki/March 2007 (the underscore is required, even in the input box)
- "en.wikipedia.org/wiki/March_2007#2007_March_05": //meta.wikimedia.org/w/index.php?title=Special:Linksearch&target=en.wikipedia.org/wiki/March_2007%232007_March_05 (the hash character is required in the input box, and %23 in the URL of the special page)
The default URI scheme is "http://"; to find links of the scheme "https://" it needs to be specified explicitly.
In the URL of the special page where the search string contains an anchor, or the first part of an anchor name, the hash character # has to be coded as "%23" and the required style is
In each of the styles
the anchor is ignored. ("w" and "wiki" can be different on other than Wikimedia wikis.)
- Even if multiple URLs lead to the same target, with regard to capitalisation, multiple underscores, and using "index.php" or not, Linksearch is case-sensitive after the first slash (/) and also does not find alternatively written URLs. Therefore, when creating an external link, for optimal use of Linksearch, use a canonical form for the URL. In particular, if after following a link the address bar shows a modified URL, change the URL in the link to that.
- The list is alphabetic in the URL. Note that an underscore, unlike a blank space, is alphabetically positioned between "Z" and "a".
For links in external link style, Linksearch provides backlinks of sections, which "Special:Whatlinkshere" does not for links in internal link style. For links in interwiki link style there is no backlink feature at all.
On the other hand, links in internal link style provide existence detection. Also each of the three styles can have a different look, depending on CSS.
Therefore it is useful to combine the advantages of various link styles adding "hidden external links" to internal section links and to all interwiki links, except those for which the interlanguage link feature applies. This is done by adding <span style="display:none">http://...</span>; this can conveniently be done with a template, see below. Although no actual link is added (which would be superfluous because we have already an internal or interwiki link), it is recorded as external link, and therefore Linksearch can find it.
Since Linksearch allows specifying the first part of an anchor, it is useful, if anchor names are numerical or have a numerical end, to use leading zeros. Otherwise, when searching for links to e.g. "1", we also get links to "10", etc. This is e.g. applied in w:Portal:Current events/DateHeader2. More generally, if there are anchors "a" and "ab", it may or may not be desired that a search for links to "a" also gives links to "ab"; if not, use an anchor "_a".
Also, if anchor names have multiple components, it is useful to put the most significant component first, e.g. if anchors indicate months or dates, we could have the format YYYY-MM, or YYYY-MM-DD, or in a year page MM-DD (see also w:Calendar date#Big endian forms, starting with the year), with leading zeros (see also Help:Date formatting and linking#Link to date content other than required for autoformatting). This applies also for page names, but since these are highly visible, as opposed to anchors, other considerations play a role too. In the case of sections, if for link targets another naming scheme is desired than for display of section headers, anchorscan be put explicitly instead of using section names. This is applied in w:Portal:Current events/DateHeader2, where the use in links of the names of explicitly put anchors is enforced by using pseudo sections, with displayed headers that cannot be used as anchors.
In the case of multiple sections with the same name, the HTML produced has a HTML ID that is the section name, with, from the second occurrence, "_2", "_3", etc. appended. This does not apply when other anchors are used.
For new links to the same wiki the feature has been abolished (the link table is no longer updated), see mw:Special:Code/MediaWiki/53104.
Consider this link:
Try whether it is found:
- http://meta.wikimedia.org/w/index.php?title=Special:LinkSearch&target=meta.wikimedia.org/wiki/9 gives a page with an old link, not this page with the same link.
There seems to be a problem with a colon in the search pattern: it does not give any result, even though link targets with a colon are listed if the search pattern stops before the colon; if %3A is used as code for the colon, this code and the text after it are ignored. Compare , , .
See also 
- mw:Manual:Externallinks table
- Template:H:ml templates
- Help:Section#Section linking.
Links to other help pages 
- Help contents
- Meta · Wikinews · Wikipedia · Wikiquote · Wiktionary · Commons: · mw: · b: · s: · mw:Manual · Google
- Versions of this help page (for other languages see below)
- Meta · Wikinews · Wikipedia · Wikiquote · Wiktionary
- What links here on Meta
- Go · Search · Stop words · Namespace · Page name · Section · Backlinks · Redirect · Category · Image page · Special pages · Printable version
- Tracking changes
- Recent changes (enhanced) | Related changes · Watching pages · Diff · Page history · Edit summary · User contributions · Minor edit · Patrolled edit
- Starting a new page · Advanced editing · Editing FAQ · Edit toolbar · Export · Import · Shortcuts · Edit conflict · Page size
- Style and formatting
- Wikitext examples · CSS · Reference card · HTML in wikitext · Formula · List · Table · Sorting · Colors · Images and file uploads
- Advanced functioning
- Expansion · Template · Advanced templates · Parser function · Parameter default · Variable · System message · Substitution · Array · Calculation · Embed page
- Special characters · Renaming (moving) a page · Talk page · Sandbox · Legal issues for editors