Template:Is redirect/doc

Returns  when somepagename is a redirect, and a &lt;blank space> when not a redirect.

For illustration purposes, in this documentation redirect pages are in italics: Mainpage &rarr; Main_Page


 * Expect 'yes':  &rarr;
 * Expect '&lt;blank>' (no):  &rarr;

Talkpage handling
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.).
 * To check the talkpage itself, both use yes and the talk page name.
 * &rarr;

Background. By default, when entering a Talkpage to check (like Talk:Autism), the check is performed on the subject page. This stems from the module used. For example:
 * Page to check: Talk:Autism:
 * Current pages status: Autism is a redirect, Talk:Autism is not a redirect (it has content).
 * returns:
 * &rarr; ✅
 * &rarr;  (unexpected for the talkpage itself)
 * Applying Talk:Autism:
 * &rarr; ✅
 * Applying the súbject page Autism:
 * &rarr; ✅ (yes for a súbject page name checks the subject page, not the associated talk page)

Usage

 * Main_Page (expect neg):  &rarr;
 * Mainpage (expect yes):  &rarr;

Can be used as:

Template Data
{	"params": { "1": {},		"talk": { "label": "Check Talk", "description": "By default, the subject page is checked", "type": "boolean", "default": "no" }	},	"description": "Returns \"yes\" or (for no) for the pagename entered" }