• Home
  • Random
  • Log in
  • Settings
  • About Safer nicotine wiki
  • Disclaimers
Safer nicotine wiki

Template:Is redirect

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 25,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:Pagetype

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}} →
Expect '<blank>' (no): {{Is redirect|Autism spectrum}} →

Contents

  • 1 Talkpage handling
  • 2 Usage
  • 3 Template Data
  • 4 See also

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 |talk=yes and the talk page name.
{{Is redirect|Talk:Autism|talk=yes}} →

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: {{Is redirect|Talk:Autism}}
Current pages status: Autism is a redirect, Talk:Autism is not a redirect (it has content).
{{Is redirect}} returns:
{{Is redirect|Autism}} → Green tickY
{{Is redirect|Talk:Autism}} → Question? (unexpected for the talkpage itself)
Applying Talk:Autism:
{{Is redirect|Talk:Autism|talk=yes}} → Green tickY
Applying the súbject page Autism:
{{Is redirect|Autism|talk=yes}} → Green tickY (|talk=yes for a súbject page name checks the subject page, not the associated talk page)

Usage

  • 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. 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[Edit template data]

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
Check Talktalk

By default, the subject page is checked

Default
no
Booleanoptional

See also

  • {{no redirect}}, {{-r}} — link to the redirect page itself, not its target
  • {{target of}} — returns the target of a redirect
  • {{redirect}} — hatnote "Foo redirects here ..."
  • {{Redirect and target}}
The above documentation is transcluded from Template:Is redirect/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://safernicotine.wiki/mediawiki/index.php?title=Template:Is_redirect&oldid=38193"
Last edited on 14 October 2025, at 01:45
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information

Languages

      This page is not available in other languages.

      Safer nicotine wiki
      • Creative Commons Attribution-ShareAlike
      • Powered by MediaWiki
      • Monitored by WikiApiary
      • ipv6 ready
      • Powered by Semantic MediaWiki
      • This page was last modified on 14 October 2025, at 01:45. Warning: Page may not contain recent updates.
      • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
      • Privacy policy
      • About Safer nicotine wiki
      • Disclaimers
      • Terms of Use
      • Desktop
      • Data access
      • Developers
      • Statistics
      • Cookie statement