Template:Ifexist/doc: Difference between revisions

From JoJo's Bizarre Encyclopedia - JoJo Wiki
Jump to navigation Jump to search
Content deleted Content added
Created page with "This template is similar to <nowiki>{{ #ifexist: }}</nowiki> as it checks the existence of the given page. The difference is..."
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This template is similar to [[mediawikiwiki::Help:ParserFunctions#.23ifexist|<nowiki>{{ #ifexist: }}</nowiki>]] as it checks the existence of the given page. The difference is that the checked page is not added to [[Special:Wantedpages|Wanted pages]].
This template is similar to [[mw:Help:ParserFunctions#.23ifexist|<nowiki>{{ #ifexist: }}</nowiki>]] as it checks the existence of the given page. The difference is that the checked page is not added to [[Special:Wantedpages|Wanted pages]].


== Usage ==
== Usage ==
<pre>
<pre>
{{ ifexists|(pagename)|(then)|(else) }}
{{ ifexist|(pagename)|(then)|(else) }}
</pre>
</pre>


Line 15: Line 15:
Optional. Wikitext if page does not exists.
Optional. Wikitext if page does not exists.


; ''redirects =''
Optional. '''exclude''' ''or'' '''only''' (defaults to '''include''')

; ''ns =''
Optional. Defaults to main namespace.
== See also ==
== See also ==
* [[mediawikiwiki::Help:ParserFunctions|MediaWiki's Help:ParserFunctions]]
* [[mediawikiwiki::Help:ParserFunctions|MediaWiki's Help:ParserFunctions]]

Latest revision as of 04:05, 5 February 2020

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

{{ ifexist|(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