Help:Self link/de
Hinweis: Wenn Du diese Seite bearbeitest, stimmst Du zu, dass Dein Beitrag unter der [CC0] veröffentlicht wird. Mehr Informationen findest du auf der Public Domain Hilfeseite. |
A self link is a wikilink which targets the page where it is placed.
To avoid any confusion, a self-link is not clickable: the text is only bolded (but still represented as a <a>...</a>
tag[1]). If the preference to underline links is set, self links are still underlined, unless this is explicitly disabled by the following CSS:
.mw-selflink { text-decoration: none !important; }
Beispiele:
[[Help:Self link/de]]
ergibt Help:Self link/de[[Help:Self link/de]]abc
ergibt Help:Self link/deabc[[Help:Self link/de|abc]]
ergibt abc
Utility
In templates transcluded on several pages (typically navigational templates), a link can usefully become a self link when the template is transcluded on the link target page. This avoids the reader believing they will see another page when clicking on it.
Clickable self links
Some kinds of self links are clickable, because they are not a simple internal link with direct target.
Vollständige URL
If you use external link syntax, providing the full URL of the page, the link is always clickable.
z.B. [//www.mediawiki.org/wiki/Help:Self_link/de abc]
ergibt abc
Link to self redirection
If you link to a page which redirects to the current page, the link remains clickable and not bolded.
Link to a local section
If the target contains a fragment, even if the link targets the current section, it remains clickable and not bolded.
z.B. [[Help:Self link/de#Link to a local section]]
ergibt Help:Self link/de#Link to a local section.
References
- ↑ From 2017 change (developer task).