Terraria Wiki
Terraria Wiki
m (ce)
mAucun résumé des modifications
(Une version intermédiaire par un autre utilisateur non affichée)
Ligne 1 : Ligne 1 :
<includeonly>{{ #if: {{ #dpl: skipthispage = false | redirects = include | title = {{{1|}}} }} | {{{3|}}} | {{{2|}}} }}</includeonly><noinclude>
+
<includeonly>{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | noresultsheader = 1 | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly><noinclude>{{doc}}</noinclude>
== Description ==
 
<pre>
 
{{ ifexists|(pagename)|(then)|(else) }}
 
</pre>
 
 
This template is similar to [[mw:Help:ParserFunctions#.23ifexist|<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]].
 
 
=== Parameters ===
 
; ''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.
 
 
== See also ==
 
* [[mw:Help:ParserFunctions|MediaWiki's Help:ParserFunctions]]
 
 
[[Catégorie:Modèles de maintenance|{{PAGENAME}}]]
 
</noinclude>
 

Version du 26 août 2020 à 12:06

Template-info Documentation La documentation ci-dessous est transcluse de Modèle:Ifexists/doc. (modifier | historique)

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.