Template:Template names

From Terraria Wiki
Jump to navigation Jump to search
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 Documentation The documentation below is transcluded from Template:Template names/doc. (edit | history)

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 }}

ParameterDescriptionTypeStatus
Template name1
The name of the template, the alternative names of which must be specified.
Example:
Template:Template names
Auto value:
{{FULLPAGENAME}}
Template
optional
output as inline textinline
Do not start a new paragraph for the template outputs text.
Default:
false
Example:
yes
Boolean
optional

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.

The "template: exclusive icon link" template has several names: eil and exclusive icon link, each of which can be used.

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

The "Template:exclusive icon link" template has several names: eil and exclusive icon link, each of which can be used.

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. The "template: exclusive icon link" template has several names: eil and exclusive icon link, each of which can be used. Another text. A new paragraph starts only at the beginning