Template talk:Localized link
Latest comment: 9 months ago by Tacsipacsi in topic Mass linking to unexists subpages .../Page_display_title
Edit request
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please change {{pagelang2}}
in this template to {{PAGELANGUAGE}}
. Jon Harald Søby (talk) 14:41, 30 January 2022 (UTC)
Mass linking to unexists subpages .../Page_display_title
edit- Moved discussion from User_talk:Billinghurst
Good day, any idea on what to do to not link pages using {{LL}} to pages such this? --Min☠︎rax«¦talk¦» 07:57, 8 March 2024 (UTC)
- @Minorax: But it is just the use of LL? User groups (listed in the WLH) links to
[[Special:MyLanguage/Stewards|stewards]]
, and I am guessing that is related to mw:Display title / mw:Extension:display title. Cannot say that I am renowned in that space, though wonder whether there is something possible at Help:Magic_words#DISPLAYTITLE — billinghurst sDrewth 10:37, 9 March 2024 (UTC)- Eh, there is a
<tvar name="1">{{ll|Stewards}}</tvar>
in User groups so I suppose it's causing the page to link there. --Min☠︎rax«¦talk¦» 11:08, 9 March 2024 (UTC)- @Kaganer: Originally one of yours. Are you able to address this issue as it is an area where you have played way more than I. Are we missingthe use of the magic word? Thanks if you can. — billinghurst sDrewth 11:46, 9 March 2024 (UTC)
- Hm. Current code was added by @ExE Boss in 2021.
I need to think. Maybe this approach may be fully revolutionary changed today. I haven't watched this side for a long time. I'm also ping @Amire80 there.At first glance, the problem may be in the module:Template translation (called from {{TNTN}}).But magic word in this case also obviously suggests itself. Kaganer (talk) 17:35, 9 March 2024 (UTC)- The old version would also do that, the newer version copied from MediaWiki just has a fallback for when the title is not translated in the current page language. — ExE Boss (talk) 21:00, 10 March 2024 (UTC)
- @ExE Boss, In MediaWiki.org this is produced these same problem, see mw:Special:WhatLinksHere/Translations:Manual:Schema_changes/Page_display_title. Kaganer (talk) 08:45, 11 March 2024 (UTC)
- @ExE Boss: No, the culprit is indeed your edit:
- The phantom red link is added by Module:Template translation. Before your edit, the module wasn’t in use, so the old version couldn’t add it. I consider this extra link a feature when the module is used to translate regular templates (template usage can be found from Special:WhatLinksHere of the base template, not only of its /en subpage), but bloating backlinks of Translations-namespace pages that don’t, and shouldn’t, exist, is rather a bug.
- You say it adds a fallback. In fact, that part of the code is evaluated only if
Translations:Pagetitle/Page display title/{{PAGELANGUAGE}}
is known to exist, so the fallback will never be applied. And even if the existence check wasn’t there – Page display title in the source language is always the same as the page title itself, there’s no need to expensively transclude a page to get that.
- So why not replace
{{TNTN|$1}}
with$1/{{PAGELANGUAGE}}
(where $1 is that long code that determines the page name to transclude)? That would save us a lot of phantom red links and a lot of template/module calls. (Of course both here and on mediawiki.org.) —Tacsipacsi (talk) 18:44, 12 March 2024 (UTC)- Another way is to use {{Tunit}} but that adds an unnecessary amount of code. --Min☠︎rax«¦talk¦» 01:05, 16 March 2024 (UTC)
- {{Tunit}} simply ignores the translation unit content on English pages, which is not what we want here, so no, using it is not really a way. —Tacsipacsi (talk) 23:07, 16 March 2024 (UTC)
- Another way is to use {{Tunit}} but that adds an unnecessary amount of code. --Min☠︎rax«¦talk¦» 01:05, 16 March 2024 (UTC)
- @ExE Boss: No, the culprit is indeed your edit:
- Hm. Current code was added by @ExE Boss in 2021.
- @Kaganer: Originally one of yours. Are you able to address this issue as it is an area where you have played way more than I. Are we missingthe use of the magic word? Thanks if you can. — billinghurst sDrewth 11:46, 9 March 2024 (UTC)
- Eh, there is a