在每一页的工具箱有链接标记为“链入页面”(或者,更普遍的是,标记的文本在MediaWiki:Whatlinkshere,也被称为反向链接)。
链入页面的设备列表页面上相同的网站链接到一个特定的页面,或者页面的所有命名空间,或在指定的一。 看到这样的信息,而在任何页面选择链入页面联系。 列出和/或嵌入给定页的页面。 列表按页面ID排序,即页面创建日期。[1]
This info comes from the pagelinks table and the templatelinks table. The pages embedding the given page are marked with the content of MediaWiki:Istemplate ("transclusion" or "inclusion"); for these pages it is not shown whether they also link to the given page. 这可视作为m:Query#backlinks。
一篇文章的链接列表在很多方面是有用的:
For instance when presented with a stub about John Smith that gives only his date of birth and death, viewing the list of links to the article might reveal that he won a gold medal in the Olympics.
This facility works also for a page that does not exist (there may be links to it, which makes it extra useful to create it). The 链入页面 button is also on the edit page on which one arrives when following a broken link. Thus, for example, if film articles are linked to the actors, one can find the films an actor has played in even if there is no article about the actor.
To invoke a 链入页面 list directly, use e.g.
[[w:Special:Whatlinkshere/John Smith|w:Special:Whatlinkshere/John Smith]]
resulting in w:Special:Whatlinkshere/John_Smith.
Not listed are:
Also listed are:
In the case of links to sections or other anchors, the precise target is not shown. Also, "链入页面" cannot list the backlinks of a specific section/anchor only.[2] These features are provided by Linksearch after adding a "hidden external link".
替代:
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 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:Linking sections 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.
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
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.
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.
例子:
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.
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. {{abc{{CURRENTDOW}}}}, currently giving Template:Abc4, 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 {{#switch:{{CURRENTDOW}}|0={{abc0}}|1={{abc1}}|..}}, 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
本页正文使用body.mw-special-Whatlinkshere选择器。例如,您可以使用如下的CSS代码:
body.mw-special-Whatlinkshere ul { list-style: decimal }
来对返回链接使用有序列表样式。
"链入页面" sorts by page namespace then id,[1] 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
差异显示:
另一个区别:
{{#dpl:linksto = pagename}} 使用扩展:DynamicPageList3 ,按字母顺序排序产生的反向链接。 其他排序选项也可用。
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, 扩展:Semantic MediaWiki and 扩展:Cargo , 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.
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): [1] [2]
There is no such feature for interwiki links. This may be a reason to prefer external link style.