Template:Ifexists: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
(Created page with "<includeonly>{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly><no...")
 
imported>FrozenPlum
m (Fix inconsistent doc format, am getting things roughly back to how they were before making wiki public again, just, Fandom import created lots of unnecessary junk to clean up)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly><noinclude>{{doc}}</noinclude>
<onlyinclude><includeonly>{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly></onlyinclude>
{{Documentation}}

Latest revision as of 04:41, 29 March 2022

[view | edit | purge]Template Documentation

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.

redirects =

Optional. exclude or only (defaults to include)

ns =

Optional. Defaults to main namespace.

[view | edit | purge]The above documentation is transcluded from Template:Ifexists/doc.