Template:Ifexists: Difference between revisions
Content added Content deleted
No edit summary |
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) |
||
(2 intermediate revisions by 2 users not shown) | |||
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}} |
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.