This is the documentation page for Modiwl:IsValidPageName

This template returns "valid" if the given page title is valid, or the empty string otherwise. The page does not need to exist in order for the template to return "valid".

{{#invoke:IsValidPageName|isValidPageName|a potential page name}}