قالب:Is redirect/doc

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: MainpageMain_Page

Expect 'yes': {{Is redirect|Autism spectrum}} → yes
Expect '<blank>' (no): {{Is redirect|Autism}}

Talkpage handling

By default, a check specifying a talk page is performed on the corresponding subject page (its associated page in mainspace, or in Template space, etc.).

To check the talkpage itself, both use |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:

Page to check: Talk:Autism spectrum: {{Is redirect|Talk:Autism spectrum}}
Current pages status: Autism spectrum is a redirect, نقاش:Autism spectrum is not a redirect (it has content).
{{Is redirect}} returns:
{{Is redirect|Autism spectrum}} → yes Green tickY
{{Is redirect|Talk:Autism spectrum}} → yes قالب:Question mark (unexpected for the talkpage itself)
Applying Talk:Autism:
{{Is redirect|Talk:Autism spectrum|talk=yes}}Green tickY
Applying the subject page Autism:
{{Is redirect|Autism spectrum|talk=yes}} → yes Green tickY (|talk=yes for a subject page name checks the subject page, not the associated talk page)

Usage

  • Main_Page (expect neg): {{is redirect|Main_Page}} → yes
  • 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 بيانات القالب documentation for this template used by المحرر المرئي وأدوات أخرى.

See the monthly error report for this template.

TemplateData for Is redirect

Returns "yes" or <blank> (for no) for the pagename entered

وسائط القالب

وسيطوصفنوعحالة
11

دون وصف

غير معروفاختياري
Check Talktalk

By default, the subject page is checked

غيابي
no
بوليانياختياري

See also