{{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 name | 1 | Name of the template to be translated. | 模板 | 必需 |
Language | uselang | Language in which the template will be translated.
| 字符串 | 可选 |
tntns | tntns | Specify another namespace from which the translatable pagename will be transcluded, instead of referencing the page name from the default :Template: namespace. | 未知 | 可选 |
template | template | 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. | 页面名称 | 可选 |
noshift | noshift | Disable default behavior of shifting numbered parameters down by one position. 'template' must also be used if this is enabled. | 布尔 | 可选 |
sandbox | sandbox | 无描述 | 未知 | 可选 |
See also