Template:Is redirect
| This template uses Lua: |
Returns yes when |1=somepagename is a redirect, and a <blank space> when not a redirect.
Usage
Do include the namespace.
- Main Page (expect neg):
{{is redirect|Main_Page}}→ - Mainpage (expect yes):
{{is redirect|Mainpage}}→
Can be used as:
{{#if:{{Is redirect|somepagename}} |value when yes |value when no}}
Template Data
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
TemplateData for Is redirect
Returns "yes" or <blank> (for no) for the pagename entered
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | no description | Unknown | optional |
See also
- {{no redirect}}, {{-r}}
- {{target of}} — returns the target of a redirect
- {{redirect}} — hatnote "Foo redirects here ..."