DJBWiki:Tutorial (External links): Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
(import from google cache)
m (Quick cleanup)
 
Line 1: Line 1:
<table style="background:transparent"><tr>
{{Help contents back}}
<td> [[Help:Contents|<img alt="" src="/code/images/thumb/8/8e/1leftarrow.png/16px-1leftarrow.png" width="16" height="16" border="0">]]
{{Template:TabsTop}}
</td>
{{Template:Tab2|[[DJBWiki:Tutorial|Front&nbsp;page]]}}
<td> <big>[[Help:Contents]]</big>
{{Template:Tab2|[[DJBWiki:Tutorial (Editing)|Editing]]}}
</td>
{{Template:Tab2|[[DJBWiki:Tutorial (Formatting)|Formatting]]}}
</tr></table>
{{Template:Tab2|[[DJBWiki:Tutorial (Wiki links)|Wiki&nbsp;links]]}}
<table style="text-align:center; padding: 0" width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
{{Template:Tab1|[[DJBWiki:Tutorial (External links)|External&nbsp;links]]}}
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial|Front page]]</div>
{{Template:Tab2|[[DJBWiki:Tutorial (Talk pages)|Talk&nbsp;pages]]}}
</td>
{{Template:Tab2|[[DJBWiki:Tutorial (Keep in mind)|Keep&nbsp;in&nbsp;mind]]}}
<td style="border-bottom:2px solid #236066" width="3"> 
{{Template:Tab2|[[DJBWiki:Tutorial (Registration)|Registration]]}}
</td>
{{Template:Tab2|[[DJBWiki:Tutorial (Wrap-up and more info)|Wrap-up]]}}
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Editing)|Editing]]</div>
{{Template:TabsBottom}}
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Formatting)|Formatting]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Wiki links)|Wiki links]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td style="padding:0; background-color: #236066; line-height:0.95em; font-weight:bold;" valign="top" width="20"> <span class="content-bg rtop" style="background: #000000"><span class="r1" style="background: #236066"></span><span class="r2" style="background: #236066"></span><span class="r3" style="background: #236066"></span><span class="r4" style="background: #236066"></span></span> <div style="padding: 0.5em">[[External links]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3">  
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Talk pages)|Talk pages]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Keep in mind)|Keep in mind]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Registration)|Registration]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Wrap-up and more info)|Wrap-up]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td style="border-bottom:2px solid #236066" width="3000">  
</td>
</tr></table>
<div style="border:2px solid #236066; padding:0.5em 1em 1em 1em; border-top:none; background-color:#000; color:#fff">
<div style="border:2px solid #236066; padding:0.5em 1em 1em 1em; border-top:none; background-color:#000; color:#fff">
Avoid using an external link when it's possible to accomplish the same thing with an internal link to a DJBWiki article.
Avoid using an external link when it's possible to accomplish the same thing with an internal link to a DJBWiki article.


