Go to top

A wikilink (or internal link) is a link from a page to another page within this wiki (this last page is called the link target).

In wikitext, links are enclosed in doubled square brackets like this:

  • [[1234]] is seen as "1234" in text and links to page "1234".

Use a vertical bar "|" (the "pipe" symbol) to create a link while labelling it with a different name on the original page. The first term inside the brackets is the page you would be taken to (the link target), while anything you type after the vertical bar is what that link looks like on the original page (the link label). Here are some examples:

  • [[a|b]] is labelled "b" on this page but links to page "a". Example: b.
  • [[a]]b gives ab. So does [[a|ab]]: ab. The code [[a|b]]c gives bc, just as [[a|bc]] does. However, all four of these examples will link to page "a".
  • a[[b]] gives ab.
  • [[a]]:b gives a:b since the colon is outside the end brackets. The same goes for [[Washington]]'s or e-[[mail]].
  • [[a]]''b'' gives ab. (Double apostrophes turn on and off italics.)
  • ''[[a]]''b gives ab.
  • [[a|b]]cd gives bcd, and shows an example of link trailing.
  • [[a]]<nowiki />b gives ab. (The nowiki tag is needed to turn off the so-called "linktrail rules".)
  • [[a|b]]<nowiki />c gives bc.

Links with a specified label are said to be "piped" because the pipe symbol is used ("|"). For certain types of link, the label will be generated automatically if a pipe is typed, even with no label after it (meaning you don't have to type one).

The link target is case-sensitive except for the first character (so [[bruxism]] links to "Bruxism" but [[BRUxism]] does not).

If the target of a wikilink does not exist, it is displayed in red color and is called a "red link". Here is a red link example. If a red link is clicked, the user is taken to a blank page where it is possible to create a page (as long as you have the rights to create it) using that red linked title. While on that blank page, other red links to this (non-existent) title can be detected using the "What links here" feature.

If the target of a link is the same as the page on which it appears (a self-link), it is displayed in bold font, as with: Masticationpedia:Wikilink.