Author: happy.melon.wiki
Description:
We have a number of different types of links that the parser can generate, which are rendered with different classes:
*[[foo|internal link]] --> <a>
*[[meta:Foo|interwiki link]] --> <a class="extiw">
*[[:Fr:Foo|inline interlanguage]] --> <a class="extiw">
*[[google:Foo|external interwiki]] --> <a class="extiw">
*[http://www.google.com external] --> <a class="external text">
There is no distinction between 'local' interwikis or interlanguage links, and 'nonlocal' interwikis. It would be nice if this were the case. That is, it would be nice if, eg:
*[[foo|internal link]] --> <a class="internal">
*[[meta:Foo|interwiki link]] --> <a class="internal extiw">
*[[:Fr:Foo|inline interlanguage]] --> <a class="internal extiw">
*[[google:Foo|external interwiki]] --> <a class="external extiw">
*[http://www.google.com external] --> <a class="external text">
Repurposing the then-somewhat-obscurely-named "extiw" class to indicate the interwiki origin of the link, rather than its nature as a 'local' or 'nonlocal' link.
This could be tricky because, as far as I can tell (and as the quip from Tim at the top of the screen occasionaly indicates) the evil mess of code in Parser::replaceInternalLinks() doesn't really do anything, it's just cover for the imps that actually do the link processing :D
Version: 1.15.x
Severity: enhancement