From FamilySearch Wiki
Revision as of 05:47, 24 September 2013 by Parrisl (talk | contribs) (No wiki)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In the HTML code for each section there is an anchor HTML element "a" with both "name" and "id" attributes holding the section title. This enables linking directly to sections. These section anchors are automatically used by MediaWiki when it generates a table of contents (TOC) for the page, and therefore when a section heading in the TOC is clicked, it will jump to the section.

Manually Linking to Anchors

Also, the section anchors can be manually linked directly to one section within a page. The HTML code generated at the beginning of this section, for example, is: <a name="Manually Linking to Anchors" id="Manually Linking to Anchors">

Manually Linking to Anchors

A link to this section (Manually Linking to Anchors) looks like this:  [[Help:Section#Manually_Linking_to_Anchors|Manually Linking to Anchors]]

and displays like this:  Manually Linking to Anchors

To link to a section in the same page you can use:   [[#section_name|displayed text]],

and to link to a section in another page:  [[Page name#section_name|displayed text]].