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