Bureaucrats, content-moderator, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators, threadmoderator
85,404
edits
(spinning magic words out into its own page) |
(→The "pipe trick": collapsing previous long-winded explanation into a simple table) |
||
Line 119: | Line 119: | ||
===The "pipe trick"=== | ===The "pipe trick"=== | ||
One of the most helpful shortcuts one can learn in linking to articles is the so-called "pipe trick". By placing a pipe (|) after certain strings of text, one can eliminate the need to type huge amounts of replacement text. For example, if the name of an episode of ''[[Doctor Who]]'' is shared with a person, place or thing in the [[Doctor Who universe|DWU]], then it will be "disambiguated" with the parenthetical "(TV story)". [[Castrovalva]] refers to the city, whereas [[Castrovalva (TV story)]] links to the page about the episode. Generally, when writing a sentence about the TV story, one doesn't want "(TV story)" to appear in the body of text. To get rid of it, one must enter some replacement text separated by the full article name by a pipe (|}. The long way of doing that is: | One of the most helpful shortcuts one can learn in linking to articles is the so-called "pipe trick". By placing a pipe (|) after certain strings of text, one can eliminate the need to type huge amounts of replacement text. For example, if the name of an episode of ''[[Doctor Who]]'' is shared with a person, place or thing in the [[Doctor Who universe|DWU]], then it will be "disambiguated" with the parenthetical "(TV story)". [[Castrovalva]] refers to the city, whereas [[Castrovalva (TV story)]] links to the page about the episode. Generally, when writing a sentence about the TV story, one doesn't want "(TV story)" to appear in the body of text. To get rid of it, one must enter some replacement text separated by the full article name by a pipe (|}. The long way of doing that is: | ||
< | {| class="grey" style="margin: auto;" | ||
[[Castrovalva (TV story)|Castrovalva]] | |-align="center" | ||
</ | ! width="33%"|Code | ||
! width="33%"|Notes | |||
< | ! width="33%"|Effect | ||
[[Castrovalva (TV story)|]] | |-align="center" | ||
</ | | <nowiki>[[Castrovalva (TV story)|Castrovalva]]</nowiki>|| Gets rid of '''(TV story)''' the long way||[[Castrovalva (TV story)|Castrovalva]] | ||
The | |-align="center" style="background:#f0f0f0;" | ||
< | | <nowiki>[[Castrovalva (TV story)|]]</nowiki>||The short-cut for the above||[[Castrovalva (TV story)|Castrovalva]] | ||
[[User: | |-align="center" | ||
</ | | <nowiki>[[User:Tangerineduel|Tangerineduel]]</nowiki>||The long way to get rid of '''User:'''|| [[User:Tangerineduel|Tangerineduel]] | ||
|-align="center" style="background:#f0f0f0;" | |||
< | | <nowiki>[[User:Tangerineduel|]]</nowiki>||The short-cut for the above|| [[User:Tangerineduel|Tangerineduel]] | ||
[[ | |-align="center" | ||
</ | | <nowiki>''[[wikipedia:Life on Mars (TV story)|Life on Mars]]''</nowiki>||The long way to link to a Wikipedia article|| ''[[wikipedia:Life on Mars (TV series)|Life on Mars]]'' | ||
|-align="center" style="background:#f0f0f0;" | |||
| <nowiki>''[[wikipedia:Life on Mars (TV series)''|]]</nowiki>||Pipe trick simultaneously truncates the back and front of the string||''[[wikipedia:Life on Mars (TV series)|Life on Mars]]'' | |||
|-align="center" | |||
| <nowiki>[[w:c:bionic:Jaime Sommers (2007)|Jaime Sommers]]</nowiki> || Links to an article on another wiki (see Interwiki section)|| [[w:c:bionic:Jaime Sommers (2007)|Jaime Sommers]] | |||
|-align="center" style="background:#f0f0f0;" | |||
| <nowiki>[[w:c:bionic:Jaime Sommers (2007)|]]</nowiki>|| Pipe trick fails|| [[w:c:bionic:Jaime Sommers (2007)|c:bionic:Jaime Sommers]] | |||
|- | |||
|} | |||
===The "slash trick"=== | ===The "slash trick"=== | ||
There are some pages here which have a number of subpages. A subpage is a page that branches off of the page one is currently viewing. If this page had a subpage about slash tricks, it would be in the format of [[Help:Wiki markup/Slash trick]]. This syntax, however, is how one would link to the subpage from any other page on the wiki. '''On this page only''' the same link could be generated by typing | There are some pages here which have a number of subpages. A subpage is a page that branches off of the page one is currently viewing. If this page had a subpage about slash tricks, it would be in the format of [[Help:Wiki markup/Slash trick]]. This syntax, however, is how one would link to the subpage from any other page on the wiki. '''On this page only''' the same link could be generated by typing |
edits