Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Battlestar Wiki:Tutorial (internal links): Difference between revisions

From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide
More languages
Steelviper (talk | contribs)
changed examples
LIMAFOX76 (talk | contribs)
m add FR link
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Project|Tutorial|image=BSG WIKI Tutorial.png|shortcut=BW:T<br/>BW:TUT}}
{{tutorial}}
{{tutorial}}
'''Links''' are important in Wikipedia articles.


==Internal links==
__NOTOC__
One of the things that makes Wikipedia useful (and addictive) is extensive cross-listing by [[Wikipedia:internal links|internal links]]. These easily-created links allow users to access information related to the article they're reading.
 
'''Links''' are important in ''Battlestar Wiki'' articles.
 
== Internal links ==
One of the things that makes Mediawiki useful (and addictive) is extensive cross-listing by [[Wikipedia:Wikipedia:internal links|internal links]]. These easily-created links allow users to access information related to the article they're reading.


===When to link===
=== When to link ===
The easiest way to learn when to link is to look at Wikipedia 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?"
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?"


===How to link===
=== How to link ===
When you want to make a link to another Wikipedia page (called a <em>wiki link</em>) you have to put it in double square brackets, like this:
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:
:<tt><nowiki>[[Sandbox]]</nowiki></tt>
:<tt><nowiki>[[Karl Agathon]]</nowiki></tt>


For example, if you want to make a link to, say, the ''Wikipedia:Contributing to Wikipedia'' page, it would be:
For example, if you want to make a link to, say, the ''Battlestar Wiki:Sandbox'' page, it would be:
:<tt><nowiki>[[Wikipedia:Contributing to Wikipedia]]</nowiki></tt>
:<tt><nowiki>[[Battlestar Wiki:Sandbox]]</nowiki></tt>
(The 'Wikipedia:' part signifies that the target page is in the Wikipedia [[Wikipedia:namespace|namespace]], rather than the Main namespace, where normal articles go.)


Also remember that in wikipedia the links are created automatically,
(The 'Battlestar Wiki:' part signifies that the target page is in the ''Battlestar Wiki'' [[Wikipedia:Wikipedia:namespace|namespace]], rather than the main namespace, where normal articles go.)
so if you put double square brackets around a word, it becomes a link, and because of that you have to be careful about [[Wikipedia:Disambiguation|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).
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 [[Wikipedia:Wikipedia:Disambiguation|disambiguation]].


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:
==== Piped links ====
:<tt>To view the article, <nowiki>[[Battlestar Wiki:Tutorial_(Wikipedia_links)/sandbox|my text]]</nowiki>...</tt>
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:
:<tt>To view the article, <nowiki>[[Battlestar Wiki:Sandbox|my text]]</nowiki>...</tt>


It would appear as:
It would appear as:
:To view the article, [[/sandbox|my text]]...
:To view the article, [[Battlestar Wiki:Sandbox|my text]]...
...but would link to the sandbox.


but would link to the sandbox.
==== Pipe trick ====
The pipe trick is a handy shortcut for when you want to link e.g. "Viper" to [[Viper (RDM)]]. Normally, you'd need:
:<tt><nowiki>[[Viper (RDM)|Viper]]</nowiki></tt>
But in this special case, you can also use:
:<tt><nowiki>[[Viper (RDM)|]]</nowiki></tt>


===Alternate endings===
=== Alternate endings ===
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.
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:
For example, you would write:
 
:<tt>Colonial craft such as <nowiki>[[Raptor]]s</nowiki>....</tt>
:<tt>Colonial craft such as <nowiki>[[raptor]]s</nowiki>....</tt>
:<tt>Various <nowiki>[[Centurion]]s</nowiki>...</tt>
:<tt>Various <nowiki>[[centurion]]s</nowiki>...</tt>


It would appear as:
It would appear as:
:Colonial craft such as [[Raptor]]s....
:Various [[Centurion]]s...


:Colonial craft such as [[raptor]]s....
== Categories ==
:Various [[centurion]]s...
 
==Linking dates==
Linking dates may not seem useful; however, please do link dates since it enables the use of a user preference in how dates are displayed. An unlinked date, like July 13, 2004, will always be displayed in that manner. If you link the date:
:<tt><nowiki>[[July 13]], [[2004]]</nowiki></tt>
Wikipedia will display it in one of the following ways:
:July 13, 2004
:13 July 2004
:2004 July 13
:2004-07-13
-according to the preference set by the individual user. (This feature is only available to logged-in users. It only works if the date is linked.)
 
==Categories==
You can also put the article in a category with others in a related topic. Just type <nowiki>[[Category:]]</nowiki>, and put the name of the category between the colon and the brackets. For more information, refer to the [[Wikipedia:Wikipedia:Categories|Categories]] page.
You can also put the article in a category with others in a related topic. Just type <nowiki>[[Category:]]</nowiki>, and put the name of the category between the colon and the brackets. For more information, refer to the [[Wikipedia:Wikipedia:Categories|Categories]] page.


==Experiment==
== Linking to categories, images and pages in other languages ==
Try it!  Here's the [[/sandbox/]] for this page.
If you want to link to [[:Category:A to Z]], you can't use:
:<tt><nowiki>[[Category:A to Z]]</nowiki></tt>
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:
:<tt><nowiki>[[:Category:A to Z]]</nowiki></tt>
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]]).


[[Battlestar Wiki:Tutorial (Related site links)|Continue]] with the tutorial.
{{start box}}
{{next box|before=[[Battlestar Wiki:Tutorial (Formatting)|Formatting]]|title=Internal links|after=[[Battlestar Wiki:Tutorial (Related site links)|Related site links]]}}
{{end box}}


[[Category:Wikipedia tutorial|*3]]
[[fr:Battlestar Wiki:Tutoriel (Liens internes)]]

Latest revision as of 13:30, 5 November 2009

This page is one of Battlestar Wiki's many projects.
This page serves to coordinate discussion on a particular aspect of this Wiki. The formal recommendations of a project may be treated as policies.
Shortcut:
BW:T
BW:TUT


Battlestar Wiki Tutorial
Tutorial chapters...
  1. Front page
  2. Editing
  3. Formatting
  4. Internal links
  5. Related site links
  6. External links
  7. Talk pages
  8. Citing
  9. Images
  10. Keep in mind
  11. Registration
  12. Namespaces
  13. Wrap-up
See also...
Help page
Goto Sandbox



Links are important in Battlestar Wiki articles.

Internal links

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.

When to link

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?"

How to link

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.

Piped links

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.

Pipe trick

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)|]]

Alternate endings

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:

Colonial craft such as Raptors....
Various Centurions...

Categories

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).


Previous:
Formatting
Internal links Next:
Related site links