Template talk:Localized link

From MediaWiki.org
Jump to navigation Jump to search

Unlocalized link[edit]

As a possible workaround for the problem of Special:MyLanguage not properly tracking backlinks, I've added an invisible unlocalized link. I'm not particularly familiar with the intricacies of translation, though, so if that starts popping up redlinks all over the place, it should be reverted or modified as needed. Robin Hood  (talk) 23:32, 15 August 2015 (UTC)

@RobinHood70: If {{{1}}} is a category e.g. Category:Extension, this template wrongly adds all translation pages into the category. --Shirayuki (talk) 03:48, 23 August 2015 (UTC)
Thanks. I put a leading colon into the link, which I believe should work in all namespaces, even if it's only officially used for categories and files. If that creates any additional issues, let me know and I'll put in proper namespace checking. Robin Hood  (talk) 13:26, 23 August 2015 (UTC)

The link "Help:Talk pages" strangely doesn't work with this template[edit]

Fixed

At Help:Contents#Editing, I noticed a broken link, which should look like:

but looked like:

  • [[Special:MyLanguage/Help:Talk pages|]]

which was the result of the code {{ll|Help:Talk pages|nsp=0}}, which works fine for other links, but mysteriously not for Help:Talk pages.

I first used the workaround of linking to a redirect to fix the link:

  • {{ll|Help:Talk page|2=Talk pages}}

Then I tried a leading colon:

  • {{ll|:Help:Talk pages|nsp=0}}

which works. --Pipetricker (talk) 14:10, 1 February 2018 (UTC)

The problem is the template trying to get the translation of the "Page display title" of the target page, which was blank because of a IP edit, causing the link to end in the "pipe trick", which only works when not used in a template. --Ciencia Al Poder (talk) 10:55, 2 February 2018 (UTC)
Thanks. Of course it had to do with the translation system, which I'm largely clueless about. --Pipetricker (talk) 12:28, 2 February 2018 (UTC)