Help:Piped link

From NuGOwiki

Jump to: navigation, search



Contents


A piped link is a link which is labeled differently from the name of the page it links to. This allows linking a word or phrase within the text of a page rather than using "see also", even if the wording does not exactly correspond with the name of the other page. With a suitable browser and depending on the preferences set, one can still see what page is linked to: when you point at the link, the name shows up in a hover box and is also shown in the status bar.

For instance:

[[People|NuGO Contacts]] will show: NuGO Contacts

The term piped refers to the use of the pipe character "|" used to separate the good description from the actual link.

Automatic conversion of the wikitext (pipe trick)

If in a piped link the part after the "|" is left empty, it is converted to an abbreviated form of the page name on the left, as follows:

  • if there is a colon in it, the leftmost colon and anything to the left of that is removed
  • if there is a text in parentheses at the end it will be removed

For example, the wikitext [[Help:Preferences|]] is converted to [[Help:Preferences|Preferences]], rendered as Preferences.

If there is nothing to abbreviate, i.e. there is no colon and there are no parentheses, then the link does not work at all, e.g. [[a|]].

Just like for the three or four tildes when signing on Talk pages and the use of subst, in a preview, the result already shows up in the preview itself, but the conversion in the edit box is not yet shown. Save and press Edit again to see the result of the conversion.

Syntax for external links

For external links a space is used instead of a pipe character; see Help:Editing.