Jump to content

Template:Ifpageexists: Difference between revisions

From SpongeBob Wiki
imported>列维劳德
No edit summary
 
(No difference)

Latest revision as of 01:40, 21 March 2022

zh:Template:若頁面存在

Documentation (for the above template or database, sometimes hidden or invisible)

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


Visit Template:Ifpageexists/doc to edit this text! (How does this work?)