Extension:NSNum

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
NSNum

Release status: Beta

Implementation Variable
Description Adds the {{NSNUM}} magic word to obtain the numerical ID of the page's namespace
Author(s) Kurt M. Weber (KmweberTalk)
Last version 0.1 (9 March 2011)
License GPL
Download NSNum.php

Check usage (experimental)

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

[edit] Usage

Simply use {{NSNUM}} like you would any other magic word.

[edit] 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:

require_once("extensions/NSNum/NSNum.php");
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox