Справка MediaWiki API
Это автоматически сгенерированная страница документации MediaWiki API.
Документация и примеры: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
meta=languageinfo (li)
- Этот модуль требует прав на чтение.
- Источник: MediaWiki
- Лицензия: GPL-2.0-or-later
Return information about available languages.
Continuation may be applied if retrieving the information takes too long for one request.
Параметры:
- liprop
- Какую информацию получить для каждого языка. - code
- The language code. (This code is MediaWiki-specific, though there are overlaps with other standards.)
- bcp47
- The BCP-47 language code.
- dir
- Направление написания языка (ltrилиrtl</ code>).
- autonym
- The autonym of the language, that is, the name in that language.
- name
- The name of the language in the language specified by the uselang parameter, with language fallbacks applied if necessary.
- fallbacks
- The language codes of the fallback languages configured for this language. The implicit final fallback to 'en' is not included (but some languages may fall back to 'en' explicitly).
- variants
- The language codes of the variants supported by this language.
 
- Значения (разделённые с помощью | или альтернативного разделителя): autonym, bcp47, code, dir, fallbacks, name, variants
- По умолчанию: code
- licode
- Language codes of the languages that should be returned, or - *for all languages.
- Разделяйте значения с помощью | или альтернативного разделителя.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- По умолчанию: *
- licontinue
- Когда доступно больше результатов, используйте это для продолжения. 
Примеры:
- Get the language codes of all supported languages.
- api.php?action=query&meta=languageinfo [открыть в песочнице]
- Get the autonyms and German names of all supported languages.
- api.php?action=query&meta=languageinfo&liprop=autonym|name&uselang=de [открыть в песочнице]
- Get the fallback languages and variants of Occitan.
- api.php?action=query&meta=languageinfo&liprop=fallbacks|variants&licode=oc [открыть в песочнице]
- Get the BCP-47 language code and direction of all supported languages.
- api.php?action=query&meta=languageinfo&liprop=bcp47|dir [открыть в песочнице]