IUT 2009 MediaWiki Workshop/Activities/New Pages and Links/Internal links

Links to pages within the wiki are called internal links or wiki links and can be created as follows:

=Using the Wiki Syntax=

To create a link to a page, surround the word you wish to use as your link in double square brackets like this:

New Page

This will create a link when your content is saved (or previewed) like this:

New Page

=Editing Toolbar method=

Highlight the word or set of words you would like to be the name of your new page and click on the Internal Link button in the GUI toolbar.



When you preview or save your content, you will see that the text you have now linked has changed colour. If this link points towards a page that does not yet exist in the wiki, the link will be red. If the page already exists the link will be blue. The wiki software automatically checks all links to see whether they already exist in the wiki or not.

Creating a link to a page that does not yet exist is the first step to creating a new page. 

= Piped Links =

There will often be times when you want the displayed text of a link to be different than the actual name of the page you are linking to. You may, for example, want to create a link that displays to the user as "Next Page" but the page itself will be called "ProjectPage2" or "ProjectPage3". If you want the displayed text of the link to have a different title than the actual page name you can do so by adding the pipe "|" divider (SHIFT + BACKSLASH on English-layout and other keyboards).



The pipe "|" is then followed by the alternative name. For example:

display text

Using this type of syntax you can create a link to say the eXe Manual with a different link text like this:

The eXe User Manual

which will appear like this:

The eXe User Manual