2,075 bytes added
, 08:32, 16 May 2008
You cannot use HTML anchor tags to create hyperlinks, but you don't need to. In fact, just typing a URL will make it an active external link in the text. For example: http://www.cern.ch produces a link to CERN.
There are two general types of links, '''internal''' links to an article (page) in this wiki, or '''external''' links to some other web site.
== Internal Links ==
Internal links are links to an article or section in an article in the same wiki:
{| {{Prettytable}}
|-
|bgcolor="#A7C1F2"|'''Link type'''
|bgcolor="#A7C1F2"|'''You type:'''
|bgcolor="#A7C1F2"|'''You get:'''
|-
|Internal link
|<tt>...this leads to the need for a <nowiki>[[Cosmic Ray Detector]]</nowiki></tt>
| ...this leads to the need for a [[Cosmic Ray Detector]]
|-
|Internal link with alternate link text
|<tt> ...which leads to the need for a <nowiki>[[Cosmic Ray Detector|CRD]]</nowiki></tt>
| ...this leads to the need for a [[Cosmic Ray Detector|CRD]]
|-
|Link to section of an article
|<tt> ...as described in <nowiki>[[Help:Formatting#Code Examples|the "code examples" section of the "Formatting" help page]]</nowiki></tt>
| ...as described in [[Help:Formatting#Code Examples|the "code examples" section of the "Formatting" help page]]
|}
== External Links ==
External links are links to some other web site:
{| {{Prettytable}}
|-
|bgcolor="#A7C1F2"|'''Link type'''
|bgcolor="#A7C1F2"|'''You type:'''
|bgcolor="#A7C1F2"|'''You get:'''
|-
|URL
|<tt>...may be found at <nowiki>http://www.cern.ch</nowiki></tt>
|...may be found at http://www.cern.ch
|-
|External link, unnamed
|<tt> ...has recently been demonstrated by the <nowiki> QuarkNet[http://quarknet.fnal.gov] project.</nowiki></tt>
| ...has recently been demonstrated by the QuarkNet[http://quarknet.fnal.gov] project.
|-
|External link, named
|<tt> ...as explained in the <nowiki>[http://www.nytimes.com New York Times]</nowiki></tt>
| ...as explained in the [http://www.nytimes.com New York Times]
|}
== See Also ==
* [http://www.mediawiki.org/wiki/Help:Links MediaWiki Manual: Links]
* [[Help:Interwiki Linking]]