Wikipedia:Tip of the day/August 26, 2007

How to link to a section of an article

Sometimes it is necessary to refer to a specific section of a page when linking, rather than the whole page.

You can create a link to any subheading on any page in Wikipedia by including a # character followed by the subheading at the end of a link. For example:

Wikipedia:Community Portal#Things to do.

In all section links, be sure to use a piped link for readability, like this:

:[[Wikipedia:Community Portal#Things to do|Things to do]]

which looks like this:

Things to do

If a section title changes, rather than go red/inactive, the link will lead to the top of the linked page. Keep in mind that redirects do not follow section links, making it useless to include them there.

Prior tip - Next tip