Template:Is redirect/doc
< Template:Is redirect
Jump to navigation
Jump to search
Revision as of 13:37, 13 March 2022 by Wikipedia>DePiep (→Template Data)
This is a documentation subpage for Template:Is redirect. It contains usage information, categories and other content that is not part of the original template page. |
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 ..."