Template:Ifexists/doc: Difference between revisions
Content added Content deleted
(Created page with "{{doc/start}} This template is similar to <nowiki>{{ #ifexist: }}</nowiki> as it checks the existence of the given page. The difference...") |
(+TR) |
||
Line 1: | Line 1: | ||
{{doc/start}} |
{{doc/start}} |
||
This template is similar to [[mw:Help:ParserFunctions# |
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]]. |
||
== Usage == |
== Usage == |
||
Line 17: | Line 17: | ||
; ''redirects ='' |
; ''redirects ='' |
||
Optional. |
Optional. <code>exclude</code> or <code>only/code> (defaults to <code>include</code>) |
||
; ''ns ='' |
; ''ns ='' |
||
Optional. Defaults to main namespace. |
Optional. Defaults to main namespace. |
||
<noinclude> |
|||
[[tr:Şablon:Ifexists/belge]] |
|||
</noinclude> |
|||
{{doc/end}} |
{{doc/end}} |
Revision as of 16:05, 11 May 2020
Template:Doc/start 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/code> (defaults to
include
)
- ns =
Optional. Defaults to main namespace.