Jump to content

Wikibase/Developing extensions

From mediawiki.org
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This page describes how the Wikibase software can be extended.

From JavaScript

See the available JavaScript hooks.

Many examples of user scripts using these hooks can be found at Wikidata:Tools/Enhance user interface.

Via PHP

Wikibase consists of two extensions Wikibase Repository and Wikibase Client . Both can be extended by MediaWiki extensions via hooks .

Implementing a new data type

You need two hooks:

For some examples of extensions using these hooks refer to: