Template:Exists
From VNDev Wiki
0
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.
The above documentation is transcluded from Template:Exists/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |