Difference between revisions of "Template:Ifexists/doc"

From LCARS
Jump to: navigation, search
m (Created page with "== Description == <pre> {{ ifexists|(pagename)|(then)|(else) }} </pre> This template is similar to [http://mediawiki.org/wiki/Help:Extension:ParserFunctions#.23ifexist <nowiki>{...")
 
m
 
Line 17: Line 17:
 
* http://mediawiki.org/wiki/Help:Extension:ParserFunctions
 
* http://mediawiki.org/wiki/Help:Extension:ParserFunctions
  
[[Category:Utility Templates|{{PAGENAME}}]]
+
[[Category:Template documentation|{{PAGENAME}}]]

Latest revision as of 04:10, 13 September 2012

Description

{{ ifexists|(pagename)|(then)|(else) }}

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.

Parameters

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.

See also