Jump to content

Community Wishlist/Wishes/Native support for alternative section anchors

From Meta, a Wikimedia project coordination wiki
Native support for alternative section anchors Submitted

Edit wish Discuss this wish

Description

In order to create shorthand or stable links to sections, editors create fragment IDs (aka anchors) that point to sections that differ from the visible headings. This can be done using {{anchor}}, as in == {{anchor|Anchor}} Heading ==, or its substituted form, == <span id="Anchor"></span> Heading ==, but the first results in bad section links—as in /* {{anchor|Anchor}} Heading */, which shows up as →{{anchor|Anchor}} Heading—while the second is less self-evident as to what it's for, especially to newcomers. Another solution is to put the {{anchor}} or ‎<span>...‎</span> at the end of the previous section, but this doesn't show up when editing the section (and shows up at the end when editing the previous), which is quite confusing.

Previous wishlist surveys: 2022

Assigned focus area

Unassigned.

Type of wish

Feature request

All projects

Affected users

Editors

Other details

  • Created: 08:12, 21 August 2024 (UTC)
  • Last updated: 19:07, 3 February 2025 (UTC)
  • Author: Nardog (talk)