Help:Colon trick
![]() | This help page is ahow-to guide. It details processes or procedures of some aspect(s) of Wikipedia's norms and practices. It is not one ofWikipedia's policies or guidelines,and may reflect varying levels ofconsensusandvetting. |
Linking and page manipulation |
---|
Thecolon trickis a method of providing a link to acategory,imageorinterwiki linkwithout adding the page to the category, displaying the image or adding the interwiki link to theinterlanguage links.It also allows for linking to pages with titles beginning with a recognized external link prefix, such ashttp://or//Hus.
By adding acolonjust inside the opening double square brackets of the link, the default behaviour of theMediaWiki softwarewill be bypassed. It will appear as a conventionalwikilink.
Examples[edit]
[[Category:Help]]
would list this page in Category:Help, but[[:Category:Help]]
will produce a link toCategory:Help.[[File:Wikipedia-logo.png]]
would display an image, but[[:File:Wikipedia-logo.png]]
will produce a link toFile:Wikipedia-logo.png.[[pt:Internet]]
will create aninterlanguage link,but[[:pt:Internet]]
will produce an interwiki link topt:Internet(in the Portuguese Wikipedia).[[//Hus]]
will produce an (invalid) external link wrapped in brackets ( "[[1]] "), but[[://Hus]]
will produce a link to//Hus.[[Computer]]
links to theComputerarticle; adding a colon like[[:Computer]]
can be done, but the colon is unneeded and makes no difference.
With templates[edit]
A colon can also be used to transclude a page in mainspace, rather than template space. For example,{{The Beatles}}
will transcludeTemplate:The Beatles,but{{:The Beatles}}will transclude the mainspace articleThe Beatles.This is useful when the mainspace article has been specially formatted to be transcluded in other articles, by using <noinclude> or <includeonly> tags to indicate the portion that should be included when the article is transcluded.
With edit summaries[edit]
Normally, linking to auser pagein anedit summarysends a notification to the user. A colon can be used to escape this behaviour. For example, the edit summary "corrected typo by [[User:Example]]
"will pingUser:Example,but "corrected typo by [[:User:Example]]
"will not.