MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=wbformatvalue

(main | wbformatvalue)
  • This module requires read rights.
  • Source: Wikibase Repository
  • License: GPL-2.0+

Formats DataValues.

Parameters:
generate

The desired output format to generate.

One of the following values: text/plain, text/x-wiki, text/html, text/html; disposition=widget
Default: text/x-wiki
datavalue

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

This parameter is required.
datatype

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

One of the following values: commonsMedia, globe-coordinate, monolingualtext, quantity, string, time, url, external-id, 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.