Jump to content

Template:Ifpageexists/doc

From SpongeBob Wiki
Revision as of 07:47, 16 August 2021 by imported>Will130 (Created page with "This template is similar to [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23ifexist <nowiki>{{ #ifexist: }}</nowiki>] as it checks the existence of the given...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template is similar to {{ #ifexist: }} as it checks the existence of the given page. The difference is that the checked page is not added to Wanted pages.

On translation wikis if the checked page name has the namespace specified as File (not localized), the mentioned parser function is used instead, as DPL can't be used for repository images.

Usage

{{ ifpageexists|(pagename)|(then)|(else) }}
unnamed parameter 1

Pagename without braces, including namespace.

unnamed parameter 2

Optional. Wikitext if page exists.

unnamed parameter 3

Optional. Wikitext if page does not exists.

redirects =

Optional. exclude or only (defaults to include)

ns =

Optional. Defaults to main namespace.

See also