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 Usage  





2 Example  





3 See also  














Template:Short URL






العربية

مصرى


 

Edit links
 









Template
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
 




In other projects  



Wikidata
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


display text

This template is used in conjunction with m:Special:UrlShortener, which creates short urls that can redirect to any page hosted by the Wikimedia Foundation.

Example[edit]

Assume the url https://w.wiki/tR redirects to Template:Short URL/doc. Now {{short URL|tR}} creates tR, which links to the same place: here, the template's documentation page (not the template page where you likely are viewing the documentation from)

A second, optional parameter can be included to specify the display text; otherwise, it defaults to the redirect's code, in this case tR. Example:

{{short URL|tR|documentation}}

creates

documentation

See also[edit]


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Short_URL&oldid=921419786"

Category: 
Interwiki link templates
 



This page was last edited on 15 October 2019, at 16:59 (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