Page MenuHomePhabricator

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


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

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.

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 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!)