Help:What links here/ca

In the toolbox of every page there is a link labeled "" (or, more generally, labeled with the text in MediaWiki:Whatlinkshere), also called backlink.

Resum
La utilitat  mostra les pàgines del mateix lloc web que enllacen a una pàgina donada, ja siguin pàgines de tots els espais de noms, o les d'un espai concret. Per veure aquesta informació, feu clic a l'enllaç  en qualsevol pàgina. Es mostren les pàgines que enllacen i/o estan incloses a la pàgina donada. La llista està ordenada per identificador de la pàgina, és a dir, per la data de creació de la pàgina.

Aquesta informació prové de la taula i de la taula. Les pàgines que inclouen la pàgina donada estan marcaden amb el contingut de MediaWiki:Istemplate ("transclusió" o "inclusió"); per aquestes pàgines no es mostra si també enllacen a la pàgina donada. This can be seen with m:Query#backlinks.

La llista d'enllaços a un article pot ser útil per diferents motius:


 * Proporciona una indicació aproximada de com de popular és una pàgina. Les pàgines amb molts enllaços tenen probabilitats de visualitzar-se més sovint, i per tant haurien de tenir una alta qualitat. Les pàgines amb pocs enllaços, o amb cap, poden no ser gaire populars.
 * Allà on el material de l'article no sigui prou clar, la llista d'articles que hi enllacen poden proporcionar un context útil. Per exemple, si es visités un esborrany sobre "Jordi Exemple" que només proporciona les seves dates de naixement i defunció, si es visualitzen els enllaços a l'article es podria esbrinar que va guanyar una medalla d'or als Jocs Olímpics.
 * Facilita les desambiguacions.

Aquesta utilitat també funciona per a una pàgina que no existeix (pot haver-hi enllaços, la qual cosa pot voler dir que seria útil crear la pàgina). El botó  apareix també a la pàgina d'edició a la qual s'arriba quan es fa clic a un enllaç trencat. Així, per exemple, que s'enllacen articles sobre pel·lícules als actors, es poden trobar les pel·lícules a les quals l'actor ha participat, encara que no existeixi cap article sobre l'actor.

Per cridar directament la llista , useu p.ex.

w:Special:Whatlinkshere/John Smith

la qual cosa resulta en w:Special:Whatlinkshere/John_Smith.



Limitacions i alternatives
No es llisten:


 * subpàgines que només tenen un enllaç "automàtic" a una pàgina
 * enllaços que apareguin als resums d'edició

També es llisten:


 * pàgines on s'ha aplicat #ifexist a la pàgina donada (vegeu )

En el cas d'enllaços a seccions o altres àncores, no es mostra el punt concret a on s'enllaça. També, "" no pot llistar els enllaços cap enrere d'una secció o punt d'àncora específics. Aquestes característiques les proporciona Linksearch després d'afegir un "enllaç extern amagat".

Alternatives:

Si es desitja, aquesta secció es pot mostrar separada. The content can still be shown on the original page, by transcluding the new page. Alternatively, or in preparation for splitting off, instead of creating a link to a section one can create a link to a page redirecting to the section. The list of backlinks of the full page is now sorted by exact target, though not listing the names of the target sections but the names of the redirect pages. This also makes it easier to keep the links working when changing the name of a section: only the target of the redirect page has to changed, not the source pages of the links. Note that the redirect message is at the top of the whole page, so typically not visible at the target position. This may be an advantage (the disadvantage of the redirect message cluttering the target is minimal) or a disadvantage. To see the name of the page without scrolling up, note that the browser usually shows it in the window title at the very top, while the address bar shows the name of the redirect page with the name of the section on the target page. See also Help:Section linking and redirects (this link itself is also an example of what has been described).

Also note that if a page's links change due to a change in the template, the backlinks for that page are not updated immediately, but via the job queue.

Redirects
The backlinks feature shows which backlinks are redirects.

The backlinks of the redirect are also shown indented under the redirect, 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.

For listing just the redirects to e.g. w:Wikipedia:Be bold, use https://en.wikipedia.org/w/api.php?action=query&list=backlinks&bltitle=Wikipedia:Be%20bold&blfilterredir=redirects&bllimit=500 or https://tools.wmflabs.org/redirectviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=latest-20&sort=views&direction=1&view=list&page=Wikipedia:Be_bold

Cases of inclusion
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.


 * Inclusion is listed as such.
 * 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 B, which links to C.
 * If A calls B and there is a link in B to C within noinclude tags then B links to C, but A does not.
 * If A calls B and there is a link in B to C within includeonly tags then A links to C, but B does not.
 * If A calls B and B links to a page C 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 may e.g. not call a valid page name (because it calls one with a name with braces), so B does not link to any valid C, or a name depending on the default value of the parameter.

Thus a link from A to C may be due to the inclusion of 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.

If some pages link to C due to the inclusion of B, it is more convenient if B is in the list of backlinks of C. One can assure this by putting an appropriate example of usage of B on page B, inside noinclude tags (B includes B, but without recursion).

Otherwise a page like B, which causes pages which include B to link to C, can only be found by looking for pages which directly or indirectly are included in these backlink pages of C.

Examples:

Considered by itself that is Template:H:f Template Related changes of Template:H:f, What links to Template:H:f Template Related changes of Help:What links here, What links to Template:H:f Help This page is therefore a backlink of the latter, but Template:H:f is not listed.
 * Template:H:f calls Template:h:f.
 * This page Help:What links here links through Template:H:f to Template:H:f Help

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.

If a page is conditionally embedded through #if, #ifeq, #ifexist, #ifexpr, or #switch, it is counted as embedded, even if the condition is not fulfilled

If on page A the name of an embedded page is time-dependent, e.g., currently giving , the "" list of one of the possibly embedded pages shows page A: the current one, or, depending on caching issues, perhaps an older one.

Thus, although the same functionality is obtained with, these methods differ in whether the seven templates all count as embedded, or just one.

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 "" of that page

User styles
The page body has selector body.mw-special-Whatlinkshere, so we can e.g. use the CSS  to number the backlinks.

Order; query
"" sorts by page id, i.e., by date of creation of the page.

Comparison with m:Query#backlinks and m:Query#embeddedin:

Compare Special:Whatlinkshere/Template:T with https://meta.wikimedia.org/w/api.php?what=backlinks%7Cembeddedin&titles=template:t&bllimit=500&eilimit=500&blfilter=all&eifilter=all

Differences demonstrated:


 * Query sorts by function first (backlinks and inclusions), then by page id, "what links here" sorts by page id.
 * Query distinguishes between B being only included in A, and B also being linked from A.
 * Query does not indicate which backlinks are redirects, and does not include their backlinks.
 * Query provides page ids.

Another difference:


 * Query allows restriction to a specified namespace.

using, produces backlinks sorted in alphabetic order. Other sorting options are also available.

In-page list of backlinks
You can display all the links to a page directly within a page by embedding the page "Special:Whatlinkshere"; see.

This can also be done using any of the extensions.

Two extensions, and, can be used to make more detailed lists of incoming links, grouped by the specific relationship between the two pages, but only for relationships that are encoded via those extensions.

Finding external links to a page
For a given source wiki we can find the external links to any URL with Special:Linksearch (if installed). Thus, in particular, we can find e.g. pages on the English Wikipedia having an external link to this page or even to an old version, an edit or history page, etc. (provided that the parameter "title" comes first):  

There is no such feature for interwiki links. This may be a reason to prefer external link style.