Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  



























Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Examples  





2 With templates  





3 With edit summaries  














Help:Colon trick






فارسی


Simple English
Türkçe

 

Edit links
 









Help page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 


















From Wikipedia, the free encyclopedia
 


The colon trick is a method of providing a link to a category, imageorinterwiki link without adding the page to the category, displaying the image or adding the interwiki link to the interlanguage links. It also allows for linking to pages with titles beginning with a recognized external link prefix, such as http://or//Hus.

By adding a colon just inside the opening double square brackets of the link, the default behaviour of the MediaWiki software will be bypassed. It will appear as a conventional wikilink.

Examples[edit]

With templates[edit]

A colon can also be used to transclude a page in mainspace, rather than template space. For example, {{The Beatles}} will transclude Template:The Beatles, but {{:The Beatles}} will transclude the mainspace article The 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 a user page in an edit summary sends 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 ping User:Example, but『corrected typo by [[:User:Example]]』will not.


Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Colon_trick&oldid=1176420041"

Categories: 
Wikipedia how-to
Wikipedia link help
 



This page was last edited on 21 September 2023, at 16:29 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; 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

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki