Jump to content

Help:Self link

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 24.111.140.218 (talk) at 05:22, 24 September 2017 (Indirect self links: Fixed indirect self link). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A self link is a link to the page on which the link appears. A self-link to a page appears as bold text when the article is viewed ("self-link feature"). Examples:

A self-link to a section does not appear as bold text. Examples:

Self links are usually not recommended, except for:

A link to a section of the same article, even from the same section, does not cause bold text and works as a normal link: Help:Self link#Self-link to a section. Such links should usually be written without the page name: #Self-link to a section, because this method does not cause the page to reload (if the reader initially arrived at the page via a redirect) and is thus more efficient. A useful application is links from article leads or overview sections to detail sections buried deeper in the same article. An automatically generated table of contents has links to sections on the page.

An indirect self link is a link to a page that redirects back. In this case, the self-link feature does not work, even though the feature would be equally useful. This is demonstrated here:

When the prefix for the project itself is added (interwiki link style, but again linking to the page itself) the self-link feature does work. This is demonstrated here:

A self link for use with the "Related changes" feature only works if the link is to an existing or non-existing section. If it cannot be made useful as a link to a section, use a piped link with a blank space as label, e.g. [[Wikipedia:Self link#x| ]], showing up as " ".

See also