Template:Namespace detect

Usage & preview
Type in this:

to see this:

[?action=purge Click here to refresh the preview above]