Currently, this function is worked for currrent page only:
called as {{#translation:}} and is returned "/code", if page is translation, or empty string otherwise.
Proposed update for ability to using this function for specified target page, as {{#translation:pagename}} or {{#translation:namespace:pagename}}.
This will be useful for eliminate widely used templates {{ifTranslation}}/{{ifNotTranslation}}, {{TNT}}/{{TNTN}} and {{Ll}}.
Taret result for my proposal:
- if current page is translation, and {{#translation:}} is returned "/code", then {{#translation:pagename}} should be return "pagename/code" (if this page is exist) or "pagename" otherwise;
- if current page is _not_ a translation, and {{#translation:}} is returned empty result, {{#translation:pagename}} should be return "pagename"
Note: maybe this should be separate magic word, as '#tlink' or '#tl' (or simple create these short aliases for this function)?
Version: unspecified
Severity: enhancement
See also: T47096: Add a way to transclude template or other page in the correct language of which this is one proposed solution