Help:Ifexist
From QED
#ifexist: is a parser function which returns one of two results depending on whether or not a particular page exists on QED.
Contents |
Syntax
{{ #ifexist: <page name> | <wikitext if page exists> | <wikitext if page does not exist> }}
Notes
- If a page exists, then standard, non-canonical forms of its name will also give positive results.
- For example, if Xyzzy exists, then {{#ifexist:xyzzy|Y|N}} will yield Y.
- If a page specifies a redirection, it exists.
Examples
- Redirection - the Help page specifies a redirection
- {{#ifexist:Help|Y|N}} yields Y
- Namespace
- {{#ifexist:Help:FAQ|Y|N}} yields Y
See also
#ifexist is one of a large number of "#" parser functions, which are documented at http://meta.wikimedia.org/wiki/ParserFunctions












