Back-end wiki maintenance was completed on 4/16/25. If you encounter any strange behavior, please report it in the DevTalk Discord server.
If you are using the Vector 2022 skin, dark mode has moved to Preferences > Appearance.

Template:Exists/doc

From VNDev Wiki
Revision as of 21:13, 18 June 2022 by Arsym (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template tests whether a given page exists. This is meant to replace the #ifexist parser function which creates unnecessary links in Special:WantedPages in a page does not exist. This has the advantage of avoiding spurious wikilinks, but has the disadvantage that the containing page may not be updated automatically if the checked page is created or deleted later.

Usage

The full syntax for using it is:

{{exists|page}}

{{exists|page=page|then=result if page exists|else=result if page does not exist}}

The parameters then and else are optional; if not given, the default values for then and else are true and <blank> respectively.