Toolserver has the local table toolserver.namespace on all databases that provides the IDs and names of all namespaces in a wiki:
| mysql> SELECT * FROM toolserver.namespace LIMIT 5; | ---------- ------------------ ------- ------------------------------------- | | dbname | domain | ns_id | ns_name | | ---------- ------------------ ------- ------------------------------------- | | abwiki_p | ab.wikipedia.org | 10 | Ашаблон | | | abwiki_p | ab.wikipedia.org | 7 | Обсуждение файла | | | abwiki_p | ab.wikipedia.org | 11 | Обсуждение шаблона | | | abwiki_p | ab.wikipedia.org | 8 | Амедиавики | | | abwiki_p | ab.wikipedia.org | 9 | Обсуждение MediaWiki | | ---------- ------------------ ------- ------------------------------------- | 5 rows in set (0.00 sec) | mysql>
This can probably be easily generated from iterating over all wikis, using the API (http://de.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces) to query namespaces and update them in the database if the webcall succeeded, but an even more interesting approach would of course be to clone operations/mediawiki-config and extract the information from there.
Version: unspecified
Severity: trivial
URL: http://article.gmane.org/gmane.org.wikimedia.labs/1381
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=48626
https://bugzilla.wikimedia.org/show_bug.cgi?id=56301