Jump to content

대체 섹션 앵커에 대한 기본 지원 (Community Wishlist/W260/ko)

Long-term opportunity
From Meta, a Wikimedia project coordination wiki
This page is a translated version of the page Community Wishlist/W260 and the translation is 100% complete.

View all wishes.

Description

편집자는 섹션에 대한 약식 또는 고정 링크를 만들기 위해 보이는 제목과 다른 섹션을 가리키는 프래그먼트 ID(앵커라고도 함)를 생성합니다.

이 작업은 {{anchor}}을 사용하여 == {{anchor|Anchor}} Heading ==와 같이 수행하거나, 그 대체 형태인 == <span id="Anchor"></span> Heading ==을 사용하여 수행할 수 있지만, 첫 번째 방법은 /* {{anchor|Anchor}} Heading */처럼 섹션 링크가 잘못 표시되는 문제가 발생하고(예: →{{anchor|Anchor}} Heading로 표시됨), 두 번째 방법은 특히 신규 사용자에게 용도가 명확하지 않습니다.

또 다른 해결책은 {{anchor}} 또는 ‎<span>...‎</span>를 이전 섹션 끝에 추가하는 것이지만, 이렇게 하면 섹션을 편집할 때는 표시되지 않고 (이전 섹션을 편집할 때는 끝에 표시됨) 상당히 혼란스럽습니다.

섹션 제목 안에 프래그먼트 ID를 추가하는 방법이 필요한데, 이 방법은 1) 어떤 기능을 하는지 명확하게 전달하고 2) 섹션 링크에 영향을 주지 않아야 합니다.

예를 들어, {{#sectionanchor:Anchor name}}과 같은 파서 함수는 섹션 내부 어디에서든 사용할 수 있으며, 함수 호출 바로 앞에 있는 가장 가까운 Hn 요소의 맨 위에 <span id="Anchor_name"></span>를 추가(또는 삽입)하는 결과를 가져옵니다.

이전 위시리스트 설문 조사: 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: 00:22, 14 April 2026
  • Author: Nardog (talk)
Voting

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

Supporters of this wish
Support Nardog (talk) 08:12, 21 August 2024
Support Enwiki has a style rule called en:WP:ANCHORSUBST that is being applied everywhere right now. It fixes some accessibility, mobile, and edit summary issues with anchors, but results in extremely ugly, extremely verbose wikicode. Example diff. This wish would solve that. Novem Linguae (talk) 13:40, 14 December 2025
Support Yeah, that would be helpful, the current syntax is unreadable and unintuitive. Gawaon (talk) 14:33, 14 December 2025
Support Oh please, do something about section link rot, that's such a pain in the ass. When I see a section link in an article, I immediately suspect that it won't be working and really often end up being right. There should be an automatic mechanism in place to make sure anchor links don't break as the articles develop. This proposal seems to be a good one. JWBTH (talk) 15:00, 14 December 2025
Support Badly needed. With the source editor, the uninitiated may think they're seeing stray markup that doesn't belong on Wikipedia. Worse, with Visual Editor, the anchor doesn't appear at all and editing the header can delete the anchor, quite unknowingly (e.g. [1]). NebY (talk) 15:03, 17 December 2025
Support This would prevent a lot of problems. It would be great if it could work as JWBTH suggests. I followed a link here from Wikipedia talk:Manual of Style. (talk) 18:23, 14 December 2025 (UTC) SchreiberBike (talk) 18:25, 14 December 2025
Support Yes please! en:WP:ANCHORSUBST is so messy! FaviFake (talk) 18:28, 17 December 2025
Support Second @NebY and @JWBTH re: section anchor maintenance and link rot. Fixing section link rot would require additional tooling to flag edits that break incoming section links. Preimage (talk) 15:09, 30 January 2026
Support Absolutely. ANCHORSUBST is ugly. Let's get rid of that. HouseBlaster (talk) 06:46, 7 February 2026
Support Ticket about this in Phabricator GhostInTheMachine (talk) 16:40, 14 April 2026