Help:Links/zh

在MediaWiki中有5种类型的链接：


 * 1) 内部链接 到本维基中其他页面
 * 2) 外部链接 到其他网站
 * 3) 外部链接到内部页面 （本维基）
 * 4) 跨维基链接 到其他 mediawiki 网站
 * 5) 跨语言链接 到其他语言版本的维基

内部链接
要想添加内部链接，请将您想要链接的页面的名字放入双层方括号中. 当您保存页面时，您将看到新的链接指向您想要的页面. 如果页面已经存在，它将显示为蓝色，如果不存在将显示为红色. 链接到自身将无法转化为URI但是会加粗显示. （如果您确实需要链接到当前页面，请使用锚点（见下文），或者使用 当前页面 将生成指向当前页面顶端的链接. ）

对于英文，目标面名字的第一个字母将自动大写，除非被超级用户设置为不大写，并且空格将被显示为下划线. （在链接中直接打出一条下划线将与打出一个空格有相似的效果，但是并不建议这么做，因为下划线将会在文章中显示出来. ）

外部链接
要想添加外部链接，将URI后空一格跟上你给该页取的名字然后全部放入单层方括号中. 当页面被保存，您将看到指向你想要的页面的新的链接，后面有一个箭头图标用来表示指向本站以外的其他网站.

外部链接到内部页面
To add a link to a page on the same wiki using URL query parameters, you may need to use external link syntax.

How to avoid auto-links
When you put a URL on a wiki page it will be automatically converted into an external link, like this:

http://mediawiki.org

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

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

To get this:

http://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 is because  is registered to your wiki by default with the prefix of. (This link may not work properly 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. See the default interwiki prefixes. To edit the Manual:Interwiki table on your site, see the Interwiki extension.

Interlanguage links
If your wiki has other language versions, you may find “interlanguage links” in the sidebar, just below toolbox in the box named “.”

Interlanguage links behave similarly to interwiki links, except that they are listed in the sidebar. To create an interlanguage link from a page, just type  wherever you like in the page; the language prefix is the prefix specified at your wiki for the other language version (typically the ISO 639-1 language code).

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

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

参见

 * Linked images