미디어위키 API 도움말

이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.

설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

meta=languageinfo (li)

(main | query | languageinfo)
  • 이 모듈은 read 권한을 요구합니다.
  • 출처: MediaWiki
  • 라이선스: GPL-2.0-or-later

사용 가능한 언어의 정보를 반환합니다.

Continuation may be applied if retrieving the information takes too long for one request.

변수:
liprop

각 언어별로 가져올 정보입니다.

code
언어 코드입니다. (이 코드는 미디어위키와 관련되어 있으나 다른 표준과 겹치는 부분이 있습니다.)
bcp47
BCP-47 언어 코드입니다.
dir
The writing direction of the language (either ltr or rtl).
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 또는 다른 문자열: 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

더 많은 결과를 이용할 수 있을 때, 계속하려면 이것을 사용하십시오.

예시:
지원하는 모든 언어의 언어 코드를 가져옵니다.
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 [연습장에서 열기]