Links
From Primary Surgery
Contents |
Creating links to other pages
Basic linking
To create a link in its simplest form, simply enclose the name of the page in double square brackets.
The following code:
[[Main Page]]
Will create the following link:
Important note about underscores
MediaWiki does not differentiate between underscores "_" and spaces " " in page names.
Therefore, [[Main_Page]] and [[Main Page]] are exactly the same, and they can be used interchangeably.
Advanced linking
To link to a page using text other than the name of the page, enclose the name of the page in double square brackets and then add a vertical line followed by the text you want to be displayed to the page viewer.
The following code:
[[Main Page|Welcome to the CNIS Wiki!]]
Will create the following link:
Renaming the link is especially useful when used in the middle of a sentence, in order to maintain proper grammar.
For example if you wanted to link to the page titled Images in the middle of a sentence about a single image, you could use the following code.
The following code:
Any Wiki user can add an [[Images|image]] to this page.
Will create the following link
Any Wiki user can add an image to this page.
