async

Cite.parse.wikidata. async

Deprecated:
Source:

Methods

(protected, static) json(data) → {Promise.<Array.<CSL>>}

Format Wikidata data (async)

Source:
Parameters:
Name Type Description
data Object

The input data

Returns:
Type:
Promise.<Array.<CSL>>

The formatted input data

(protected, static) prop(prop, value, lang) → {Promise.<Array.<String>>}

Transform property and value from Wikidata format to CSL (async).

Returns additional _ordinal property on authors.

Source:
Parameters:
Name Type Description
prop String

Property

value String | Number

Value

lang String

Language

Returns:
Type:
Promise.<Array.<String>>

Array with new prop and value