WikiIndex:Wikilink: Difference between revisions
m (Reverted edits by 86.65.167.6 (Talk); changed back to last version by TedErnst) |
Hoof Hearted (talk | contribs) (expand text) |
||
Line 1: | Line 1: | ||
{{TOCright}} | |||
One of the fundamentals of the internet or 'web' is being able to link to other pages or sites on the web. This is also true for [[wiki]]s. This '''WikiIndex:Wiki Links''' page describes how to create said links. | |||
===Internal links (linking to a page <u>within</u> this wiki)=== | |||
While editing a [[wiki]] page, put double square brackets around the text you wish to become a link. Example: | |||
:'''<tt><nowiki>[[Brand New Page]]</nowiki></tt>''' | |||
will create a new link that will function like this: | will create a new link that will function like this: | ||
:[[Brand New Page]] | :[[Brand New Page]] | ||
If you want to display a different phrase than the page name, you can use a pipe (|). The text before the pipe (|) is the page name. The text after the pipe is the label for that particular link. For example: | If you want to display a different phrase than the page name, you can use a pipe (<tt>|</tt> – next to the left shift key on your keyboard). The text before the pipe (|) is the actual page name. The text after the pipe is the displayed label for that particular link. For example: | ||
:'''<nowiki>[[Brand New Page| | :'''<tt><nowiki>[[Brand New Page|my article page]]</nowiki></tt>''' | ||
will display like this: | will display like this: | ||
[[Brand New Page| | :[[Brand New Page|my article page]] — hover your mouse cursor over this link, and it will still display 'Brand New Page'. | ||
* If the term that is double brackted exists as an article in the wiki, then the link will show in blue and be immediately functional. | *If the term that is double brackted exists as an article in the wiki, then the link will show in blue and be immediately functional. | ||
*If the term that is double bracketed is ''not'' an existing page in the wiki, the link is "dangling" and shows in red. In a typical website, this might be considered a "broken" or dead link, but in a wiki, it is simply an invitation for someone to create that needed article by clicking on the red link. Check the [[Special:Wantedpages|Wanted Pages]] for a list of 'red link' articles that this wiki needs. | |||
====Section links==== | |||
Large or long web pages may usually be sub-divided into 'sections' by using section headings. If you wish to link to a particular section (rather than the whole page), you can do so by using the hash (<tt>#</tt>). So for example, if you wanted to link to the 'Redirects' section at the foot of this page, you would type: | |||
:'''<tt><nowiki>[[WikiIndex:Wiki Links#Redirects]]</nowiki></tt>''' | |||
which will display: [[WikiIndex:Wiki Links#Redirects]] | |||
This can also be piped to display a different or 'neater' name – such as: | |||
:'''<tt><nowiki>[[WikiIndex:Wiki Links#Redirects|Redirects section on WikiLinks]]</nowiki></tt>''' | |||
displaying: [[WikiIndex:Wiki Links#Redirects|Redirects section on WikiLinks]] | |||
:'''<nowiki>[ | If you wish to use section links on the <u>same</u> page, you can ommit the page name from the link, as in: | ||
:'''<tt><nowiki>[[#Redirects]]</nowiki></tt>''' | |||
===External links (linking to a page on <u>another</u> website)=== | |||
While editing a wiki page, put single square brackets around the URL; and the description text you wish to become a link. Example: | |||
:'''<tt><nowiki>[http://www.wikiindex.com Official WikiIndex website]</nowiki></tt>''' | |||
will create a new link that will function like this: | will create a new link that will function like this: | ||
:[http://www.wikiindex.com Official WikiIndex website] — note the 'double arrow' at the end of this; indicating that it is an 'off-site' link. | |||
Section links detailed [[#Section links|above]] for internal wikilinks can also work on external link URLs. | |||
===Redirects=== | ===Redirects=== | ||
Sometimes there may be two or more names for the same article. For example, ISOC and Internet Society. One of them should redirect to the other. To create a redirect, type # | Sometimes there may be two or more names, or similar names for the same article. For example, ISOC and Internet Society. One of them should [[Special:ListRedirects|'redirect']] to the other. To create a redirect, click on <code>#REDIRECT</code> at the foot of the page or type <tt>#redirect</tt> – followed by a link to the page to be redirected to in a blank page. Redirects are automatically created when pages are moved using the "move" tab at the top of the screen for existing pages. | ||
[[ | |||
[[Category:WikiIndex]] | |||
[[Category:Help]] | [[Category:Help]] | ||
[[ | [[Category:FAQ]] |
Revision as of 10:45, 6 January 2012
Template:TOCright One of the fundamentals of the internet or 'web' is being able to link to other pages or sites on the web. This is also true for wikis. This WikiIndex:Wiki Links page describes how to create said links.
Internal links (linking to a page within this wiki)
While editing a wiki page, put double square brackets around the text you wish to become a link. Example:
- [[Brand New Page]]
will create a new link that will function like this:
If you want to display a different phrase than the page name, you can use a pipe (| – next to the left shift key on your keyboard). The text before the pipe (|) is the actual page name. The text after the pipe is the displayed label for that particular link. For example:
- [[Brand New Page|my article page]]
will display like this:
- my article page — hover your mouse cursor over this link, and it will still display 'Brand New Page'.
- If the term that is double brackted exists as an article in the wiki, then the link will show in blue and be immediately functional.
- If the term that is double bracketed is not an existing page in the wiki, the link is "dangling" and shows in red. In a typical website, this might be considered a "broken" or dead link, but in a wiki, it is simply an invitation for someone to create that needed article by clicking on the red link. Check the Wanted Pages for a list of 'red link' articles that this wiki needs.
Section links
Large or long web pages may usually be sub-divided into 'sections' by using section headings. If you wish to link to a particular section (rather than the whole page), you can do so by using the hash (#). So for example, if you wanted to link to the 'Redirects' section at the foot of this page, you would type:
- [[WikiIndex:Wiki Links#Redirects]]
which will display: WikiIndex:Wiki Links#Redirects
This can also be piped to display a different or 'neater' name – such as:
- [[WikiIndex:Wiki Links#Redirects|Redirects section on WikiLinks]]
displaying: Redirects section on WikiLinks
If you wish to use section links on the same page, you can ommit the page name from the link, as in:
- [[#Redirects]]
External links (linking to a page on another website)
While editing a wiki page, put single square brackets around the URL; and the description text you wish to become a link. Example:
- [http://www.wikiindex.com Official WikiIndex website]
will create a new link that will function like this:
- Official WikiIndex website — note the 'double arrow' at the end of this; indicating that it is an 'off-site' link.
Section links detailed above for internal wikilinks can also work on external link URLs.
Redirects
Sometimes there may be two or more names, or similar names for the same article. For example, ISOC and Internet Society. One of them should 'redirect' to the other. To create a redirect, click on #REDIRECT
at the foot of the page or type #redirect – followed by a link to the page to be redirected to in a blank page. Redirects are automatically created when pages are moved using the "move" tab at the top of the screen for existing pages.