Battlestar Wiki:Tutorial (internal links)
|Battlestar Wiki Tutorial|
Links are important in Battlestar Wiki articles.
One of the things that makes Mediawiki useful (and addictive) is extensive cross-listing by internal links. These easily-created links allow users to access information related to the article they're reading.
The easiest way to learn when to link is to look at Battlestar Wiki articles for examples. If you're trying to decide whether to make a link or not, ask yourself "If I were reading this article, would the link be useful to me?"
When you want to make a link to another Battlestar Wiki page (called a wiki link) you have to put it in double square brackets, like this:
- [[Karl Agathon]]
For example, if you want to make a link to, say, the Battlestar Wiki:Sandbox page, it would be:
- [[Battlestar Wiki:Sandbox]]
(The 'Battlestar Wiki:' part signifies that the target page is in the Battlestar Wiki namespace, rather than the main namespace, where normal articles go.)
Also remember that in Battlestar Wiki the links are created automatically, so if you put double square brackets around a word, it becomes a link, and because of that you have to be careful about disambiguation.
If you want to use words other than the article title as the text of the link, you can add an alternative name by adding after the pipe "|" divider (SHIFT + BACKSLASH on English-layout and other keyboards). For example, if you wanted to make a link to this page's sandbox, but wanted it to say "my text" you would write it as such:
- To view the article, [[Battlestar Wiki:Sandbox|my text]]...
It would appear as:
- To view the article, my text...
...but would link to the sandbox.
The pipe trick is a handy shortcut for when you want to link e.g. "Viper" to Viper (RDM). Normally, you'd need:
- [[Viper (RDM)|Viper]]
But in this special case, you can also use:
- [[Viper (RDM)|]]
When you want to use the plural of an article title (or add any other suffix) for your link, you can add the extra letters directly outside the double square brackets.
For example, you would write:
- Colonial craft such as [[Raptor]]s....
- Various [[Centurion]]s...
It would appear as:
You can also put the article in a category with others in a related topic. Just type [[Category:]], and put the name of the category between the colon and the brackets. For more information, refer to the Categories page.
Linking to categories, images and pages in other languages
If you want to link to Category:A to Z, you can't use:
- [[Category:A to Z]]
as that would add the page to the A to Z category rather than displaying a link. If you just want to link to the category page, use:
- [[:Category:A to Z]]
Adding a colon to the beginning is also necessary to link to images (without the colon, you'd include the image itself) and pages in other languages (like de:Hauptseite).