Page MenuHomePhabricator

Generate Language-converted section anchors/ids
Open, Needs TriagePublic

Description

On MediaWiki, users are able to link to sections by using anchor/fragment links like [[Article#Section]]. This functionality, however, is seriously impaired on sites with LanguageConverter, as the parser only generates a section id attribute for the unconverted title. When editors want to link to sections on these wikis, they usually have to disable the conversion or peek into the raw wikitext to know what exactly they should write for #Section.

MediaWiki should probably generate ids for all (at least "major") variants defined for a wiki and put these invisible elements somewhere next to the <h2> (or h3, h4, etc.) Deduplication among variants for each title should be done, otherwise a simple == a == would be able to generate ids like a a_1 a_2 a_3 all by itself.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 20 2017, 8:56 PM
Arthur2e5 updated the task description. (Show Details)Mar 20 2017, 8:56 PM
Shizhao moved this task from Backlog to MediaWiki core on the Chinese-Sites board.Mar 27 2017, 3:31 AM
Arthur2e5 updated the task description. (Show Details)Apr 21 2017, 3:25 PM
cscott added a subscriber: cscott.Dec 14 2017, 8:49 PM
cscott claimed this task.Dec 14 2017, 9:09 PM
Amire80 moved this task from Untriaged to Script conversion on the I18n board.Feb 4 2018, 10:45 AM

Now that MW generates unescaped ids, it might be a bit easier for the LC to work with -- just match the ids somehow and create new empty span elements nearby.

Aklapper removed cscott as the assignee of this task.Jun 19 2020, 4:14 PM

This task has been assigned to the same task owner for more than two years. Resetting task assignee due to inactivity, to decrease task cookie-licking and to get a slightly more realistic overview of plans. Please feel free to assign this task to yourself again if you still realistically work or plan to work on this task - it would be welcome!

For tips how to manage individual work in Phabricator (noisy notifications, lists of task, etc.), see https://phabricator.wikimedia.org/T228575#6237124 for available options.
(For the records, two emails were sent to assignee addresses before resetting assignees. See T228575 for more info and for potential feedback. Thanks!)