模板: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 |