Help:What links here

This is a copy of the master help page at m:Help:What links here. Do not edit this page. Edits will be lost in the next update from the master page. Either edit the master help page for all projects at Meta, or edit the project-specific text at Template:Ph:What links here. You are welcome to copy the exact wikitext from the master page at Meta and paste it into this page at any time.


Navigating

  1. Searching, Go Button
  2. What links here
  3. Random page
  4. Special Pages
  5. Printable Version

Tracking Changes

  1. Recent Changes
  2. Enhanced recent Changes
  3. Related Changes
  4. Watching pages
  5. Page History
  6. Diff
  7. User Contributions

Accounts

  1. Logging in
  2. Preferences
  3. User Style

Every page has a link labelled "What links here" (or, more generally, labelled with the text in [1]), also called backlink.

The in-page forms are:

  • Special:Whatlinkshere/John Smith
  • {{SERVER}}{{localurl:Special:Whatlinkshere|target=John_Smith}}, on this project: //en.wikiquote.org/w/index.php?title=Special:Whatlinkshere&target=John_Smith

This facility provides a list of all pages in the same project which link to the specified page.

From MediaWiki 1.5 there seems to be no limit; there are parameters offset and limit, for which links are provided.

Before 1.5:

The maximum number to be shown can be specified:

//en.wikiquote.org/w/index.php?title=Special:Whatlinkshere/John_Smith&limit=999

The default for this limit is 500, a specified limit of more than 999 is reduced to 999.

Limitation edit

Not listed are subpages that just have an automatic link to a page.

Redirects edit

The backlinks feature shows which backlinks are redirects.

The backlinks of the redirect are also shown, and if they include a redirect, the backlinks of that also (not more).

This makes it a useful tool for finding double redirects, which do not work, and, except in special applications (see below) can better be replaced by redirects to the final target.

Whether there is a link from A to C is relevant for backlinks as well as Related changes. If C does not exist, only backlinks are applicable.

  • in the case of a template, referral to it is treated as link
  • a link from A to C counts as such even if the link is not explicit in the wikitext of A, but due to the inclusion of template B, which links to C
  • if template B calls a template that depends on a variable or parameter, then:
    • the question whether A links to C depends on the value of the variable on page A, or the parameter with which A calls B
    • the question whether B links to C depends on the value of the variable on page B; in the case of a parameter, considered from page B, the page does not call a valid template name (it calls one with a name with braces), so B does not link to any valid C

Thus a link from A to C may be due to the inclusion of template B, even when B, considered by itself, does not link to C. Thus, to find out what templates cause pages to link to C, it is not sufficient to check for templates in the backlinks of C; some templates can only be found by checking what templates are used in the backlink pages.

Examples:

  • Template:H:f calls Template:h:f {{NAMESPACE}}. Considered by itself that is the unused Template:H:f Template [2], [3]
  • This page Help:What links here links through Template:H:f to Template:H:f Help [4], [5]. This page is therefore a backlink of the latter, but Template:H:f is not listed.

Even without a template name depending on a variable or parameter, if page A links to page C due to the inclusion of template B1 which redirects to B2, which links to C, A is in the list of backlinks of C but B1 is not.

Summarizing, for the purpose of backlinks and Related changes, A links to C if there is, in that order, a chain of template calls, a single redirect, template calls, a single redirect, etc., template calls, and a chain of redirects.

In the case of an image, using it in a page is listed in the third section of the image description page, but not in "What links here" of that page

Other uses edit

The backlinks facility works also for a page that does not exist. The What links here button is also on the edit page on which one arrives when following a broken link.

The feature can also be applied to itself and other special pages, e.g. [6], [7], [8], [9].

Links could be put specially for use with "What links here", as an alternative category system, even to non-existing pages, e.g. Altcat:Help 1, see Special:Whatlinkshere/Altcat:Help 1. Putting the wikitext [[Altcat:Help 2| ]] does not provide a link and only produces a blank space (perhaps depending on the browser, here it produces " "), but for "What links here" it works as a link, see Special:Whatlinkshere/Altcat:Help 2. This could be useful for a special-purpose category that should not clutter the regular list of categories a page belongs to (for example, on w:en: there is the requirement that when viewing an article in a category, it is obvious why the article is in the category, and the requirement that the category subject is prominently discussed in the article).

Similarly an empty template can be used: {{:Altcat:Help 3}} displays as "Altcat:Help 3"; see Special:Whatlinkshere/Altcat:Help 3.

Also a link can be provided, alongside the pseudo-link, [[Altcat:Help 2| ]][[Special:Whatlinkshere/Altcat:Help 2|Help 2]] gives " Cat:Help 2", or in the template: {{:Altcat:Help 4}} gives "Altcat:Help 4".

Except in the case that the link is put in the template (it can also be put alongside the template tag), a redirect can specify a supercategory. As opposed to actual categories, the backlinks can show a tree structure: not only pages and subcategories, but also the contents of the subcategories (for each a list of pages and a list of sub-subcategories) and the contents of the sub-subcategories (for each a list of pages and a list of sub-sub-subcategories), but not the contents of the sub-sub-subcategories, up to three levels are shown; see Cat:Help and Cat:Municipalities of the Netherlands.

Order edit

When the link tables in the database are rebuilt, the lists are alphabetically ordered. However, adding a link subsequently causes it to be added to the end, and thus these occur in chronological order.

See also edit

Wikiquote-specific content edit

Links to other help pages edit

Help contents - all pages in the Help namespace: Meta b: c: n: w: q: wikisource wiktionary


Reading: Overview | Go | Search | URL | Namespace | Page name | Section | Link | Backlinks | Piped link | Interwiki link | Redirect | Variable | Category
Tracking changes: Recent | (enhanced) | Related | Watching pages | Page history | Diff | User contributions | Edit summary | Minor edit
Logging in and preferences: Logging in | Preferences | User style
Editing: Overview| New page | Images/files | Image description page | Special characters | Formula | Table | EasyTimeline | Template intro | Renaming (moving) a page | Automatic conversion of wikitext | Talk page | Testing | rlc
Projects: Meta (master page) | Wikibooks | Wikicommons | Wikinews | Wikipedia | Wikiquote | Wikisource | Wiktionary
For other languages see Meta.

External Links edit

 
commons
Wikimedia Commons has media related to: