Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
m 1 revision imported
 
Line 9: Line 9:
==Examples==
==Examples==
{{T|Exists|This page does not exist|true|false|_Y_=1}}<br />
{{T|Exists|This page does not exist|true|false|_Y_=1}}<br />
{{T|Exists|Venti|true|false|_Y_=1}}<br />
{{T|Exists|Template:Exists|true|false|_Y_=1}}<br />
{{T|Exists|v1=blank|p2=true|p3=false|_Y_=1}}
{{T|Exists|v1=blank|p2=true|p3=false|_Y_=1}}



Latest revision as of 08:59, 7 June 2024

Template:High Risk

This template checks for a page's existence without causing the page to show up on whatlinkshere and wantedpages, unlike #ifexist.

Syntax

{{Exists|page to check|content if exists|content if does not exist}}

Examples

{{Exists|This page does not exist|true|false}} yields: false
{{Exists|Template:Exists|true|false}} yields: true
{{Exists|blank|true|false}} yields: false

Template Data

Check if page exists

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page Name1 page

Name of page including namespace to check for existence.

Page namerequired
True Result2 then

Result if page exists

Example
I exist
Unbalanced wikitextsuggested
False Result3 else

Result if page does not exist

Example
I do not exist
Unbalanced wikitextsuggested