Help:Pipe trick Information & Help:Pipe trick Links at HealthHaven.com
advertise
add site
services
publishers
database
health videos
Bookmark and Share

search wiki for    ?
web dir firms image gallery news pdf wiki shop video 
about
toolbar
stats
live show
health store
more stuff
JOIN/LOGIN
Featured Results:
Learn Sun Salutations 10 tips and trick s to help from Mark Giubarelli
Learn Sun Salutations 10 tips and tricks to help from Mark Giubarelli
yogacards.com
 Diet tips and trick s helps in curbing every-day diet problems
Diet tips and tricks helps in curbing every-day diet problems
diethealthclub.com
 Lead pipe or drain pipe chronic colitis appearance
Lead pipe or drain pipe chronic colitis appearance
thehutchinsonclinic.co.uk
 Bag Pipe Bag Pipe
Bag Pipe Bag Pipe
spabodyworkmarket.com
 

The pipe trick uses the pipe character ("|") to save typing-in the right hand side of a piped link for several kinds of wikilinks. The advantage is fewer typos when writing or editing wikitext.

When the last, wikitext, character of a link is the pipe character, the pipe trick changes the display characteristics of that link. When the link title contains a comma or colon or ends with a parenthesized term, then the wiki software (running on Wikipedia servers) transforms the wikitext you typed in (from your browser or editor) before it stores the wikitext on the server for later display.

It's mostly used to disappear the parenthesized part of the link title, but it also has effects on commas in the title and colons forming the namespaces. It does not have effects on the number sign ("#") (used to link directly to an article section). Also, the pipe trick does not work in edit summaries.

Contents

[edit] Examples

This may be hard to follow, so please see the examples:

Type this Generates this when you "Save page" Appears as
Article titles
[[g (factor)|]] [[g (factor)|g]] g
[[Boston, Massachusetts|]] [[Boston, Massachusetts|Boston]] Boston
[[The Lord of the Rings: The Fellowship of the Ring (video game)|]] [[The Lord of the Rings: The Fellowship of the Ring (video game)|The Fellowship of the Ring]] The Fellowship of the Ring
Redirection
[[Bush (43)|]] [[Bush (43)|Bush]] Bush
[[Bush (41)|]] [[Bush (41)|Bush]] Bush
Normal titles
[[Wikipedia:Help|]] [[Wikipedia:Help|Help]] Help
Users
[[User:Example|]] [[User:Example|Example]] Example

[edit] Combinations

The basic rule when the pipe trick is used, is that an (initial) namespace prefix, a final part beginning with a comma, or a final parenthesis (usually intended for disambiguation) is suppressed in the rendering of the link. In case of combinations of suppressible parts, the following rules apply:

[edit] Parentheses beat commas

If the link name involves both one or more commas and a final parenthesis, only the parenthesis is suppressed:

 [[Yours, Mine and Ours (1968 film)|]]  

is shown on the page as:

Yours, Mine and Ours

[edit] Only one prefix suppressed

If there are several prefixes, which can occur, for example, for a transwiki link, only the first is suppressed:

 [[:es:Wikipedia:Políticas|]]  

is rendered as:

Wikipedia:Políticas

[edit] The first comma counts

If there are several commas, only the part up to the first comma is shown:

 [[Il Buono, il Brutto, il Cattivo|]]  

results in:

Il Buono

[edit] Other combinations

For the rest, if there is both an initial part and a final part that can be omitted, both are suppressed:

 [[Wikipedia:Manual of Style (Persian)|]]  

produces:

Manual of Style

[edit] Where it does not work

[edit] Cite.php <ref> footnotes

The trick does not work when enclosing between "ref" tags.

 <ref>[[Roger Taylor (author)|]]</ref>[1]  

renders in the references list (generated by the <references/> tag) as:

  1. ^ [[Roger Taylor (author)|]]

[edit] Edit summaries

The trick does not work in edit summaries. /* Edit summaries and the pipe trick */ as tested in [[WP:SAND|]] renders in the edit history as:

(Edit summaries and the pipe trick: as tested in WP:SAND)

[edit] Section links

The pipe trick does not work on section links, and in general it does not work for links to anchors (links that use a # sign). For example, [[Wikipedia:Verifiability#Sources|]] does not give you a clickable wikilink "Verifiability#Sources" but results in:

[[Wikipedia:Verifiability#Sources|]]

[edit] Slash trick

You can achieve the same effect for subpages by adding a slash: [[/subpage/]] generates the same output as [[/subpage|subpage]]. Unlike the pipe trick, though, it will not be transformed in the wikitext.

This trick only works in namespaces where [[/subpage]] would.

[edit] Reverse pipe trick

If the title of the article containing the link includes a parenthesized term or a comma, placing a pipe at the start of the link will append the corresponding text. For example, if the link [[|Agonizer]] were placed in Agonist (disambiguation), the link would to be expanded to [[Agonizer (disambiguation)|Agonizer]]. Using the reverse pipe trick on an article that has no parentheses or comma in its title is unproductive; the pipe character is automatically removed. The reverse pipe trick does not work with colons.

[edit] Try it!

The best way to understand this is to try it yourself in the sandbox. Use one of the examples under "Type this" above, save the page, then immediately edit it again. You'll see the transformation, and it should be clearer exactly what happened.

[edit] See also




Product Results (view all...)

search wiki for    ?
web dir firms image gallery news pdf wiki shop video 



↑ top of page ↑about thumbshots