https://bugzilla.wikimedia.org/show_bug.cgi?id=48625
Web browser: ---
Bug ID: 48625
Summary: Provide namespace IDs and names in the databases
similar to toolserver.namespace
Product: Wikimedia Labs
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: Unprioritized
Component: tools
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l