MediaWiki API hulp

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

meta=wbcontentlanguages (wbcl)

(main | query | wbcontentlanguages)
  • Voor deze module zijn leesrechten nodig.
  • Bron: WikibaseClient
  • Licentie: GPL-2.0-or-later

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

Parameters:
wbclcontext

The context in which the content languages should be valid.

term
The terms (label, description, aliases) of an entity.
monolingualtext
Een enkeltalige tekstwaarde in een verklaring.
Een van de volgende waarden: monolingualtext, term
Standaard: term
wbclprop

The properties that should be returned about each language.

code
De taalcode.
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.
Waarden (gescheiden met | of alternatief): autonym, code, name
Standaard: code
Voorbeelden:
Get the valid language codes for the terms of an entity.
api.php?action=query&meta=wbcontentlanguages [open in de zandbak]
Get the valid languages, with language code and autonym, for monolingual text values.
api.php?action=query&meta=wbcontentlanguages&wbclcontext=monolingualtext&wbclprop=code|autonym [open in de zandbak]