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 Self-link to a section  





2 Suppression of self-links  





3 Indirect self links  





4 Related changes feature  





5 See also  














Help:Self link







 

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
 




In other projects  



Meta-Wiki
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

(Redirected from Wikipedia:SELFLINK)

Aself link is the use of a link code with the page itself as target. It does not produce an actual link, but a non-clickable bold text (the "self-link format"). However, with the preference setting "Link underlining", this text is underlined. This can be suppressed putting the following in your relevant personal css page:

.mw-selflink { text-decoration: none !important; }

Live examples (hence depending on your settings):

Self links are usually undesirable, except for:

Self-link to a section[edit]

A link to a section of the same article, even from the same section, does not produce bold text and works as a normal link. For example:

[[Help:Self link#Self-link to a section]]Help:Self link#Self-link to a section

Such links should usually be written without the page name:

[[#Self-link to a section]]#Self-link to a section

because this method does not cause the page to reload if the reader initially arrived at the page via a redirect, and is thus more efficient. A useful application is links from article leads or overview sections to detail sections buried deeper in the same article. An automatically generated table of contents has links to sections on the page.

Suppression of self-links[edit]

In some cases, such as with templates that are not navigation templates, and that are transcluded into several pages, self-links can be actively suppressed by enclosing the link within the template {{No self link}}.

Indirect self links[edit]

Anindirect self link is a link to a page that redirects back. In this case, the self-link feature does not work, even though the feature would be equally useful. This is demonstrated here:

When the prefix for the project itself is added (interwiki link style, but again linking to the page itself) the self-link feature does work, if the link has the same name as the ultimate target apart from the prefix. This is demonstrated here:

Related changes feature[edit]

A self link for use with the "Related changes" feature only works if the link is to an existing or non-existing section. If it cannot be made useful as a link to a section, use a piped link with a blank space as label, e.g. [[Wikipedia:Self link#x| ]], showing up as " ".

See also[edit]


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

Categories: 
Wikipedia how-to
Wikipedia glossary items
Wikipedia link help
 



This page was last edited on 14 May 2024, at 03:53 (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