Extension:NSNum

This extension adds a magic word to obtain the numerical ID of the namespace in which the current page is located.

Usage
Simply use like you would any other magic word.

Files
There is only one file, NSNum.php. Simply create a NSNum directory in your extensions directory and place the NSNum.php file there, then add the following to your LocalSettings.php: