Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.

Documentation for Ifexist

The {{PROTECTIONEXPIRY}} parser function can be used to check whether a page exists. It returns infinity if the page exists and is not protected, the actual expiry time if it is protected, and the empty string if it doesn't exist.

It differs from alternatives such as #ifexist: in that the page containing this template is not recorded as linking to or transcluding the page being checked. This has the advantage of avoiding spurious wikilinks, but means that the containing page may not be updated automatically if the checked page is created or deleted later.

This also does not incur an "expensive function" count, so it can be used more than 100 times on a single page.

Usage

  • {{#ifexist:Scout|true|false}} -> false
  • {{ifexist|Scout|true|false}} -> false
  • {{#ifexist:abcdef|true|false}} -> false
  • {{ifexist|abcdef|true|false}} -> false