Jump to content

Template:ExistsLinkless

From DynamicPageList4 Manual
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this template's documentation (edit) (about template documentation).
No TemplateStyles exist (create). Remember to add after the opening <includeonly> tag:
<templatestyles src="Template:ExistsLinkless/styles.css" />


Example(s)

[edit source]
  • {{ExistsLinkless|Template:DPL}} gives:

true

  • {{ExistsLinkless|Template:Test|exists|doesn't exist}} gives:

doesn't exist

See Also

[edit source]

Template Data

[edit source]

Checks whether a provided page exists, via IF statement, instead if IFEXIST statement which flags non-existing pages as a Wanted Page (undesired). Requires one parameter: the name of the page to be checked. Include a namespace where necessary. There are two other optional parameters: the text to appear if the page is present, and the text to appear if it is absent. By default, these are set to \"true\" and \"\", which evaluate as true and false respectively within expressions.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Page1

The name of the page to be checked

Page namerequired
(Override) true2

The text to appear if the page is present

Default
true
Example
page found
Stringoptional
(Override) null/blank3

The text to appear if the page is absent

Default
(blank string)
Example
page not found
Stringoptional


Cookies help us deliver our services. By using our services, you agree to our use of cookies.