Wikibase/Developing extensions
< Wikibase
This page describes how the Wikibase software can be extended.
From JavaScript
editSee the available JavaScript hooks.
Many examples of user scripts using these hooks can be found at Wikidata:Tools/Enhance user interface.
Via PHP
editWikibase consists of two extensions Wikibase Repository and Wikibase Client . Both can be extended by MediaWiki extensions via hooks .
See the available PHP hooks.
Implementing a new data type
editYou need two hooks:
- WikibaseRepoDataTypes - to hook into the Wikibase Repository extension
- WikibaseClientDataTypes - to hook into the Wikibase Client extension
See also the Datatypes description of the developer documentation.
For some examples of extensions using these hooks refer to: