more wikis
 

Help:Pipe trick

From Wikia Help

Contents

By adding a pipe or vertical bar ("|" -- Shift + Backslash) before the closing brackets in certain links, you can hide namespaces, clarifying words in parentheses, or words after commas.

It does not affect where the link goes, only what is displayed on the page.

Since the pipe trick can be hard to follow, it is best illustrated through the following examples:

The types

Brackets

  • [[Someone (author)|]] is converted to [[Someone (author)|Someone]].
  • [[Someone (clown)|]] is converted to [[Someone (clown)|Someone]].

The pipe trick is helpful for when you want to link to a page from within a sentence without using the full page name. This is especially good for lengthy pages.

Namespaces

  • [[Project:Something|]] is converted to [[Project:Something|Something]].
  • [[w:Something|]] is converted to [[w:Something|Something]].

For example:

Commas

  • [[Some City, Some State|]] is converted to [[Some City, Some State|Some City]].

Notes

  • The pipe trick does not work for external links.

See also