Help:VisualEditor/User guide/Links

"In computing, a hyperlink, or simply a link, is a reference to data that the reader can directly follow either by clicking, tapping, or hovering. A hyperlink points to a whole document or to a specific element within a document."Link is one of the most basic elements to be used on wikis. It links text to other page, website or resource.

Link types
There are few types of link available to use on MediaWiki.

Internal link
This hyperlink is the most basic type of link. It links to other page on the same wiki. You can insert this link by placing page's name inside double square brackets:. If you type two first characters (two opening square brackets) in VisualEditor, a small window will pop up in which you can search for the page you want to create a link to. You can also press "Link" option in the menu or hit  also in VisualEditor.

You can change the text content of the link by placing this content after page's name, with the "pipe" character as a separator:.

For advanced usage, read Help:Links.

External link
External links link to the outside of the wiki. To create this type of link, you have few options:
 * Specify URL of the link followed by link's content inside single square brackets:.
 * Specify URL just inside the content of the page:.
 * Many other options, Help:Links

Interwiki link
Sometimes also called interproject link, it's a link similar to the internal one, but leads to other wiki, for example from MediaWiki to Meta Wikimedia.

To create such a link, insert syntax similar to the internal's one, but prefixed with the interwiki:. Adding custom content is also possible by putting the content after "pipe" character.

List of interwiki prefixes can be found here.

Interlanguage link
This is a link that leads to page inside the current wiki (or other interwiki) but in other language.

To create an interlanguage link, type language code followed by colon followed by page's name inside double square brackets:.

If you want to link to any interwiki page in other language, right after the second square bracket type interwiki prefix followed by colon:.

Resource link types
There are few types of links that lead to specific resources, not pages nor external entities.

Category link
To create a link to certain category, type the category name prefixed by colon, Category keyword and colon inside double square brackets:. Adding custom content is also possible by putting the content after "pipe" character.

File link
To create a link to certain file, type the category name prefixed by colon, File keyword and colon inside double square brackets (just like in the category link):. Adding custom content is also possible by putting the content after "pipe" character.

Read more
To read more about advanced usage of following links, click here.