Template:Ifexists/doc

From Sword of Moonlight Wiki
Revision as of 20:00, 13 September 2024 by Verdite cat (talk | contribs) (Created page with "This template is similar to <nowiki>{{ #ifexist: }}</nowiki> as it checks the existence of the given page. The difference is that the checked page is not added to Wanted pages. == Usage == <pre> {{ ifexists|(pagename)|(then)|(else) }} </pre> ; ''unnamed parameter'' 1 Pagename without braces, including namespace. ; ''unnamed parameter'' 2 Optional. Wikitext if page exists. ; ''unnamed parameter'' 3 Optiona...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.