How to link to another page
From UN Coherence Country Wiki
Categories
In the wiki, there are two different types of pages:
- internal pages
- external pages
Internal pages are other pages in this wiki, whereas external pages are ones that are not. An example of an internal page is help page or the main page. An example of an external page is naomba's webpage.
The method of linking to an internal page is different from that of linking to an external page.
Basic Linking
So, if you know that the page you want to link to is on this wiki (say it is called pagename), then you can write:
[[pagename]]
to link to the page called pagename. This code results in the following:
pagename
If you would like to link to a page that is outside of the wiki (say it is called www.naomba.com), then you can write:
[http://www.naomba.com]
to link to the page www.naomba.com. Notice that you must make sure to include the full URL path, including the "http://" prefix. This code results in the following:
[1]
Advanced Linking
The above examples show you the simplest form of linking to internal and external pages. By default the link text is the name of the page for internal links and a number in brackets for external links. This can be useful, but it is not always the desired result. In order to make a link to an internal page with a different link text you write:
[[pagename|go here!]]
You simply need to add a '|' character (commonly called a "pipe") after the name of the page you want to link to and then add your link text. The above example results in the following:
go here!
External links are a bit different. To link to an external page with different link text you write:
[http://www.naomba.com Naomba's website]
Here you only add a space character and then the link text. The above example results in the following:
Naomba's website
Now you have complete knowledge of linking to both internal and external pages. Have fun and don't forget to include links in your wiki pages!
Edit Toolbar
There are buttons on the editing toolbar that are there to help you with linking to pages. By clicking on them, you can insert the default text that is needed to link to internal or external pages. You can use the buttons and then edit the text that is automatically inserted to link to any page that you wish. Have fun!
