Help:What links here

In the toolbox of every page there is link labeled "What links here" (or, more generally, labeled with the text in mediawiki:whatlinkshere), also called backlink.

Oversigt
DenHvad henviser her facilitet lister de sider på samme sted som link til en given side, enten siderne i alle navnerum, eller i en bestemt sig. For at se denne information, skal du vælgehvad links herlink, mens du kigger på en side. De sider, der linker til og / eller indkapslet i given side er opført. Listen er sorteret efter side id, dvs efter dato for oprettelse af siden.

Denne info stammer fra pagelinks bordet og  templatelinks bordet. De sider der inkluderer de given side er markeret med indholdet af MediaWiki: Istemplate ("Transklusion" eller "integration"); for disse sider er det ikke vist, om de ogsålinktil given side. Dette kan ses med Query.

Listen over links til en artikel er nyttig i en række forskellige måder:


 * Det giver en meget grov indikation af hvor populær en side er. Sider med mange links sandsynligvis ses ofte og bør derfor være af den allerhøjeste kvalitet. Sider med få eller ingen links må ikke være meget populære.
 * Når genstanden materiale af en artikel er uklart, listen over artikler der linker til det kunne give nyttige sammenhæng. For eksempel når præsenteret med en påbegyndt omkringJohn Smith, der giver kun hans fødselsdato og død, se listen over links til artiklen kan afsløre, at han vandt en guld medalje i de olympiske lege.
 * Letter korrekt flertydig.

Denne facilitet virker også til en side, der ikke eksisterer (der kan være et link til den, hvilket gør det ekstra nyttigt at oprette den). DenHvad henviser herknap er også på rediger side, hvor man frem, når du følger en brudt link. Således for eksempel hvis filmen artikler er knyttet til de aktører, kan man finde den film en skuespiller har spillet i, selv om der ikke er nogen artikel om skuespilleren.

At påberåbe sig enhvad links herliste direkte, så brug f.eks w: Special: Whatlinkshere / John Smith  resulterer i w: Special: Whatlinkshere / John_Smith.

Limitations and workarounds
Not listed are:
 * subpages that just have an automatic link to a page
 * links in edit summaries

In the case of links to sections or other anchors, the precise target is not shown. Also, "What links here" cannot list the backlinks of a specific section/anchor only. These features are provided by Linksearch after adding a "hidden external link". Alternatives:

If this is desired, the section can be split off. The content can still be shown on the original page, by transcluding the new page. Alternatively, or in preparaton of 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, 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 http://en.wikipedia.org/w/api.php?action=query&list=backlinks&bltitle=Wikipedia:Be%20bold&blfilterredir=redirects&bllimit=500 or http://tools.wikimedia.de/~tangotango/whatredirectshere.php?lang=nl&title=Wikipedia%3ABe+bold&subdom=en&domain=.wikipedia.org

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:
 * Template:H:f calls Template:h:f . Considered by itself that is Template:H:f Template Related chages of Template:H:f, What links to Template:H:f Template
 * This page Help:What links here links through Template:H:f to Template:H:f Help 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.

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

Bruger stilarter
Den side kroppen har selector body.page-Special_Whatlinkshere, så vi kan f.eks bruge CSS body.page-Special_Whatlinkshere ul (list-style: decimal) at nummerere backlinks.

Order; query
"Hvad links her" sorterer side id, dvs efter dato for oprettelse af siden.

Sammenligning med Query  og  Query :

Sammenlign Speciel: Whatlinkshere / Skabelon: T med http://meta.wikimedia.org/w/query.php?what=backlinks|embeddedin&titles=template:t&bllimit=500&eilimit=500&blfilter=all&eifilter=all

Forskelle påvist:
 * Query sorterer funktion første (backlinks og inklusioner), derefter ved side id, "hvad links her" sorterer side id.
 * Query skelner mellem B er kun medtaget i A og B også kædes sammen fra A.
 * Query ikke angiver, hvilke backlinks omdirigeringer, og omfatter ikkederesbacklinks.
 * Query giver side ids.

En anden forskel:
 * Query giver begrænsning til en bestemt namespace.

((# DPL: linksto =sidenavn)) ved at bruge Udvidelse: DynamicPageList, producerer backlinks sorteret i alfabetisk rækkefølge. Andre sortering valgmuligheder er også tilgængelige.

In-side liste over backlinks
Med udvidelsen Semantisk MediaWiki (SMW) links er kategoriseret ved at specificere forbindelser. For en given relation backlinkene af en side kan produceres in-side. En række forespørgsler, én for hver relation (som synes besværlig, men kan puttes i en skabelon som ), giver en side liste over backlinks sorteret efter relation. Desuden sender links og attributter af den deraf følgende sider kan også ydes, og også backlinks af backlinks.

En enklere udvidelse, der kan integrere backlinks (uden alle de semantiske web ting) er Dynamic Page List.

Se Hjælp: Embed side til kun indlejre Special: Whatlinkshere resultater.

Finde eksterne links til en side
For en given kilde wiki vi kan finde eksterne links til alle webadresser med Special: Linksearch (hvis installeret). Således i særdeleshed kan vi finde f.eks sider på den engelske Wikipedia har et eksternt link til denne side, eller sågar en gammel version, en redigere eller historie side, osv. (forudsat at parameter "titel" kommer først): [http://en.wikipedia.org/ w / index.php? title = Special% 3ALinksearch & target = meta.wikimedia.org% 2Fwiki% 2FHelp% 3AWhat_links_here] [Http://en.wikipedia.org/w/index.php?title=Special% 3ALinksearch & target = meta.wikimedia.org / w / index.php? Title = Hjælp: What_links_here].

Der er ikke sådan funktion til interwiki links. Dette kan være en grund til at foretrække eksternt link stil.

Se også
((H: f | enname = Hvad links her))
 * Kategorier - Sammenligning med "Hvad links her?"
 * Speciel: Mostlinked - viser antallet af links
 * Speciel: Mostlinkedtemplates - viser antallet af sider, hvor hver skabelon er transcluded, ikke tælle transclusions gennem omdirigeringer
 * Mw: API: Query - Lister