Making links
From Wikiversity
This is a quick tutorial about how to make hypertext links on Wikiversity webpages.
Contents |
[edit] Terminology
- hypertext link ("link" for short). Here are some examples of links: Link and Hyperlink.
- internal link. Here is an example of an "internal link": Link. Internal links are links to other Wikiversity pages.
- external link. Here is an example of an "external link": Hyperlink. External links are links to another website such as the Wikipedia website.
[edit] Make an internal link
Try creating a link from this page section to another Wikiversity page. Example: [[Anicape]] can be used to create a link to the Wikiversity Main Page. Click on the "edit" link for this page section. When you see the edit window, practice making a link below:
[edit] Make an external link
In many cases it is useful to make links from Wikiversity pages to web pages at other websites. For example, it can be useful to link to textbooks at the Wikibooks website. For example, here is how to make a link to the book for European History: [http://en.wikibooks.org/wiki/European_History European History]. Edit this page section and practice making external links.
- Wikibooks
- European History at Wikibooks
- Wikiversity at Wikipedia
- Theology
- Siege of Boston
[edit] Some link tricks
- link trick #1: external links that look like internal links Here are three links to the same page: Main Page and [1] and Wikipedia website. To make a link to Wikipedia look like an internal link use this format: [[w:Main Page]]. The "w:" prefix means to make a link to Wikipedia and "Main Page" is an example of a page name at Wikipedia. "[[w:Main Page]]" is an example of MediaWiki Markup; the special instructions that are used at Wikiversity to do things like make hypertext links on pages. Do not fear: there are shortcuts (see below) for making links so you do not have to remember the MediaWiki Markup details. Advanced reading: Interwiki linking.
- link trick #2: the "piped link" In case the form of an internal link is not correspond with the desired output, you can use "piped links". Above, the link "Wikipedia website" was made using [[w:Main Page|Wikipedia website]], where the vertical line is called a "pipe". The text to the left of the "pipe" is the correct form of the internal link, but it is not shown. To the right of it is the text as it is shown on the page.
- link trick #3: shortcut buttons There are buttons on the Editing toolbar for starting internal and external links. When you edit a Wikiversity page, if you do not see the editing toolbar, make sure that "Show edit toolbar" is active in your editing preferences. When you click on the buttons, the basic MediaWiki Markup for a link will be added into the edit window then you just fill in the required page name information. Required information:
- link title <-- for internal links, add the page name of the page to be linked to.
- www.example.com <-- for external links, provide the URL of the page. Note: the difference between Main Page and [2] is that in the first link an optional "link title" was provided: [http://en.wikipedia.org/wiki/Main_Page Main Page].
[edit] Exercise
Edit the "Terminology" and "Tricks" sections of the page, above, and see how the various types of links are created.
[edit] Your turn
Edit this section of the page and practice making some links.
Topic:Southeast_Asian_languages
[[Topic:Southeast_Asian_languages!!]]
[[Technical writing]]
[[w:Mysterium| Mysterium]]
[edit] Discussion
Confused? Edit this section of the page and ask a question.
- Could someone write this all out more simply with examples, showing me exactly how to create a link?
-
- Did you try the exercises/activities listed above? --JWSchmidt 23:31, 20 June 2007 (UTC)
[edit] See also
- Help:Contents#Links - everything you might ever need to know about links.
- External link
- Red Link City

