Help:Link

From WikituneUp - The Free Service Manual
Jump to: navigation, search

Wikilinks[edit]

A wikilink or internal link links a page to another page within Wikituneup

  • [[a]] gives a (link to a, labeled a).
  • [[a|b]] gives b (link to a, labeled b).
  • [[a]]:b gives a:b (punctuation is not appended to the link). The same goes for [[BMW]]'s or e-[[mail]].
  • [[a]]''b'' gives ab.
  • ''[[a]]''b gives ab.

Links with a specified label are said to be piped because of the pipe symbol used ( | ). For certain types of links, the label will be generated automatically if a pipe is typed with no label after it (thus saving you typing).

The link target is case-sensitive except for the first character (so bmw links to Bmw, but BMW does not).

If the target of a wikilink does not exist, it is displayed red, and is called a red link. If a red link is clicked, the user is taken to a page where it is possible to create a page under the red linked title. You will notice them above because there are no pages called a or b.

If the target of a link is the same as the page on which it appears (a self-link), it is displayed in bold, as in Help:Link.

Attempting to link normally to an image page, or category page will produce a different effect: it will place the image on the page, or add the page to the category. To override this behavior, add an initial colon, as in [[:File:logo.png]], [[:Category:Help]].

External Links[edit]

External links use absolute URLs to link directly to any webpage. These links have the associated CSS class "external". External links are in the form link name (resulting in link name), with the link name separated from the URL by a space. Links without link names appear numbered: [1] becomes [1]. Links with no square brackets display in their entirety: http://www.example.org .

Section Links (A.K.A. Anchors)[edit]

To make a link to a section of a page, use the following syntax:

  • #B1 where B1 is B with blanks replaced by underbars, links to the section titled "B" on the current page (for example, #External_links links to the External links section on this page).
  • A#B1 where B1 is B with blanks replaced by underbars, links to the section titled "B" on page "A".

The section title in fact points to an anchor on the target page. It is possible to define anchors other than explicit section titles, using the HTML code ..., or the template Template:Anchor (see Template:Anchor syntax). However #top and #toc are reserved names that link to the top of a page and the table of contents, respectively.

Subpage links[edit]

In a namespace in which the subpage feature is enabled (which does not include Wikipedia article space), the following relative links can be used:

  • [[../]] links to the parent of the current subpage, e.g., on A/b it links to A, on A/b/c it links to A/b.
  • [[../s]] links to a sibling of the current subpage, e.g., on A/b, it links to A/s.
  • [[/s]] links to a subpage, e.g. on A it is the same as [[A/s]].