• About Good Acts
  • Veterans Resources
  • From Pharms to Farms | A Veteran’s Road to Freedom
  • Petition to Educate the DEA on the Medical Benefits of Cannabis
Good Acts

The best road to progress is freedom's road. - JFK

Texas

Linking and
page manipulation
Linking and diffs
  • URLs
  • Links
  • Orphans
  • Interlanguage links
  • Interwiki linking
  • Shortcuts
  • External links
    • External link icons
    • Plainlinks
  • Link color
  • Colon trick
  • Pipe trick
  • Self links
  • What links here
  • Linksearch
  • Manual of Style on linking
  • Navigation templates
  • Hatnotes
  • Template index for links
  • Diffs
    • Simplest diff guide
    • Simple diff and link guide
    • Complete diff and link guide
Categorization
  • Category
  • Categorization guideline
  • Classification
  • Container category
  • FAQ for categorization
  • FAQ for categories
  • Categories, lists, and navigation templates
  • Categorization of people
    • By year
    • By ethnicity, gender, religion and sexuality
  • Redirect categories
  • User categories
  • Overcategorization
    • User categories
  • Template index for categories
Moving and redirecting
  • How to move a page for beginners
  • Redirects
  • Moving a page
  • Requested moves
  • How to fix cut-and-paste moves
  • Moving files to Commons
  • Userfication
  • Template index for moving
  • Template index for redirects
Merging
  • Merging
  • Proposed article mergers
  • Requests for history merge
  • Merge and delete?
  • Merge what?
  • Delete or merge?
  • Template index for merging
  • WikiProject Merge
Splitting
  • Splitting
  • Template index for splitting
Importing and copying
  • How to import articles
  • Requests for page importation
  • Import
  • Export
  • Copying within Wikipedia
Protecting
  • Protection
  • Protection policy
  • High-risk templates
  • Requests for page protection
  • Rough guide to semi-protection
Additional
  • How to create a page
  • Article creation
  • Editing
  • Deletion process

The pipe trick uses the pipe character ("|") to save typing the label of a piped link for several kinds of wiki links. This can avoid potentially making an error while typing the label.

When the last character of a link is the pipe character, the pipe trick will automatically generate the text that displays for that link. Its processing removes the parenthesized part of the link title, handles commas in the title, and removes namespace prefixes. The described processing happens at the point of saving the page data, and the generated text is saved with the rest of the page's wiki markup – thus, it is merely an aid to editing.

An even better way to save keystrokes that doesn't need any additional characters is by simply attaching text to the link, as in "[[train]]s".

The pipe trick doesn't work in edit summaries, within <ref> tags, or links to sections – see below.

Contents

  • 1 Examples
  • 2 Combinations
    • 2.1 Commas beat parentheses
    • 2.2 Only one prefix suppressed
    • 2.3 Only the first comma
    • 2.4 Other combinations
  • 3 Where it doesn't work
    • 3.1 <ref> footnotes and <gallery> tags
    • 3.2 Edit summaries
    • 3.3 Section links
  • 4 Related tricks
    • 4.1 Slash trick
    • 4.2 Reverse pipe trick
  • 5 Alternatives
  • 6 See also

Examples

Article titles

  • [[Pipe (computing)|]] results in Pipe
  • [[Phoenix, Arizona|]] results in Phoenix

Pages in other namespaces

  • [[Wikipedia:Verifiability|]] results in Verifiability
  • [[User:Example|]] results in Example
  • [[Template:Welcome|]] results in Welcome

The next few examples demonstrate additional features and show the expanded wiki markup text that this pipe-trick process generates, which in turn generates the results in the page display.

Since Wikipedia is case-insensitive in regard to the first character of the target title, it is possible to use the pipe trick for upper- or lowercase words regardless of the target page's case.

  • [[Pipe (computing)|]] generates the wiki markup [[Pipe (computing)|Pipe]] rendered as Pipe

As with all links, it is possible to blend a suffix when using the pipe trick as well:

  • [[pipe (computing)|]]s generates the wiki markup [[pipe (computing)|pipe]]s rendered as pipes
  • [[pipe (computing)|]]mill generates the wiki markup [[pipe (computing)|pipe]]mill rendered as pipemill

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. The rendered text is case neutral and so should be entered precisely as the user wishes it to appear in the article. In case of combinations of suppressible parts, the following rules apply:

