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

Editing Battlestar Wiki:Tutorial (internal links)

From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 14: Line 14:


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


For example, if you want to make a link to, say, the ''Battlestar Wiki:Sandbox'' 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>[[Battlestar Wiki:Sandbox]]</nowiki></tt>
:<tt><nowiki>[[Battlestar Wiki:Sandbox]]</nowiki></tt>


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


Also remember that in ''Battlestar Wiki'' the links are created automatically,  
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]].
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]].


==== 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:
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>
:<tt>To view the article, <nowiki>[[Battlestar Wiki:Sandbox|my text]]</nowiki>...</tt>
Line 32: Line 31:
:To view the article, [[Battlestar Wiki: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 ===
Line 52: Line 45:
== Categories ==
== 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.
== Linking to categories, images and pages in other languages ==
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]]).


{{start box}}
{{start box}}

To edit this page, please enter the words that appear below in the box (more info):

Refresh
Cancel Editing help (opens in new window)

  [] · [[]] · [[|]] · {{}} · · “” ‘’ «» ‹› „“ ‚‘ · ~ | ° &nbsp; · ± × ÷ ² ³ ½ · §
     [[Category:]] · [[:File:]] · [[Special:MyLanguage/]] · <code></code> · <nowiki></nowiki> <code><nowiki></nowiki></code> · <syntaxhighlight></syntaxhighlight> · <includeonly></includeonly> · <noinclude></noinclude> · #REDIRECT[[]] · <translate></translate> · <languages/> · {{#translation:}} · <tvar|></> · {{DEFAULTSORT:}} · <categorytree></categorytree> · <div style="clear:both;"></div> <s></s>


Your changes will be visible immediately.
  • For testing, please use the sandbox instead.
  • On talk pages, please sign your comment by typing four tildes (~~~~).