Manual:$wgInterwikiMagic/en

Details
Treat language links as magic connectors (interlanguage links), not inline links. If  is set to true and   is set to false, interlanguage links (e.g. fr:La Foo) will show up in the sidebar.

An interwiki link is considered a language link if the interwiki prefix matches a MediaWiki language code, or if the prefix is present in.

On talk pages, interlanguage links are always parsed as inline links regardless of this setting.