Template:Ifexists/doc: Difference between revisions
No edit summary |
imported>FrozenPlum m (3 revisions imported: Imported from help.fandom.com, Extension:DPL3 pages, which are for the obsolete version of DPL3 extension for MediaWiki 1.33, to adapt to forked (newer) extension version.) |
||
(No difference)
|
Revision as of 01:11, 29 March 2022
Template:Doc/start 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.