Template:Ifexists/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
No edit summary
imported>FrozenPlum
m (Fix fandom inconsistent doc format)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{doc/start}}
<!-- Documentation here -->
This template is similar to [[mw:Help:ParserFunctions##ifexist|<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##ifexist|<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]].


Line 22: Line 23:
Optional. Defaults to main namespace.
Optional. Defaults to main namespace.


<includeonly>
<noinclude>
<!-- Template categories/interwikis here -->
[[tr:Şablon:Ifexists/belge]]
[[Category:Templates]]
</noinclude>
</includeonly>
{{doc/end}}

Latest revision as of 04:40, 29 March 2022

This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information

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.