Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Help:Link
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Specifics=== When a link contains a section title (as in the examples above), the title actually points to an HTML ''[[HTML element#Anchor |anchor]]'' on the target page. In addition to anchors created automatically by section titles, there are times when it's advantageous to create an anchor on a smaller unit of text, such as a specific paragraph (see {{section link ||Linking to part of a section}} below). This can be done using {{tl2|Anchor|anchor name}}, or alternatively, the [[HTML]] code {{nowrap|<code><nowiki><span id="anchor name">...</span></nowiki></code>}} (see {{tl|Anchor}} syntax). Anchors are also used when renaming a section, yet still allowing links to the old name to function, or similarly, allowing linking to a section using an abbreviation; see [[MOS:HEADINGS]] for more info. Links to anchors can also be added to external URLs and to interwiki links, again using the <code>#</code> syntax. Section links still work through page names that are [[Help:Redirect|redirects]]. For example, if [[Danzig]] redirects to [[Gdańsk]], then [[Danzig#History]] will link to the "History" section of the article Gdańsk. It is also possible for the target of a redirect to be defined as a specific section or anchor of a page (these work only if JavaScript is enabled). Indeed, [[MOS:SECTLINK |according to the Manual of Style]], it may be preferable to define such redirects, and use them when linking to those sections/anchors, rather than linking using the {{nowrap |<code><nowiki>[[Page name#Section or anchor name|displayed text]]</nowiki></code>}} or {{nowrap |<code><nowiki>{{Section link|Page name|Section name}}</nowiki></code>}} syntax. This way, if the section or anchored text later becomes its own article, links via the redirect won't need to be rewritten. For example, [[Wikipedia:Section link]] redirects specifically to the section [[Help:Link#Section linking (anchors)]] on this page. A quirk of the way this works is that if one were to add a section name when using such a link, it would override the section specified by the redirect. So [[Wikipedia:Section link#Interwiki links]] would go to the "Interwiki links" section of this page. Such overriding of section redirects should be avoided. The {{tl|Visible anchor}} template can be used to create {{visible anchor|Visible anchor example|text=an anchor that is highlighted when is linked to}} ([[#Visible anchor example|click here for an example]]). The template's first parameter will be used as both the anchor and the display text ({{para|text}} can be used to provide different display text).
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)