Template:Ifexists: Difference between revisions

From Sword of Moonlight Wiki
Jump to navigation Jump to search
Created page with "<includeonly>{{#if: {{#dpl:skipthispage = false | redirects = {{{redirects|include}}} | noresultsheader = 1 | title = {{{1|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly><noinclude>{{doc}} {{language info|en=Template:Ifexists}} </noinclude>"
 
No edit summary
 
Line 1: Line 1:
<includeonly>{{#if: {{#dpl:skipthispage = false | redirects = {{{redirects|include}}} | noresultsheader = 1 | title = {{{1|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly><noinclude>{{doc}}
<includeonly>{{#if: {{#dpl:skipthispage = false | redirects = {{{redirects|include}}} | noresultsheader = 1 | title = {{{1|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly><noinclude>{{doc}}
{{language info|en=Template:Ifexists}}
</noinclude>
</noinclude>

Latest revision as of 20:00, 13 September 2024

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Ifexists/doc to edit this documentation. (How does this work?)

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.