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
Which information to get for each language.
- code
- The language code. (This code is MediaWiki-specific, though there are overlaps with other standards.)
- bcp47
- The BCP-47 language code.
- dir
- The writing direction of the language (either
ltrorrtl). - 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
- Default: code
- licode
Language codes of the languages that should be returned, or
*for all languages.- è¤æ°ã®å¤ã¯ | ãããã¯ä»£ããã®æåã§åºåã£ã¦ãã ããã
- å¤ã®æå¤§å¤ã¯ 50ï¼ç·©ãå¶éãé©ç¨ãããã¯ã©ã¤ã¢ã³ãã§ã¯500ï¼ã§ãã
- Default: *
- licontinue
When more results are available, use this to continue.
ä¾:
- 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 [ãµã³ãããã¯ã¹ã§éã]