Extension:NSNum
This extension stores its source code on a wiki page. Please be aware that this code may be unreviewed or maliciously altered. They may contain security holes, outdated interfaces that are no longer compatible etc. Note: No localisation updates are provided for this extension by translatewiki.net . |
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
![]() Release status: unmaintained |
|
---|---|
Implementation | Variable |
Description | Adds the {{NSNUM}} magic word to obtain the numerical ID of the page's namespace |
Author(s) | Kurt M. Weber (Kmwebertalk) |
Latest version | 0.1 (2011-03-09) |
MediaWiki | |
License | GPL |
Download | NSNum.php |
This extension adds a {{NSNum}} magic word to obtain the numerical ID of the namespace in which the current page is located.
UsageEdit
Simply use {{NSNUM}} like you would any other magic word.
FilesEdit
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 :
require_once("extensions/NSNum/NSNum.php");