Template:Exists/doc
This is a documentation subpage for Template:Exists. It contains usage information, categories and other content that is not part of the original template page. |
Echecks if a page exists. If it exists, the result will be 1
, otherwise 0
.
Parameters edit
Parameter name | Required? | Default value | Description |
---|---|---|---|
Anonymous parameter 1 |
No | (n/a) | A page name. For example: DSR-50/Live2D or IDW |
Usage edit
See the template's testcases:
Testing a page which does exist | |
---|---|
Wiki code | {{Exists|IDW}} |
Main version | 1 |
Sandbox version | Template:Exists/sandbox |
Testing a page which does not exist | |
---|---|
Wiki code | {{Exists|M4A1/BestDollEver}} |
Main version | 0 |
Sandbox version | Template:Exists/sandbox |
Testing a page which does not exist with then/else parameters | |
---|---|
Wiki code | {{Exists|M4A1/BestDollEver|then=THEN|else=ELSE}} |
Main version | ELSE |
Sandbox version | Template:Exists/sandbox |