Posts Tagged ‘namespace’

MediaWiki – List all namespaces and their ID numbers

Friday, March 23, 2012 13:13 No Comments

To list all available namespaces and their ID numbers in MediaWiki you have to query MediaWiki’s api. Simpy open the following address in your browser: http://www.mywebsite.tld/mediawiki_installation/api.php?action=query&meta=siteinfo&siprop=namespaces *replacing http://www.mywebsite.tld/mediawiki_installation with the path to your MediaWiki page. This will return a XML representation of Namespaces data.

This was posted under category: Web Tags: , , , ,