Template talk:Translatable template

From MediaWiki.org
Jump to navigation Jump to search

{{SUBPAGENAME}} is problematic since it depends on the namespace having subpages enabled. Titleparts doesn't have this problem. – Nikerabbit (talk) 07:05, 7 April 2012 (UTC)

Cf. translatewiki:Template:Langcat. Apart from that, couldn't this template be used for any translatable template rather than just navigation templates? Nemo 18:36, 8 April 2012 (UTC)
Sorry about this really late reply, saw the talk before but forgot about it again.
In this wiki it doesn't matter since subpages are enabled in all namespaces (I think), but using titleparts instead is a great suggestion since it would be valid everywhere.
@Nemo, it can be used for any template that doesn't require named parameters – if needed it could be extended to support X number of unnamed parameters, but if you have any named parameters it would become quite problematic. The name of the template should probably change though, I just couldn't think of any better non-cryptic name when I created it. Even though it doesn't support named parameters, do you think "Translatable template" is a good solution? Jsoby (talk) 09:15, 15 May 2012 (UTC)

Adding tnt to my wiki[edit]

How could I add tnt and tntn support to my wiki? I've created tnt template with code from this wiki and module for that. So now it shows only default lang template instead of use its translated version.


Template:Extension does not work if the namespace= parameter is specified. For example, see Extension:MultimediaViewer.

|name      = Test
|status    = stable
|namespace = main

Result: Extension

--Shirayuki (talk) 20:53, 10 August 2015 (UTC)

Yes Done by renaming "namespace" to "tntns"! --Shirayuki (talk) 02:41, 19 December 2015 (UTC)

Breaks Special:TemplateSandbox[edit]

Templates included via TNT cannot be mocked by TemplateSandbox. I created User:Tgr_(WMF)/sandbox/hook_names/Template:TNT as a poor attempt of working around it. The template will look broken (the same way it would look without TNT) but will be properly replaced by the sandbox template. --Tgr (WMF) (talk) 16:43, 22 April 2016 (UTC)

Not working[edit]

I imported this template along with the module to an external wiki and when I transclude a template using this template, the translation tags are shown on pages where the template is shown. What am I missing? MacFan4000 (talk) 11:36, 30 August 2017 (UTC)