Existing page

edit
{{Is valid page name|Main Page}}

{{Is valid page name}}

valid

{{Is valid page name/sandbox}}

valid

Nonexistent but valid page

edit
{{Is valid page name|20250830101352}}

{{Is valid page name}}

valid

{{Is valid page name/sandbox}}

valid

Invalid page

edit
{{Is valid page name|[[Main Page]]}}

{{Is valid page name}}


{{Is valid page name/sandbox}}


Using the "-" convenience

edit
{{Is valid page name|-}}

{{Is valid page name}}


{{Is valid page name/sandbox}}


Empty

edit
{{Is valid page name}}

{{Is valid page name}}


{{Is valid page name/sandbox}}