Tips\linking
From WolfWikis
An very important part of the wiki system is the fact that new pages can be created and old ones linked to in a very easy way.
Contents |
Purpose
To integrate an facilitate accessibility of information on various pages
The square brackets
Linking is real easy but needs to be done with care because a lot of the retrievability of the information hinges on it. In general all you need to do to link to another WolfWiki page is to edit an existing pages an put some double square brackets around a word, like [[this for instance]].
This would generate a red link this for instance . Anyone that clicks on this red link and types a single character of code on the resulting edit page thus generates a new page with the name 'This for instance. Once this page is saved the link in the original page will turn blue.
We can even see that the original page is referring to the new one by using the What links here button on the left.
Note that the first character is not case sensitive and will automatically be capitalized, but the rest will not. This implies that this For instance will generate a different page.
Note also that a title like this for instance is a very bad page label to put anything under. It may have made sense on the original page, but independently it makes not sense at all. As the wiki system largely depends on sensible names of pages, such a page name is really not acceptable.
Using an alias
Often it is desirable to create a link to an existing page that has a slightly different title than the word used in the existing text. We can do that using a pipe symbol |. . For example [[this for instance|Johny]]. would generate a link Johny but anyone clicking on it would be abducted to the this for instance page.
Such abductions are really undesirable! Please avoid such improper links at all times. The alias really needs to be a logical synonym, for example [[George Walker Bush|president Bush]] would be acceptable.
Moving and redirecting
It is possible to make a page redirect to another one. E.g. we could make a page George W. Bush and send any reader automatically to the George Walker Bush page. You simply put
#REDIRECT [[George Walker Bush]]
in the first column of the George W. Bush page.
If you move a page by using the move tab above the edit page, this is essentially what happens. The contents of the page get pasted in the new page you specify and the old one becomes a redirect.
- Caution: make sure there are no double redirects, i.e. a page that redirects to a page that redirects to a third page. This does not work. Good practice is to first use the What links here button to see what other pages refer to the page you are about to move and do some repairs.
Links to paragraphs
A double bracket links to the top of the pertaining page. It is also possible to link to paragraphs within pages using the # sign. If a page contains headers ( like ===Types of work===) it is possible to jump straight to that paragraph with e.g [[CH 431/Lecture 4#Types of work]] resulting in this. The pound sign notation also works within one page, e.g. #Using an alias
Links to categories
A colon can be used to create a link to e.g. a category:
[[:category:courses]] creates a link to a category page: category:courses
See Tips\categories
Links to outside pages
A link to an outside URL is quite easy to make too, but again a little tender love and care is advised. If you visit an page you wish to create a link to just copy the URL on the navigation indicator of your browser and paste it on the Wolfwiki edit page. This time you need to use single square brackets and to create an alias you use a space instead of a pipe symbol.
Please do put in a desciptive alias e.g.
[http://www.cnn.com the main page of cnn]
would give: