From Celeste Wiki
Jump to navigation Jump to search

<languages /> Template:PD Help Page <translate> Special:LinkSearch is one of the [[<tvar|help>Special:MyLanguage/Help:Special page</>|special pages]].</translate> <translate> You use it to search for external links (links to other web sites) in a wiki.</translate> <translate> It displays a list of external [[<tvar|link>Special:MyLanguage/Help:link</>|links]] that match the URL you specify, showing the source page and the exact target.</translate>

<translate> The listing is of all links in all namespaces.</translate> <translate> There is no way to show external links only in articles, which is often of greatest interest as evidenced by w:Wikipedia:External links.</translate> <translate> The MediaWiki software does offer the ability to search for links only in a specific namespace, but this functionality is disabled on Wikimedia projects, due to efficiency issues.</translate> <translate> If you run your own wiki and you have [[<tvar|MiserMode>Special:MyLanguage/Manual:$wgMiserMode</>|miser mode]] disabled the namespace functionality will be available.</translate>


Patterns[edit source]

The URL pattern can be:

For example: "http://*" (<tvar|1>Special:Linksearch/http://*</>) or "news:*" (<tvar|2>Special:Linksearch/news:*</>)</translate>


This returns all links that use the specified protocol.
  • a domain name beginning with a wildcard (preceded by an optional scheme)
For example: "*.org" (<tvar|1>Special:Linksearch/*.org</>) or "ftp://*" (<tvar|2>Special:Linksearch/ftp://*</>)</translate>


This returns all links pointing to the specified domain and it's subdomains.</translate> <translate> When no scheme is specified, http:// is used.</translate> <translate> Note that everything after the domain name is ignored in the pattern.</translate>


For example: "10.*" (<tvar|1>Special:Linksearch/10.*</>) or "ftp://193.206.*" (<tvar|2>Special:Linksearch/ftp://193.206.*</>)</translate>


The default scheme is again "http://".</translate> <translate> Everything after the ip address in the query pattern is ignored.</translate> <translate> Wildcards in IPv6 addresses are currently not supported.</translate>


  • a full url without wildcard
<translate> All links starting with the specified pattern will be returned.</translate>

<translate> Remarks:

  • 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 slash (/) that separates the host or domain part of a domain name from the rest of the URL.</translate> <translate> The domain name part is not case sensitive, meaning a search for <tvar|url1></> returns the same results as a search for <tvar|url2></>.</translate>
  • <translate> Linksearch does not find alternatively written URLs.</translate> <translate> Therefore, when creating an external link, for optimal use of Linksearch, use a canonical form for the URL.</translate> <translate> In particular, if after following a link the address bar shows a modified URL, change the URL in the link to that.</translate>


  • The list is [[<tvar|order>m:Help:Alphabetic order</>|alphabetic]] in the URL.</translate> <translate> Note that an underscore, unlike a blank space, is alphabetically positioned between "Z" and "a".</translate>


  • User credentials in the search pattern and the external links are ignored for http://, https://, ftp://, etc.</translate>


  • In the URL of the special page, the target search pattern has to be URL encoded.

Linksearch and sections[edit source]

</translate> <translate> For links in external link style, Linksearch provides backlinks of sections, which "Special:Whatlinkshere" does not for links in internal link style.</translate> <translate> For links in [[<tvar|interwiki>Special:MyLanguage/Help:Interwiki linking</>|interwiki link]] style there is no backlink feature at all.</translate>

<translate> On the other hand, links in internal link style provide existence detection.</translate> <translate> Also each of the three styles can have a different look, depending on CSS.</translate>

<translate> 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.</translate> <translate> This is done by adding <tvar|code><span style="display:none">http://...</span></>; this can conveniently be done with a template, see below.</translate> <translate> 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.</translate>

<translate> 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.</translate> <translate> Otherwise, when searching for links to e.g. "1", we also get links to "10", etc.</translate> <translate> This is e.g. applied in w:Portal:Current events/DateHeader2.</translate> <translate> 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".</translate>

<translate> 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 Big endian forms, starting with the year), with leading zeros (see also [[<tvar|date>m:Help:Date formatting and linking</>|Link to date content other than required for autoformatting]]).</translate> <translate> This applies also for page names, but since these are highly visible, as opposed to anchors, other considerations play a role too.</translate> <translate> 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.</translate> <translate> 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.</translate>

<translate> 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.</translate> <translate> This does not apply when other anchors are used.</translate>


Links in external link style to the same wiki[edit source]

For new links to the same wiki the feature has been abolished in 2009, see <tvar|1>Template:Rev</>.

Consider this link: </translate>

<translate> Try whether it is found:

Email links[edit source]

</translate> <translate> If you want to find all mailto: links to a specific mail host, you can omit the user part and @ sign.</translate> <translate> For example <tvar|1>Special:LinkSearch/</>.</translate>


See also[edit source]