The best type of link for most situations includes a description after the address. This description appears as the title of the link e.g. [http://www.starwars.com The official ''Star Wars'' site]. To create a link like this just type a link and the description, separated by a '''space''' and enclosed in single square brackets:
The best type of link for most situations includes a description after the address. This description appears as the title of the link e.g. [http://www.starwars.com The official ''Star Wars'' site]. To create a link like this just type a link and the description, separated by a '''space''' and enclosed in single square brackets:


<dl><dd>
<dl><dd>
<tt>[http://www.starwars.com Official ''Star Wars'' site]</tt>
<tt><nowiki>[http://www.starwars.com Official ''Star Wars'' site]</nowiki></tt>
</dd></dl>
</dl>
==  Other ways to link  ==
==  Other ways to link  ==
There are two other ways to create an external link.
There are two other ways to create an external link.


Enclosing the link in single square brackets without providing a description...
Enclosing the link in single square brackets without providing a description...


<dl><dd>
<dl><dd>
<tt>[http://www.google.com]</tt>
<tt><nowiki>[http://www.google.com]</nowiki></tt>
</dd></dl>...will display the link as a number in brackets, like this: [http://www.google.com [1]]. This format is mostly used for citing sources within an article. It looks like a footnote, so it's best to use it only as such (for example, following a direct quote or a statement which requires a source). Avoid this usage: "According to [http://members.lycos.nl/JoyceHoen/moon2000.htm [2]], the last full moon of the second millennium occurred on December 11, 1999." Do this instead: "The last full moon of the second millennium occurred on December 11, 1999. [http://members.lycos.nl/JoyceHoen/moon2000.htm [3]]"
</dl>...will display the link as a number in brackets, like this: [http://www.google.com]. This format is mostly used for citing sources within an article. It looks like a footnote, so it's best to use it only as such (for example, following a direct quote or a statement which requires a source). Avoid this usage: "According to [http://members.lycos.nl/JoyceHoen/moon2000.htm], the last full moon of the second millennium occurred on December 11, 1999." Do this instead: "The last full moon of the second millennium occurred on December 11, 1999. [http://members.lycos.nl/JoyceHoen/moon2000.htm]"


Finally, you may simply type in the full URL for the page you wish to link to:
Finally, you may simply type in the full URL for the page you wish to link to:


<dl><dd>
<dl><dd>
<tt>[http://www.starwars.com]</tt>
<tt>http://www.starwars.com</tt>
</dd></dl>The wiki will automatically treat this text as a link (as has been done with the URL above) and will display the raw web address, including the "http://" part. It is recommended that you don't use this format much, as raw URLs are ugly and often give no clue to what the site actually ''is''.
</dl>The wiki will automatically treat this text as a link (as has been done with the URL above) and will display the raw web address, including the "http://" part. It is recommended that you don't use this format much, as raw URLs are ugly and often give no clue to what the site actually ''is''.
 
 


==  Linking to Wookieepedia Articles  ==
==  Linking to Wookieepedia Articles  ==
It is possible to link [http://starwars.wikia.com Wookieepedia] articles without using a standard external link. All you need to do is prefix the link with "starwars:" and other wise treat it as a Wiki link, e.g. [[starwars:Ar'krai|Ar'krai]] results in...
It is possible to link [http://starwars.wikia.com Wookieepedia] articles without using a standard external link. All you need to do is prefix the link with "starwars:" and other wise treat it as a Wiki link, e.g. <nowiki>[[starwars:Ar'krai|Ar'krai]]</nowiki> results in...
 
<dl><dd>[[starwars:Ar'krai|Ar'krai]]
 
</dl>
<dl><dd>[http://starwars.wikia.com/wiki/Ar%27krai Ar'krai]
</dd></dl>
<div style="float:right; margin-top: 0.0em; margin-bottom:3px; background-color: #4d4e52; padding: .2em .6em; font-size: 130%; border:2px solid #236066;">'''Next:''' '''[[DJBWiki:Tutorial (Talk pages)|Let's learn about Talk pages]]''' <span style="font-size: larger; font-weight: bold;">→</span>
<div style="float:right; margin-top: 0.0em; margin-bottom:3px; background-color: #4d4e52; padding: .2em .6em; font-size: 130%; border:2px solid #236066;">'''Next:''' '''[[DJBWiki:Tutorial (Talk pages)|Let's learn about Talk pages]]''' <span style="font-size: larger; font-weight: bold;">→</span>
<div style="clear:both"></div>
<div style="clear:both"></div>

Latest revision as of 02:15, 30 May 2011

Help:Contents
                   

Avoid using an external link when it's possible to accomplish the same thing with an internal link to a DJBWiki article.

The best type of link for most situations includes a description after the address. This description appears as the title of the link e.g. The official Star Wars site. To create a link like this just type a link and the description, separated by a space and enclosed in single square brackets:

[http://www.starwars.com Official ''Star Wars'' site]

Other ways to link

There are two other ways to create an external link.

Enclosing the link in single square brackets without providing a description...

[http://www.google.com]
...will display the link as a number in brackets, like this: [1]. This format is mostly used for citing sources within an article. It looks like a footnote, so it's best to use it only as such (for example, following a direct quote or a statement which requires a source). Avoid this usage: "According to [2], the last full moon of the second millennium occurred on December 11, 1999." Do this instead: "The last full moon of the second millennium occurred on December 11, 1999. [3]"

Finally, you may simply type in the full URL for the page you wish to link to:

http://www.starwars.com
The wiki will automatically treat this text as a link (as has been done with the URL above) and will display the raw web address, including the "http://" part. It is recommended that you don't use this format much, as raw URLs are ugly and often give no clue to what the site actually is.

Linking to Wookieepedia Articles

It is possible to link Wookieepedia articles without using a standard external link. All you need to do is prefix the link with "starwars:" and other wise treat it as a Wiki link, e.g. [[starwars:Ar'krai|Ar'krai]] results in...

Ar'krai