math

Description

Template:NAMESPACEID/doc returns the namespace ID of page given, or of the current page.

Usage

Namespace aliases are accepted, too:

Invalid input returns an error, which can be caught with the #iferror parser function:

See also