Commas beat parentheses

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

Only one prefix suppressed

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

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

is rendered as:

Wikipedia:Políticas

Only the first comma

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

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

Where it doesn't work

Where the pipe trick doesn't work, the link must be written out in full manually.

<ref> footnotes and <gallery> tags

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

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

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

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

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)

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|]] renders as:

[[Wikipedia:Verifiability#Sources|]]

It does not give you any wikilink. See phabricator:T2845, "[[#foo|]], [[/bar|]] should be equivalent to [[#foo|foo]], [[/bar|bar]]".

Related tricks

Slash trick

You can achieve a similar effect for subpages by adding a slash.

[[/Subpage/]]

generates:

Subpage

Unlike the pipe trick, though, the slash trick is not expanded in the saved wiki markup.

This trick only works in namespaces where subpages are enabled.

Reverse pipe trick

If the title of the article you are editing includes a parenthesized term or a comma, placing a pipe at the start of a link will append that parenthesized text to the link target, but not display it.

For example, if the link

[[|Agonizer]]

were placed in Agonist (disambiguation), the link would be expanded to

[[Agonizer (disambiguation)|Agonizer]]

If the link

[[|Palo Alto]]

were placed in Pacific Grove, California, the link would be expanded to

[[Palo Alto, California|Palo Alto]]

Placing a pipe at the start of a link to an article that has no parentheses or comma in its title will have no effect.

Alternatives

Some templates are available as alternatives to using the trick for linking.

  • {{user link|Example}} → Example (shortcut: {{u}})
  • {{help link|Example}} → Example
  • {{tlbare|Example}} → Example

See also

  • Help:Magic
  • Help:Piped link
  • m:Help:Piped link
Wikipedia technical help
Get personal technical help at the Teahouse, Help desk, Village pump (technical), talk pages or IRC.
General technical
help
  • Browser notes
    • Bypass cache
    • Keyboard shortcuts
    • Troubleshooting
  • Editing
    • CharInsert
    • Edit conflict
    • Edit toolbar
    • Reverting
  • How to create a page
  • IRC
    • Tutorial
  • Mobile access
  • Multilingual support
  • Page history
  • Page information
  • Page name
    • Help
  • Printing
  • Software notices
    • Editnotice
  • Special Characters
    • Entering
  • User access levels
  • VisualEditor
    • User guide
Special page-related
  • Special page help
  • Edit filter
  • Emailing users
  • Logging in
    • Reset passwords
  • Logs
  • Moving a page
    • Fixing cut-and-paste moves
  • Notifications/Echo
    • FAQ
  • Page Curation
  • Page import
  • Pending changes
  • Random pages
  • Recent changes
  • Related changes
  • Searching
    • Linksearch
  • Tags
  • User contributions
  • Watchlist
  • What links here
Wikitext
  • Wikitext
    • Cheatsheet
  • Columns
  • Line-break handling
  • Lists
  • Magic words
    • For beginners
    • Conditional expressions
    • Switch parser function
    • Time function
  • Redirects
  • Sections and TOCs
  • Tables
    • Introduction
    • Basics
    • Advanced table formatting
    • Collapsing
    • Conditional tables
    • Sorting
  • Using colours
Links and diffs
  • Links
    • Interlanguage
    • Interwiki
    • Permanent
  • Diffs
    • Simplest diff guide
    • Simple diff and link guide
    • Complete diff and link guide
  • Colon trick
  • Link color
  • Pipe trick
  • URLs
Media files: images,
videos and sounds
  • Media help
  • Files
    • Creation and usage
    • Moving files to Commons
  • Images
    • Introduction to images
    • Picture tutorial
    • Preparing images for upload
    • Uploading images
    • Options to hide an image
    • Extended image syntax
    • SVG help
  • Gallery tag
  • Graphics tutorials
    • Basic bitmap image editing
    • How to improve image quality
    • Graphics Lab resources
  • Sound file markup
  • Visual file markup
Other graphics
  • Family trees
  • Graphs and charts
    • How to create
    • Barcharts
    • To scale charts
  • Math formulas
    • Math symbols
    • LaTeX symbols
    • Rendering math
  • Musical scores
    • Musical symbols
  • Timeline
    • EasyTimeline syntax
  • WikiHiero syntax
Templates and
Lua modules
  • Templates
  • Advanced template coding
  • Template documentation
  • Template index
  • Template limits
  • Template sandbox and test cases
  • Citation templates
  • Lua help
  • Lua project
    • Resources
    • To do
  • Substitution
  • Purge
    • Job queue
  • Transclusion
    • Labeled section
  • Guide to Scribbling
Data structure
  • Namespaces
  • Main/Article
  • Category
  • Draft
  • File
    • File description page
  • Help
  • Portal
  • Project/Wikipedia
  • Talk
    • Archiving
  • Template
  • User
    • User page design
  • MediaWiki
    • Bug reports and feature requests
    • System message
    • TimedMediaHandler extension
  • Module
  • Special
HTML and CSS
  • Cascading Style Sheets
  • HTML in wikitext
  • Catalogue of CSS classes
  • Common.js and common.css
  • User CSS for monospaced coding font
  • Classes in Ambox
  • Classes in microformats
  • Markup validation
  • Span tags
  • Useful styles
Customisation and tools
  • Preferences
  • Gadgets
  • Skins
  • Citation tools
  • Cleaning up vandalism tools
  • Customizing watchlists
    • Hide pages
  • IRC Scripts
  • User scripts
    • Guide
    • Techniques
  • User style
  • Tools
    • Alternative browsing
    • Browser tools
    • Editing tools
    • Navigation shortcuts
    • Optimum tool set
  • Wikimedia Cloud Services
  • Beta Features at MediaWiki
Automated editing
  • AfC helper script
  • AutoWikiBrowser
  • Bots
    • Creating
  • HotCat
  • Huggle
  • Navigation popups
  • RedWarn
  • Twinkle
  • WPCleaner
  • Inactive
    • igloo
    • STiki
  • See also: Category:Wikipedia how-to
  • Category:Wikipedia information pages
    Further navigation at: Help pages
    • Administrators
  • Accessibility
  • Accounts
  • Bots
  • Referencing
    • Citation metadata
  • Templates
  • User scripts
source: https://en.wikipedia.org/wiki/Help:Pipe_trick
  • This page was last edited on 8 April 2021, at 08:40 (UTC).
  • Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
  • Privacy policy
  • About Wikipedia
  • Disclaimers
  • Contact Wikipedia
  • Mobile view
  • Developers
  • Statistics
  • Cookie statement
  • Wikimedia Foundation
  • Powered by MediaWiki

Please consider signing this Petition to Educate the DEA and UN on the medical benefits of Cannabis.

State Resources

  • Texas

    Texas

    January 22, 2018
  • Repetitive Transcranial Magnetic Stimulation | rTMS | Depression Therapy for Veterans at the Waco, Tx. VA

    Repetitive Transcranial Magnetic Stimulation | rTMS | Depression Therapy for Veterans at the Waco, Tx. VA

    February 22, 2019
  • San Diego Vet Centers

    San Diego Vet Centers

    January 22, 2018

Resources

  • VA Administration Sets National Policy Allowing Robotic Prosthetics

    VA Administration Sets National Policy Allowing Robotic Prosthetics

    December 26, 2015
  • VA benefits for Veterans of the Armed Forces of the United States of America

    VA benefits for Veterans of the Armed Forces of the United States of America

    March 18, 2016
  • Human Tissue Regeneration with Pigs Bladder Powder

    Human Tissue Regeneration with Pigs Bladder Powder

    March 18, 2016

Latest Posts

  • The American Legion Urge the Drug Enforcement Agency to License Privately-Funded Medical Marijuana Production Operations in the United States

    The American Legion Urge the Drug Enforcement Agency to License Privately-Funded Medical Marijuana Production Operations in the United States

    September 11, 2016
  • Compassionate Care Act of 2015 in Texas Discriminates Against Veterans

    Compassionate Care Act of 2015 in Texas Discriminates Against Veterans

    March 27, 2016
  • National Second Opinion Day 4/20/16 - All Veterans Ask VA for Second Opinion

    National Second Opinion Day 4/20/16 – All Veterans Ask VA for Second Opinion

    March 18, 2019

FOIA Contacts

  • Veterans Affairs | Veteran Claims File Request

  • Postal Inspection Service

  • USPS Field Office

Copyright © 2021 Good Acts.

Omega WordPress Theme by ThemeHall