ARK: Survival Evolved Wiki
Will130 (discusión | contribuciones)
m
Alexrmski (discusión | contribuciones)
 
Línea 1: Línea 1:
<includeonly><!-- The DPL query returns a 1 if the page can not be found and nothing if it can, hence the seemingly reversed if statement
+
<includeonly>{{ #if: {{ #ifeq: {{CONTENTLANGUAGE}} | en | | {{ #ifeq: {{ #pos: {{{1|}}} | File: | 0 }} | 0 | 1 }} }} | <!--
  +
Checking within File namespace on a translation: fall back to #ifexist
-->{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | noresultsheader = 1 | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly><noinclude>
 
  +
--> {{ #ifexist: Media:{{ #sub: {{{1|}}} | 5 | 0 }} | {{{2|}}} | {{{3|}}} }} | <!--
  +
Local page, or File on English wiki: DPL
  +
The DPL query returns a 1 if the page can not be found and nothing if it can, hence the seemingly reversed if statement
 
-->{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | noresultsheader = 1 | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }} }}</includeonly><noinclude>
 
{{doc}}
 
{{doc}}
   

Revisión actual del 16:37 7 jul 2021

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

{{ ifpageexists|(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.

See also