Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a245d7e7bfa519ef

Jump to content

Template:Is redirect/doc

From Wikipedia, the free encyclopedia

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

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

Talkpage handling

[edit]

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, Talk:Autism spectrum is not a redirect (it has content).
{{Is redirect}} returns:
{{Is redirect|Autism spectrum}} yes Green tick
{{Is redirect|Talk:Autism spectrum}} yes Question (unexpected for the talkpage itself)
Applying Talk:Autism:
{{Is redirect|Talk:Autism spectrum|talk=yes}} Green tick
Applying the subject page Autism:
{{Is redirect|Autism spectrum|talk=yes}} yes Green tick (|talk=yes for a subject page name checks the subject page, not the associated talk page)

Usage

[edit]

Can be used as:

{{#if:{{Is redirect|somepagename}} |value when yes |value when no}}

Template Data

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Is redirect in articles based on its TemplateData.

TemplateData for Is redirect

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

Template parameters

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
Check Talktalk

By default, the subject page is checked

Default
no
Booleanoptional

See also

[edit]