• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Exist not redirect/sandbox

  • Language
  • Watch
  • View source
< Template:Exist not redirect
__EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Exist not redirect (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 52,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.
Redirect
  • {{ExistNotRedirect}}
This template uses Lua:
  • Module:Exist not redirect (sandbox)

Checks whether a page exists and is not a redirect.

If the pagename both exists AND is not a redirect, it returns the pagename. Otherwise, it returns nothing.

Usage

{{Exist not redirect|pagename}}

Parameters:

  • One page name

Examples

  1. A page which exists:
    {{Exist not redirect|Japan}} → Japan
  2. A page which does not exist:
    {{Exist not redirect|The exciting story of paint drying in a small town in Japan one day in April 1927}} →
  3. Another page which exists:
    {{Exist not redirect|Portal:History}} →
  4. A page which does not exist:
    {{Exist not redirect|Portal:Computing in 1066}} →
  5. A page which exists, but is a redirect:
    {{Exist not redirect|Portal:Contents}} →
The above documentation is transcluded from Template:Exist not redirect/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Exist_not_redirect/sandbox&oldid=10178428"
Last edited on 20 July 2024, at 20:51

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 20 July 2024, at 20:51.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop