wikidata

Cite.parse. wikidata

Deprecated:
Source:

Namespaces

async

Methods

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

Format Wikidata data

Source:
Parameters:
Name Type Description
data Object

The input data

Returns:
Type:
Array.<CSL>

The formatted input data

(protected, static) list(data) → {Object}

Get Wikidata JSON from Wikidata IDs

Source:
Parameters:
Name Type Description
data String

Wikidata IDs

Returns:
Type:
Object

Wikidata JSON

(protected, static) prop(name, valueopt, langopt) → {Array.<String>|String}

Transform property and value from Wikidata format to CSL.

Returns additional _ordinal property on authors.

Source:
Parameters:
Name Type Attributes Description
name String

Property name

value String | Number <optional>

Value

lang String <optional>

Language

Returns:
Type:
Array.<String> | String

Array with new prop and value or just the prop when function is called without value