Template:Anchor/Doc

From ISFDB
Jump to navigation Jump to search

Purpose

This template is designed to insert a manual anchor into a wiki page so that a link may go to a specific point in the page other than a section header. (An "automatic" anchor is proved at every section header, see Help:Link#Linking to anchors)

An anchor may have anchor text. If it does, the anchor text created by this template is displayed in LightSeaGreen

Parameters

  • id= This must specify the anchor ID. The ID should be unique within a wiki page, and is the string which will be used in the link, like "Linking to anchors" in Help:Link#Linking to anchors). It must not be empty.
The id parameter may be replaced by the first unnamed parameter.
  • txt= The text to display at the anchor. May be empty or omitted for a hidden anchor.
If the ID was given with an unnamed parameter, this may be given with a 2nd unnamed parameter.

Examples

Visible Anchors

{{Anchor|id=Anchor1|txt=No. 1}}

gives

No. 1



{{Anchor|Anchor2|No. 2}}

gives

No. 2

Hidden Anchors

{{Anchor|id=Anchor3}}

gives


{{Anchor|Anchor4}}

gives

Links to the example anchors