Template:Translatable navigation template

From Wikimedia Commons, the free media repository
(Redirected from Template:TNT)
Jump to: navigation, search
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Translatable navigation template/doc.

Shortcut: {{TNT}}· {{tnt}}

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.


Help for choosing the right template for your use case:

Criterion \\ Template {{Multilingual description}} {{en}}{{fr}} {{LangSwitch}} {{Autotranslate}} {{TNT}}
Requires JavaScript enabled for folding + + - - -
Folding can be disabled by user + + - - -
Folding is done server-side - - + + +
Folding when at least x languages are provided 1 4 1 1 1
Collation order of languages (when not folded) Latin, Latin or Cyrillic, Cyrillic, Greek, Other simple LTR alphabets, Indic, Other South Asian, Syllabaries, Hangul, Japanese scripts, Sinograms, (RTL) Hebrew, (RTL) Arabic languages as provided by the user in the wikitext // // //
Search indexing issues - - + partially (where used; language subpages of templates are indexed) -
Recommended use at categories, galleries file description pages small templates, whenever the previous options are not suitable larger templates when used on pages that do not have language subpages (e.g. not having Main page/en, Main page/de) and where the language displayed will be automatically determined by the language set in user preferences larger templates when used on pages that do have language subpages; most of the time these will be pages prepared with the Translate Extension
Contains expensive parser functions - - - + +

How to use

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

Example (from Commons:Privacy policy):

{{Translatable navigation template|Commons policies and guidelines}} or {{TNT|Commons policies and guidelines}}

which includes translated versions of {{Commons policies and guidelines}} 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.

Dependency

See also