Jump to content

Template:Anchor

From Wikibase
Revision as of 05:53, 18 October 2026 by SeedBot (talk | contribs) (Create a minimal anchor template (no ParserFunctions on this wiki, so single-anchor form) (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage: {{anchor|Anchor_name}} creates the link target #Anchor_name on the current page.

Use it for sections whose generated heading anchor cannot be linked to, for example a heading containing math: { and } are illegal in page titles, so [[Page#Heading_with_$\mathcal{S}_{n}$]] is never parsed as a link. The same applies to # < > [ ] |.

Place the call at the start of the section body on the same line as the text; a call alone on its own line produces an empty paragraph.

The anchor must not contain spaces or any of # < > [ ] | { }. Call the template once per anchor.