Help:Links/ja

MediaWiki には5種類のリンクがあります：


 * 1) ウィキ内の他のページへの内部リンク
 * 2) 他のウェブサイトへの外部リンク
 * 3) ウィキの内部ページへの外部リンク
 * 4) ウィキに事前に登録済みの他のウェブサイトへのウィキ間リンク
 * 5) ウィキの他言語版として登録済みの他のウェブサイトへの言語間リンク

内部リンク
内部リンクを追加する場合は、二重角括弧 ( と  ) でリンクしたいページの名前を囲んでください. 編集したページを保存すると、指定したページへの新しいリンクが表示されます. 対象のページが既に存在する場合はリンクは青色で表示され、存在しない場合は、リンクは赤色で表示されます. 同一ページへのリンクはURLには変換されず、太字で表示されます. (同一ページにリンクしたい場合は、アンカー (下記参照) または 現在のページ (必ずページ上部へのリンクになります) を使用してください. )

The first letter of the target page is usually case-insensitive, unless configured otherwise by wiki admins, meaning links can be capitalized or not. The case of every subsequent letter must match exactly. Spaces in the page title may be represented as underscores (i.e., typing an underscore in a link will have the same effect as typing a space), but using underscores in links is not recommended since they will be visible in the page text (this can be prevented by using a pipe; again, examples are shown below).

外部リンク
To add an external link, enclose the URL followed by space and the name of the page you want to link to in single square brackets. When you save the page, you'll see the new link pointing to your page, with an arrow icon after it to show that it was coded with single bracket external link syntax, and thus may lead to another site.

内部ページへの外部リンク
To add a link to a page on the same wiki using URL query parameters, you may need to use external link syntax.

外部リンクのアイコン
Some MediaWiki installations are set up to use special icons to denote external links to specific file types or using specific protocols. None of these special icons are enabled here on MediaWiki.org, but we present them here for the sake of completeness.

自動リンクを回避する方法
When you put a URL on a wiki page, it will be automatically converted into an external link, like this:

https://mediawiki.org

To avoid that effect, put the URL between  tags, like this:

&lt;nowiki&gt;https://mediawiki.org&lt;/nowiki&gt;

To get this:

https://mediawiki.org

ウィキ間リンク
Interwiki links are links with the internal link markup to a website registered in advance. For example, you can link to the article http://en.wikipedia.org/wiki/Sunflower by typing, which will result in a link Sunflower. This works because by default MediaWiki configures  as an "interwiki prefix" that turns into http://en.wikipedia.org/wiki/ when used inside. (It may not work if the admin of your wiki has changed the setting.) Unlike internal links, interwiki links do not use page existence detection, so an interwiki link will appear blue even if the page does not exist on the remote wiki.

Similar to internal page links, you can create piped links, with alternate link label, e.g.  is the link big yellow flower and   is the link Sunflower.

Basically, interwiki links are abbreviations for commonly-used longer external links. A very similar link could be created as.

More details are at Manual:Interwiki and m:Help:Interwiki linking. Your wiki may have a Special:Interwiki page listing the interwiki prefixes it supports;. You can edit the Manual:Interwiki table on your site.

言語間リンク
If your wiki has other language versions, you may find “interlanguage links” in the sidebar, just below toolbox in a section titled “.”

Interlanguage links behave similarly to interwiki links (or category links), except that they appear as a list in the sidebar and not within the content of the page (or below it in the categories bar). To create an interlanguage link to the corresponding page in another language, type  anywhere in the page (preferably at the bottom, like category links); the language prefix is the prefix specified at your wiki for the other language version (typically the ISO 639-1 language code). The interlanguage link is unilateral, it does not point back from that page in the other language. For that purpose, an equivalent back-link needs to be placed there as well. It does not work like the "Edit links" in the languages section of Wikipedia-language versions. But it can be used across all name spaces, including 'User:' to point to ones other profiles in other languages.

If you want to make the interlanguage link appear at a specific place in the content of the page rather than in the sidebar, add a colon before the language prefix:
 * &rarr; en:Sunflower

When a link is both interwiki and interlanguage, the order is Sunflower.

For more information, see m:Help:Interlanguage link.

関連ページ

 * 画像のリンク