Template:Template names

来自Terraria Wiki
跳到导航 跳到搜索
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Template names/l10n for the localization of this template.
Template-info.svg 文档 以下文档来自Template:Template names/doc。(编辑 | 历史

Adds text that lists all names of a given template if it has multiple names, otherwise does nothing.

Template lists all redirect templates for the specified template. This means that it does not list double redirects and pages that the specified template redirects to.

Usage

{{ template names | <template name> | inline = 0/1 }}

参数描述类型状态
Template name1
The name of the template, the alternative names of which must be specified.
示例:
Template:Template names
自动值:
{{FULLPAGENAME}}
模板
可选
output as inline textinline
Do not start a new paragraph for the template outputs text.
默认值:
false
示例:
yes
布尔值
可选

Examples

Code Result Note
{{ template names }}
Returns the result for the current page
Some text. {{ template names | template: exclusive icon link }} Another text.
Some text.

“template: exclusive icon link”模板有多个名字:eilexclusive icon link,可任选其一使用。

Another text.
By default starts a new paragraph
Some text. {{ template names | exclusive icon link }} Another text.
Some text.

“Template:exclusive icon link”模板有多个名字:eilexclusive icon link,可任选其一使用。

Another text.
If the first parameter is without namespace, "template:" will be used.
Some text. {{ template names | template: exclusive icon link | inline = y }} Another text.
Some text. “template: exclusive icon link”模板有多个名字:eilexclusive icon link,可任选其一使用。 Another text. A new paragraph starts only at the beginning