Wikibase/Developing extensions

This page describes how the software can be extended.

From JavaScript
See the [ https://doc.wikimedia.org/Wikibase/master/php/docs_topics_hooks-js.html available JavaScript hooks].

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

Via PHP
Wikibase consists of two extensions and. Both can be extended by via.

See the [ https://doc.wikimedia.org/Wikibase/master/php/docs_topics_hooks-php.html available PHP hooks].

Implementing a new data type
You need two hooks:


 * - to hook into the extension
 * - to hook into the extension

See also the [ https://doc.wikimedia.org/Wikibase/master/php/docs_topics_datatypes.html Datatypes description of the developer documentation].

For some examples of extensions using these hooks refer to: