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

Template:ExistNotRedirect

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

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 a blank

Usage

{{ExistNotRedirect|pagename}}

Parameters:

  • One page name
Examples
  1. A page which exists:
    {{ExistNotRedirect|Japan}} →
  2. A page which does not exist:
    {{ExistNotRedirect|The exciting story of paint drying in a small town in Japan one day in April 1927}} →
  3. Another page which exists:
    {{ExistNotRedirect|Portal:History}} →
  4. A page which does not exist:
    {{ExistNotRedirect|Portal:Computing in 1066}} →
  5. A page which exists, but is a redirect:
    {{ExistNotRedirect|Portal:Contents}} →
The above documentation is transcluded from Template:ExistNotRedirect/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:ExistNotRedirect&oldid=15814"
Categories:
  • Lua-based templates
  • Disambiguation and redirection templates
Last edited on 14 July 2020, at 13:36

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 14 July 2020, at 13:36.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop