模板: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 name | 1 | The name of the template, the alternative names of which must be specified.
| 模板 | 可选 |
output as inline text | inline | Do not start a new paragraph for the template outputs text.
| 布尔 | 可选 |
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”模板有多个名字: |
By default starts a new paragraph |
Some text. {{ template names | exclusive icon link }} Another text. |
Some text. “Template:exclusive icon link”模板有多个名字: |
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”模板有多个名字:eil 和exclusive icon link ,可任选其一使用。 Another text.
|
A new paragraph starts only at the beginning |