Template talk:PDT

From Wikidata
Jump to navigation Jump to search

{{edit request}}

This template is not fully compatible with the pages localized with the translation extension. In these pages localized name for target page should be displayed in the "content language", but not in the "user language". See as example Wikidata:Glossary.

If relevant translation is not exist, then by default may be two alternate solution:

  1. usinf {{int:Lang}} for displayed pagename in user interface firstly, if nothing - in English
  2. English version in any cases.

My choice - second.

For using in other pages (discussion portals with translatable headers, as Wikidata:Requests for deletions etc.) may be kept current mode.

Proposed code is Template:PDT/sandbox.

Examples for use cases:

  1. Default case 1 (untranslatable page linked to translatable page; no changes):
    • {{PDT|Help:Aliases}} >> Help:Aliases
    • {{PDT/sandbox|Help:Aliases}} >> Help:Aliases
  2. Default case 2 (untranslatable page linked to untranslatable page; no changes):
    • {{PDT|Wikidata:Project chat}} >> Wikidata:Project chat
    • {{PDT/sandbox|Wikidata:Project chat}} >> Wikidata:Project chat
  3. Case 1: translatable page linked to translatable page - see in Template:PDT/sandbox/ru
  4. Case 2: translatable page linked to untranslatable page - is these same, that "Default case 2" (see two links above)

--Kaganer (talk) 18:38, 12 January 2018 (UTC)[reply]

@Kaganer I'm closing this as  Not done, since this is a quite old request. If it is still needed, please re-apply the {{Edit request}} template. Thank you for your understanding. Martin Urbanec (talk) 15:50, 24 December 2021 (UTC)[reply]
@Martin Urbanec - Nothing has changed since then. Everything I wrote is still relevant. It’s a sadly that no one but me seems to be interested in this. Kaganer (talk) 22:49, 24 December 2021 (UTC)[reply]
@Kaganer In that case, let's look at the merit of the request. To be honest, I don't understand your intention. The PDT template is mainly used as a service template from {{Ll}}, which uses it as a default description of a link (if none is passed directly). Implementing your changes now would mean {{Ll}} will significantly change its behavior.
If we wanted to just always use the English label, there is no need to use any PDT template at all -- in case the display title in user language does not exist, it merely returns its argument in verbatim, without doing anything. In other words, we could very well just delete it as unnecessary.
Could you clarify that, please? Martin Urbanec (talk) 23:05, 24 December 2021 (UTC)[reply]
General purpose - for all cases, when pagelanguage is not equal of sitelanguage (Help: etc.), localized label should be displayed in the "page content language", rather than the "user language". On Meta-wiki these functions was implemented in the {{Ll}} directly. IMHO, separation to two different termplates may be eliminated in the mostly cases. Kaganer (talk) 00:56, 25 December 2021 (UTC)[reply]
In any way, I'd prefer having consensus prior to changing behavior of a template used 17k+ times. --Martin Urbanec (talk) 23:06, 24 December 2021 (UTC)[reply]
Since {{Ll}} would still link to the page in user language, it would be a much clearer solution not to use it at all, but import Template:Page language link (Q96276997) from Commons. That template uses the page language for both the link target and the default link text. —Tacsipacsi (talk) 23:24, 24 December 2021 (UTC)[reply]
Yes, this Commons' template would be more suitable. Kaganer (talk) 01:00, 25 December 2021 (UTC)[reply]