Template:Internal anchor link/doc

From Wikisource
Jump to navigation Jump to search

This template is intended to provide convenient links to anchors within a body of text.

Three unnamed parameters are used:

  1. Provides the page name of the target (preferably relative Wikilinks)
  2. Provides an anchor within the document, and by default is the text shown for the link
  3. If specified, gives an alternate text for the link

Example:

{{int|Wikisource:Style guide|Wikilinks}}

produces Wikilinks.

Note: at the moment it seems capitalization is required for the anchor to function (if the section header or "id=" attribute is capitalized); the third parameter offers a clumsy workaround for this.