Template:ExistsLinkless/doc
Appearance
| Documentation subpage |
|---|
| View this documentation's related template: Template:ExistsLinkless (edit). |
| Template styles: CSS styles (edit). |
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:Linkless exists), where this template was sourced.
- T14019, related Phabricator task.
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page | 1 | The name of the page to be checked | Page name | required |
| (Override) true | 2 | The text to appear if the page is present
| String | optional |
| (Override) null/blank | 3 | The text to appear if the page is absent
| String | optional |