Page MenuHomePhabricator

Implement magic link functionality as an extension
Open, MediumPublic

Description

I believe there's a proof of concept of this already floating around.

But it would be nice to follow up T145604: RFC: Future of magic links by not just setting the configuration var to false on WMF wikis but actually pulling support for magic links out of core and moving it to an extension.

I believe there's a proof of concept of this already floating around for the legacy parser, using an existing hook.

It would be a useful demonstration of the Parsoid extension API's DOM post-processing/pre-processing stages as well, and so may be worth putting on a roadmap as part of T248342: Parsoid Extension API for MediaWiki 1.36. Not committing to this, of course.

Event Timeline

ssastry triaged this task as Medium priority.May 6 2020, 8:19 PM
ssastry moved this task from Needs Triage to Feature requests on the Parsoid board.

This would be extremely nice if wikis were able to configure the magic links in order to create their own use-cases for them if so desired. For example, WikiLaw could use that extension to automatically generate links in citations to different legal codes.

I would also like to see Special:BookSources get moved out of core to an Extension:ISBN that provides a Special:ISBN (with a Special:BookSources alias) for things like T148274: Implement a convenient way to link to ISBNs without magic links.