Template:Template names
Jump to navigation
Jump to search
Documentation The documentation below is transcluded from Template:Template names/doc. (edit | history)
[purge]
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 }}
Parameter | Description | Type | Status | |
---|---|---|---|---|
Template name | 1 | The name of the template, the alternative names of which must be specified.
| Template | optional |
output as inline text | inline | Do not start a new paragraph for the template outputs text.
| 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: |
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: |
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 |