Jump to content

Native support for alternative section anchors (Community Wishlist/W260)

Long-term opportunity
From Meta, a Wikimedia project coordination wiki

View all wishes.

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
Tags
Affected users

Editors

Phabricator tasks
Other details
  • Created: 08:12, 21 August 2024
  • Last updated: 02:04, 11 October 2025
  • Author: Nardog (talk)
Voting

This wish currently has 0 supporters. Voting for this wish is open until it is completed.