Template:Translatable template: Difference between revisions

Template page
m (1 revision imported)
(No difference)

Revision as of 19:53, 17 March 2020

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Translatable template/doc. Changes can be proposed in the talk page.

{{Translatable template}} is a heavily used template which allows us to do two things. 1. Show a localized version of a template if available 2. Have 1 overhead template that can be used by DPL to display information from various templates into 1 table.

TemplateData

Translates a template.

Template parameters

ParameterDescriptionTypeStatus
Template name1

Name of the template to be translated.

Templaterequired
Languageuselang

Language in which the template will be translated.

Default
language of the current page
Stringoptional
tntnstntns

Specify another namespace from which the translatable pagename will be transcluded, instead of referencing the page name from the default :Template: namespace.

Unknownoptional
templatetemplate

Name of template to find translated version of. When 'noshift=1' is also present, this parameter will be used instead of $1 to lookup the template in the user's selected language.

Page nameoptional
noshiftnoshift

Disable default behavior of shifting numbered parameters down by one position. 'template' must also be used if this is enabled.

Booleanoptional
sandboxsandbox

no description

Unknownoptional

See also

🍪 We use cookies to keep session information to provide you a better experience.