Help:Linksearch/ja

Special:LinkSearch は、特別ページの 1 つです. これを使って特定のウィキ内にある外部リンク (他のウェブサイトへのりんく) を検索できます. URL を特定すると、それに合致する外部リンクを探し、リンク元と直接のターゲットのページをそれぞれ表示します.

リンク検出対象はすべての名前空間です. 記事内の外部リンクのみを表示する方法はないため、w:Wikipedia:外部リンクの選び方などのように大きな関心を集めています. MediaWiki ソフトウェアには実際、特定の名前空間に限定してリンクを検出する機能はあるものの、この機能はウィキメディアプロジェクトでは効率性を重んじるため、無効にされています. もし自分のウィキを所有していてmiser mode が無効に設定されている場合、名前空間機能を使える可能性があります.

パターン
指定する URL のパターンの形式です.


 * URIスキーマの後にワイルドカードを付ける


 * サンプル："http://*" (Special:Linksearch/http://*) もしくは "news:*" (Special:Linksearch/news:*)
 * 指定したプロトコルに該当するリンクすべてを返します.


 * ワイルドカードから始まるドメイン名 (接頭辞としてスキーマの追加可能)


 * サンプル："*.org" (Special:Linksearch/*.org) または "ftp://*.gov.ph" (Special:Linksearch/ftp://*.gov.ph)
 * 指定したドメインとそのサブドメインへのリンクをすべて返します. スキームが未指定の場合、http:// を使用.  Note that everything after the domain name is ignored in the pattern.


 * an IPv4 address ending with a wildcard


 * For example: "10.*" (Special:Linksearch/10.*) or "ftp://193.206.*" (Special:Linksearch/ftp://193.206.*)
 * The default scheme is again "http://". Everything after the ip address in the query pattern is ignored. Wildcards in IPv6 addresses are currently not supported.


 * a full url without wildcard


 * 例:
 * "google.com" (Special:Linksearch/google.com)
 * "http://google.com/pressrel/pressrelease1.html" (Special:Linksearch/http://google.com/pressrel/pressrelease1.html)
 * "http://google.com/search?q="
 * All links starting with the specified pattern will be returned.

Remarks:


 * Even if multiple URLs lead to the same target, with regard to capitalisation, multiple underscores, and using "index.php" or not, Linksearch is case-sensitive after the slash (/) that separates the host or domain part of a domain name from the rest of the URL. The domain name part is not case sensitive, meaning a search for  returns the same results as a search for.
 * Linksearch does not find alternatively written URLs. Therefore, when creating an external link, for optimal use of Linksearch, use a canonical form for the URL. In particular, if after following a link the address bar shows a modified URL, change the URL in the link to that.
 * The list is alphabetic in the URL. Note that an underscore, unlike a blank space, is alphabetically positioned between "Z" and "a".
 * User credentials in the search pattern and the external links are ignored for http://, https://, ftp://, etc.
 * In the URL of the special page, the target search pattern has to be URL encoded.

Linksearch と節
For links in external link style, Linksearch provides backlinks of sections, which "Special:Whatlinkshere" does not for links in internal link style. For links in interwiki link style there is no backlink feature at all.

On the other hand, links in internal link style provide existence detection. Also each of the three styles can have a different look, depending on CSS.

Therefore it is useful to combine the advantages of various link styles adding "hidden external links" to internal section links and to all interwiki links, except those for which the interlanguage link feature applies. This is done by adding http://... ; this can conveniently be done with a template, see below. Although no actual link is added (which would be superfluous because we have already an internal or interwiki link), it is recorded as external link, and therefore Linksearch can find it.

Since Linksearch allows specifying the first part of an anchor, it is useful, if anchor names are numerical or have a numerical end, to use leading zeros. Otherwise, when searching for links to e.g. "1", we also get links to "10", etc. This is e.g. applied in w:Portal:Current events/DateHeader2. More generally, if there are anchors "a" and "ab", it may or may not be desired that a search for links to "a" also gives links to "ab"; if not, use an anchor "_a".

Also, if anchor names have multiple components, it is useful to put the most significant component first, e.g. if anchors indicate months or dates, we could have the format YYYY-MM, or YYYY-MM-DD, or in a year page MM-DD (see also Big endian forms, starting with the year), with leading zeros (see also Link to date content other than required for autoformatting). This applies also for page names, but since these are highly visible, as opposed to anchors, other considerations play a role too. In the case of sections, if for link targets another naming scheme is desired than for display of section headers, anchorscan be put explicitly instead of using section names. This is applied in w:Portal:Current events/DateHeader2, where the use in links of the names of explicitly put anchors is enforced by using pseudo sections, with displayed headers that cannot be used as anchors.

In the case of multiple sections with the same name, the HTML produced has a HTML ID that is the section name, with, from the second occurrence, "_2", "_3", etc. appended. This does not apply when other anchors are used.

同一ウィキ内へのリンクを外部リンク式で示す
同一ウィキ内への新しい リンク機能は2009年に廃止されました. 詳細はSpecial:Code/MediaWiki/53104をご参照ください.

Consider this link:
 * http://meta.wikimedia.org/wiki/9/11_wiki_move_proposal

Try whether it is found:


 * http://meta.wikimedia.org/w/index.php?title=Special:LinkSearch&target=meta.wikimedia.org/wiki/9 gives a page with an old link, not this page with the same link.

メール リンク
もし特定のメールホストに向けた mailto: リンクをすべて探すには、利用者名と @ 印の部分を省略します. 例: Special:LinkSearch/mailto:gmail.com