Template:Ifexists: Difference between revisions
Content added Content deleted
imported>FrozenPlum m (3 revisions imported: Imported from help.fandom.com, Extension:DPL3 pages, which are for the obsolete version of DPL3 extension for MediaWiki 1.33, to adapt to forked (newer) extension version.) |
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) |
||
Line 1: | Line 1: | ||
<includeonly>{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly>< |
<onlyinclude><includeonly>{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly></onlyinclude> |
||
{{ |
{{Documentation}} |
||
[[Category:Templates]] |
|||
[[tr:Şablon:Ifexists]]</noinclude> |
Latest revision as of 04:41, 29 March 2022
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.