MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子:-{R|https://www.mediawiki.org/wiki/API:Main_page/zh}-

meta=wbcontentlanguages (wbcl)

main | query | wbcontentlanguages
  • 此模块需要读取权限。
  • 来源:WikibaseView
  • 许可协议:GPL-2.0-or-later

Returns information about the content languages Wikibase accepts in different contexts.

参数:
wbclcontext

The context in which the content languages should be valid.

term
The terms (label, description, aliases) of an entity.
monolingualtext
A monolingual text value in a statement.
以下值中的一个:monolingualtext、term
Default: term
wbclprop

The properties that should be returned about each language.

code
语言代码。
autonym
The autonym of the language, that is, the name of the language in that language. May not be known for all languages.
name
The name of the language in the current language (specified via the uselang parameter), with language fallbacks applied if necessary. Usually, at least an English name is known for all content languages Wikibase accepts.
值(以|替代物分隔):autonym、code、name
Default: code
例子:
Get the valid language codes for the terms of an entity.
api.php?action=query&meta=wbcontentlanguages [在沙盒中打开]
Get the valid languages, with language code and autonym, for monolingual text values.
api.php?action=query&meta=wbcontentlanguages&wbclcontext=monolingualtext&wbclprop=code|autonym [在沙盒中打开]