Template:Translatable template

(Redirected from Template:TNT)
Documentation icon Template documentation[view · edit · history · purge ]

Purpose

This template is used to show translatable static templates (templates without parameters) in the language of the current page. Templates, like all other MediaWiki pages, can be translated using the Translate extension, which creates subpages with the form "pagename/language code". The template first checks if the name of the page contains a language code. If it does, it then checks if the template name given as a first parameter has a translation in that language. If the page name does not contain a language code, or if the navigation template doesn't exist in that language, it will display the English template.

How to use

  • {{Translatable template|name of navigation template}}
  • {{TNT|name of navigation template}}
  • {{tnt|name of navigation template}}

Example (from Wikidata:Administrator):

{{Translatable template|User groups}} or {{TNT|User groups}}

which includes translated versions of {{User groups}} if it exists, or the English version if translations don't exist.

Parameters

This template may include of three unnamed parameters, whose values will be transferred into called navigational template. Example with one paremeters (from meta:Global sysops):

  • {{TNT|:Special global permissions/Seealso|Global sysops}}

where "Global sysops" - is value of first unnamed parameter, transferred into called page meta:Special global permissions/Seealso.

See also