Справка MediaWiki API

Это автоматически сгенерированная страница документации MediaWiki API.

Документация и примеры: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=wbformatvalue

(main | wbformatvalue)
  • Этот модуль требует прав на чтение.
  • Источник: WikibaseRepository
  • Лицензия: GPL-2.0-or-later

Formats DataValues.

Определённые параметры:
Other general parameters are available.
generate

The desired output format to generate.

Одно из следующих значений: text/html, text/html; disposition=verbose, text/html; disposition=verbose-preview, text/plain, text/x-wiki
По умолчанию: text/x-wiki
datavalue

The data to format. This has to be the JSON serialization of a DataValue object.

Это обязательный параметр.
datatype

The value's data type. This is distinct from the value's type

Одно из следующих значений: commonsMedia, entity-schema, external-id, geo-shape, globe-coordinate, monolingualtext, quantity, string, tabular-data, time, url, wikibase-item, wikibase-property
property

Property ID the data value belongs to, should be used instead of the datatype parameter.

options

The options the formatter should use. Provided as a JSON object.