3.75 GB
76,734 files
Updated about 2 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| lib | 13 items | ||
| lib-mjs | 13 items | ||
| LICENSE.md | 1.09 kB xet | e4fc8516 | |
| README.md | 1.55 kB xet | 98b951f6 | |
| package.json | 1.14 kB xet | 44267e8b |
@citation-js/plugin-wikidata
Plugin for Wikidata for Citation.js.
Install
npm install @citation-js/plugin-wikidata
Usage
Register by importing the package:
require('@citation-js/plugin-wikidata')
Formats
Formats and other features added by this plugin.
Input
This plugin accepts Wikidata IDs in the following formats:
@wikidata/id: single ID@wikidata/list+text: whitespace- or comma-delimited list of IDs@wikidata/api: API URL@wikidata/url: entity URL@wikidata/list+object: array of IDs
API responses (@wikidata/object) are also supported. Additionally, this plugin exposes input parsing methods concerning individual properties and types, under the types @wikidata/prop and @wikidata/type.
Configuration
Input languages can be specified:
const {plugins} = require('@citation-js/core')
const config = plugins.config.get('@wikidata')
config.langs // ['en']
config.langs = ['fr', 'de', 'en'] // searches for French, then German then English labels
- Total size
- 3.75 GB
- Files
- 76,734
- Last updated
- Sep 11
- Pre-warmed CDN
- US EU US EU