• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.213
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Is redirect

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Pagetype

Returns yes when |1=somepagename is a redirect, and a <blank space> when not a redirect.

Usage

Do include the namespace.

  • 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. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Is redirect

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

Template parameters

ParameterDescriptionTypeStatus
11

no description

Unknownoptional

See also

  • {{no redirect}}, {{-r}}
  • {{target of}} — returns the target of a redirect
  • {{redirect}} — hatnote "Foo redirects here ..."
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://moasspedia.org/w/index.php?title=Template:Is_redirect&oldid=20689"
Categories:
  • Wikipedia pages with incorrect protection templates
  • Lua-based templates
  • Templates using TemplateData
  • Redirect templates
Last edited on 13 March 2022, at 12:28

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 13 March 2022, at 12:28.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop