This template is used on approximately 304,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Preview message: Transclusion count updated automatically (see documentation). |
This template uses Lua: |
Returns yes
when |1=somepagename
is a redirect, and a <blank space> when not a redirect.
For illustration purposes, in this documentation redirect pages are in italics: Mainpage → Main_Page
{{Is redirect|Autism spectrum}}
→ yes{{Is redirect|Autism}}
→By default, a check specifying a talk page is performed on the corresponding subject page (it's associated page in mainspace, or in Template space, etc.).
|talk=yes
and the talk page name.{{Is redirect|Talk:Autism spectrum|talk=yes}}
→Background. By default, when entering a Talkpage to check (like Talk:Autism spectrum
), the check is performed on the subject page. This stems from the module used. For example:
Talk:Autism spectrum
: {{Is redirect|Talk:Autism spectrum}}
{{Is redirect}}
returns:
{{Is redirect|Autism spectrum}}
→ yes {{Is redirect|Talk:Autism spectrum}}
→ yes (unexpected for the talkpage itself)Talk:Autism
:{{Is redirect|Talk:Autism spectrum|talk=yes}}
→ Autism
:{{Is redirect|Autism spectrum|talk=yes}}
→ yes (|talk=yes
for a subject page name checks the subject page, not the associated talk page){{is redirect|Main_Page}}
→{{is redirect|Mainpage}}
→ yesCan be used as:
{{#if:{{Is redirect|somepagename}} |value when yes |value when no}}
TemplateData for Is redirect
Returns "yes" or <blank> (for no) for the pagename entered
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | no description | Unknown | optional |
Check Talk | talk | By default, the subject page is checked
| Boolean | optional |