Terraria Wiki

  • Discussions are now available on the Terraria Wiki.
  • Miss the old Hydra Skin? Try out our Hydralize gadget! Visit the preferences page while logged in and turn on the gadget.

READ MORE

Terraria Wiki
Advertisement
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Template-info Documentation The documentation below is transcluded from Template:Anchor/doc. (edit | history)

Use this template to create an HTML anchor at a point on a page. Anchors allow linking to a specific line on a page, which the client browser will automatically scroll to.

Rules for creating an anchor name

  • The anchor name can contain letters ([A-Za-z]), digits ([0-9]), hyphens (-), underscores (_), colons (:), and periods (.).
    • Any other character will be automatically encoded; use {{anchorencode:string}} to see how an anchor name will be encoded. Example encodings: 's -> .27s, ! -> .21, äu -> .C3.A4u.
      • Links to these anchors do not need special treatment, follow the example at Linking to anchors.
  • Each anchor name must be unique within the page.

Usage

{{ anchor | <anchor name> | toc = 1–6/y/yes (optional) }}

First unnamed parameter

Name of the anchor.

toc

If this parameter is set, an invisible heading will be added, for linking from the table of contents. The level of the heading can be passed as the parameter's value (1 through 6); it will default to 3 if anything else is passed.

Linking to anchors

Once an anchor is created, a link can be directed to it by adding a # symbol to the page name, followed by the anchor name, e.g. [[Page name#Anchor name]]

Example:


Advertisement