That one in xml was better readable :P but thanks
On Thu, Nov 21, 2013 at 1:01 PM, John phoenixoverride@gmail.com wrote:
http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=...
On Thu, Nov 21, 2013 at 6:57 AM, Petr Bena benapetr@gmail.com wrote:
Hi,
Is there some effective way to retrieve a list of namespaces for a wiki? In huggle we have that hardcoded now, but that kind of suck, because every wiki can have some custom NS.
Example: https://github.com/huggle/huggle3-qt-lx/blob/master/huggle/wikipage.hpp
//! Namespaces enum MediaWikiNS { MediaWikiNS_Main, MediaWikiNS_Talk, MediaWikiNS_Project, MediaWikiNS_ProjectTalk, MediaWikiNS_User, MediaWikiNS_UserTalk, MediaWikiNS_Help, MediaWikiNS_HelpTalk, MediaWikiNS_Category, MediaWikiNS_CategoryTalk, MediaWikiNS_Mediawiki, MediaWikiNS_MediawikiTalk, MediaWikiNS_File, MediaWikiNS_FileTalk, MediaWikiNS_Portal, MediaWikiNS_PortalTalk, MediaWikiNS_Special };
Is there a way to retrieve:
- Namespace original name (the english one which can be used on any
language wiki, like User or Talk) and its talk id
- Namespace localized name and its talk id (User talk for User)
- Namespace ID
for every namespace that is known by a wiki?
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l