Anonymity is a Roadblock - Full Disclosure is a Portal
SITE CURRENTLY BEING MODIFIED AS EXPLANATORY INFORMATION IS ADDED.

Help:Links

From Open Lives

Jump to: navigation, search

There are three sorts of links in MediaWiki:

  1. internal links to other pages in the wiki
  2. external links to other general websites
  3. interwiki links to other wikis that were included at the time of current wiki installation

Contents

Internal links

To add an internal link, enclose the name of the page to which you want to link in double square brackets. When you preview or save the edited text, you'll see the new link pointing to that page. If the page exists already it is displayed in blue, if it does not, in red. Selflinks to the current full page are not transformed into URLs but rather are displayed in bold as: Help:Links. However, selflinks to anchors within the page are fully displayed.

There is no need to capitalize the first letter of the target page since this is automatically done by the wikiware when the link is sought. Similarly, spaces can be used because they are also automatically changed to underscores (typing an underscore in the link will have a similar effect as typing a space, but is not recommended, since the underscore will also be shown in the text).

Description You type You get
Internal link
[[Entry Page]]
Entry Page
Piped link
[[Entry Page|different text]]
different text
Redirect
#REDIRECT [[Entry Page]]

See also Help:Redirects

Entry Page
Internal link to an anchor
[[#See also]]

Section headings and the top of the page are automatically anchored.

#See also
Internal link to an anchor at another page
[[Help:Images#See also]]
Help:Images#See also
Internal link to a subpage
[[/example]]

Shortcut for [[Help:Links/example]] .

/example
Internal link to a category page
[[:Category:Help]]

See also Help:Categories

Category:Help
Internal link to an image or a file of other types
[[media:example.jpg]]

[[media:example.pdf]]

See also Help:Images

media:example.jpg

media:example.pdf

External links

Description You type You get
External link
http://mediawiki.org
http://mediawiki.org
External link with different label
[http://mediawiki.org MediaWiki]
MediaWiki
External link numbered
[http://mediawiki.org]
[1]
External link icons
[http://en.wikipedia.org/wiki/.avi video]
[http://en.wikipedia.org/wiki/.wav sound]
[http://en.wikipedia.org/wiki/.pdf document]

External link icons may differ depending on the file type of the target.

video sound document

External link to the same host
[http://{{SERVERNAME}}/pagename]
[2]
External link to other host passing the pagename
[http://google.com/search?q={{PAGENAMEE}}]
[3]
Mailto link
[mailto:info@example.org email me]
email me
Mailto named with subject line and body
[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info]
info

Template:Admin tip Template:Admin tip

How to avoid auto-links

By default, when you simply type a URL beginning with "http://", it will be transformed to an external link (see the first line of the next section for an example).

To avoid that effect, put the URL between <nowiki> tags as in:

<nowiki>http://mediawiki.org

Interwiki links

Interwiki links are links for which the internal link markup to a website has been added in advance. For example, you can link to the Sunflower article on http://en.wikipedia.org by typing [[wikipedia:Sunflower]], which will result in a link wikipedia:Sunflower. This is because http://en.wikipedia.org/wiki/ has been added to this wiki with the prefix of wikipedia.

Similar to internal page links, you can create piped links, with alternate link label, e.g. [[wikipedia:Sunflower|big yellow flower]].

Basically an Interwiki link is simply an abbreviation for longer URLs. A very similar link could be created as a normal external link by typing [http://en.wikipedia.org/wiki/Sunflower Sunflower], but interwiki links allow you to type out an easy and compact link, almost as if you are linking to a page on your own wiki.

See also

Personal tools
<
July 2010
>
MTWTFSS
1234
567891011
12131415161718
19202122232425
262728293031
Events Upcoming
More »