Справка 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 [оÑкÑÑÑÑ Ð² пеÑоÑниÑе]