Template:Anchor/doc

Revision as of 20:34, 10 May 2025 by Mango Stellaris (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page for Template:Anchor.
When it is viewed directly, links using variables may appear broken; do not replace these with hardcoded page names or URLs.

The {{anchor}} template can be used to manually create an anchor on a page out of any given text. For example, using {{anchor|DPS}} on the jargon page will allow other pages to link to [[jargon#DPS|DPS]]; the link will immediately jump to the definition of "DPS".

When used under sections headers, the offset parameter can be used to align it with the header anchor. For H2 headers, use -2em, and for H3 headers, use -1.5em. For example, {{anchor|Pre-FTL|offset=-2em}} was used under the pre-FTL section of the Jobs page.