Page MenuHomePhabricator

Interwiki link in the tamplate pages causes wrong interwiki link in the articles
Closed, InvalidPublicBUG REPORT

Description

Hello, I have noticed (https://en.wikipedia.org/w/index.php?title=Template:Languages_of_Switzerland&diff=946272656&oldid=888168862) that existence of an interwiki link in a template page, causes wrong interwiki link for *the language the interwiki link is pointing to it*, in other words it overrides the Wikidata interwiki link for that language, I don't know whether this problem is in the pages which use that template or the whole pages in the template, either the template is inserted in them or not, there is need to test it.

Steps to Reproduce:

  1. Add an interwiki link to a template page in en.wikipedia (preferred) the template I have linked to is the best case.
  1. Check the interwiki link for that language in the template pages. -- ~~~~

Event Timeline

Restricted Application added subscribers: Liuxinyu970226, Aklapper. · View Herald Transcript

This is correct behavior. If you don't want to overwrite interwiki in articles using template, move interwiki into <noinclude>

Marking as invalid. If you think this is still a bug, please explain in detail, what you expect and what is'going on instead.

Amire80 subscribed.

Just adjusting the project tags.

But I agree with @Dvorapa - this is not a bug. The way to fix it is to update the template. Templates shouldn't add interlanguage links at all.