How to get a list of MediaWiki namespaces? Ideally with a name and number.
Use API: api.php?action=query&meta=siteinfo&siprop=namespaces
api.php?action=query&meta=siteinfo&siprop=namespaces
For example: http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces
You can also get other formats such as JSON .
See also MediaWiki Documentation for more information.
Source: https://habr.com/ru/post/1546928/More articles:Glib.h array size error in 64-bit but not 32-bit assembly - cHow to configure Angularjs controllers? anonymous functions vs $ scope.init () vs view ng-init - angularjsOpen Focus List - angularjsError with pastebin API: invalid API request, invalid api_paste_format - c #performSelector: onThread: in Swift? - iosSplit Java string - javaTemplate visualized order: parent triggers in front of child template (s) - javascriptPayment methods Disputes give mistakes with nitrous - githubWhy is there something different from the style tab in the laid out Chrome developer tools? - google-chromehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1546933/how-to-pass-params-to-task-queue&usg=ALkJrhgz-tMKzYPfEoPm9gHX9Qo5tJduAgAll Articles