memory alpha
Template documentation ()

Usage

{{Visible anchor}}, or its plural alias {{Visible anchors}}, will insert one or more HTML anchors in a page at the location of its invocation, enabling direct #Links to this location. Unlike {{Anchor}} and {{Anchors}}, the first parameter will be visible text on the page. See the "Usage details" section for an example.

Linking

After adding the {{Visible anchor}} template to a page, you can have links sent directly to the line you marked:

Usage details

Code
Before{{Visible anchors|Foo|Bar & Baz|Three}}After
yields
BeforeFooAfter


The template also works for adding aliases directly inside a heading:

Code
==={{Visible anchors|Notes|Details}}===
yields
(see heading below)

Notes

Known bug

/* Notes {{Visible anchors|Notes|Details}} */
This is inconsequential for your edit, but can be inconvenient for your edit summary when there are many long anchor names. You can however edit it out to just:
/* Notes */... your normal thorough edit summary
This bug can't be helped in the template itself. It is hoped, not promised, that a future version of the MediaWiki software will skip template calls in headings for section-edit summaries.

Anchor names

Technical

See also