Template:Ifexist: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Paisley Park (talk | contribs) No edit summary |
Paisley Park (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly><noinclude>{{ |
<includeonly>{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude> |
Revision as of 04:04, 5 February 2020
Template Documentation (sometimes hidden or invisible)
Template tools: purge • what links here • what transclude this • subpages |
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
Visit Template:Ifexist/doc to edit this text! (How does this work?) (Refresh this text)