|
|
Linking (Help)
Related Content: Linking pages into a wiki article is perhaps one of the most significant features of a wiki. Links can be made to internal wiki pages, subsections of internal pages, external pages and more.
[edit] Internal Links
[edit] Linking to PagesThe internal link markup uses a opening and closing set of double square brackets, and takes two parameters. The first is the Page to link to, and the second is the optional Display Text of the link. The Pipe (|) character is used to separate the two parameters:
The Page Name parameter is the name of the page as it is shown in the blue heading bar of the page. You can use spaces in this markup, or you can replace them with underscores (as they appear in the page's URL) [edit] Linking to a Specific Page Heading (Anchor)
You can use an anchor to specify a particular heading of a page. The syntax uses the standard Page link with a #Heading Name after the Page Name:
To link to a heading in the same page that you are editing, you can omit the Page Name portion of the markup:
[edit] Creating Custom or Hidden AnchorsMost anchors are in the form of headers (== Heading Text ==), but you can also create your own anchors. Use the html <div> tag and supply an ID for the anchor:
To create a hidden anchor, use the the <div> tags with no text:
Alternatively, the Anchor template can be used to create anchors, either with text or hidden:
[edit] Linking to Pages in a different NamespaceOcassionally you may want to link to a page in a namespace besides the default (mainspace). To do this, include the Namespace with a colon separator before the Page Name. For example, the Help pages reside in the Help namespace:
[edit] Linking to a CategoryCategories are a special type of link. They use a similar syntax of double square braces, but have slightly different rules. Any Category has a Table of Contents which shows all pages that are that category. Using a standard internal link markup, you "link" to the category itself, effectively specifying that the Page which contains the link will be included in that category's Table of Contents:
In order to actually link to a Category's Table of Contents Page, the Category keyword must be preceeded by a colon:
A complete dissemination of Categories, along with various linking structures, can be found in the Categories help article. [edit] Linking to an Image or other MediaWhen an image or other type of media or file is uploaded to the wiki, it is given a reference name. By using a standard link and specifying Image or Media, you can display the image or media (or link to a non-rendering file):
For further instuctions on uploading and linking to an image, see the Images help article. For further information on the many possibilities when working with Image links and formatting, see the MediaWiki Images Help page. Note that there seems to be a bug when attempting to make the image link refer to a non-default location in this version of MediaWiki
[edit] External LinksExternal links are handle only slightly differently in wiki markup. Rather than using a double square bracket markup, you use a single square bracket markup, and rather than a Pipe (|) delimiter, you instead put a space after the URL (because no http URL contains a space) followed by the desired display text:
|
| This page was last modified 15:02, 12 January 2012. This page has been accessed 877 times. Disclaimers |