Template:Exists

From VNDev Wiki

true

Documentation icon Template documentation [view] [edit] [purge]

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.