Template:Redirect other/doc
This is a documentation subpage for Template:Redirect other. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This template determines whether the page it is used on is a redirect or not. If it is used on a redirect, it returns its first parameter. Otherwise, it returns its second parameter. Either could be absent or empty.
For example:
{{Redirect other|yes|no}}
will display yes
on a redirect and no
on a non-redirect (test: on this page, it says "no");
{{Redirect other|text}}
will display text
on a non-redirect, and nothing on a redirect (test: on this page, it says "text");
{{Redirect other|text}}
will display text
on a redirect, and nothing on a non-redirect (test: on this page, it says "").
Remember to place a "1=" and/or "2=" prefix on the arguments if they contain equals signs.
TemplateData
[edit]Displays different content based on whether it is used on a redirect or not.
Parameter | Description | Type | Status | |
---|---|---|---|---|
On redirect | 1 | The text that's shown when the template is used on a redirect. | Unbalanced wikitext | optional |
On non-redirect | 2 | The text that's shown when the template is used on a non-redirect. | Unbalanced wikitext | optional |