Last modified: 2014-02-12 23:38:10 UTC
The Interwiki table currently requires the specification of the protocol. Instead, there should be an indication of whether the server at the destination supports HTTPS, and then the protocol should be selected dynamically, to match the protocol in use on the current page. If HTTPS is not indicated as being supported, then the Interwiki extension should fall back to HTTP by default. I tested this on MediaWiki 1.18.x, using the older version of Interwiki required for 1.18. I looked at the code changes, and didn't see anything recent that indicated protocol-relative URLs were implemented in newer versions. If I've overlooked it, apologies.
Looking here: https://www.mediawiki.org/wiki/Special:Interwiki It appears the extension already supports protocol relative URLs via MediaWiki's native handling, beginning with 1.18. I should have tested that. Maybe the included table should be updated with protocol relative URls for the projects that support HTTPS? I'll leave this open for now, since I think at least that much can be done. I'll also update the documentation for the extension.