Template:Ifexists/doc

From DynamicPageList3 Manual
Revision as of 04:40, 29 March 2022 by imported>FrozenPlum (Fix fandom inconsistent doc format)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information

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.

Usage

{{ ifexists|(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.