DJBWiki:Tutorial (External links): Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
(import from google cache)
(import from google cache)
Line 47: Line 47:
<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>
Line 54: Line 56:
==  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>[http://www.google.com]</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]]"
</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]]"
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''.
</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''.




==  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. [[starwars:Ar'krai|Ar'krai]] results in...


<dl><dd>[http://starwars.wikia.com/wiki/Ar%27krai Ar'krai]
<dl><dd>[http://starwars.wikia.com/wiki/Ar%27krai Ar'krai]

Revision as of 06:36, 23 May 2011

<img alt="" src="/code/images/thumb/8/8e/1leftarrow.png/16px-1leftarrow.png" width="16" height="16" border="0"> 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:


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


[1]
...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:


[2]
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. Ar'krai results in...


Ar'krai