Page MenuHomePhabricator

Document Wikibase hooks on
Closed, DeclinedPublic


Right now there is no documentation for Wikibase hooks on This should be fixed - each hook should be documented under namespace. The hooks list in Wikibase code:

  • WikibaseHandleChange
  • WikibaseHandleChanges
  • WikibaseRepoEntityTypes
  • WikibaseRepoDataTypes
  • WikibaseClientOtherProjectsSidebar
  • WikibaseClientDataTypes
  • WikibaseClientEntityTypes
  • WikibaseEntityNamespaces
  • WikibaseTextForSearchIndex
  • GetEntityByLinkedTitleLookup
  • WikibaseContentModelMapping
  • WikibaseChangeNotification

There is documentation in docs/ but it is much harder to locate and search it.

May be automatable (see T157757 for similar task) i.e. just running a script that would create wiki pages

Event Timeline

Change 562233 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/Wikibase@master] docs, cleanup hooks doc files & add links

Change 562233 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] docs, cleanup hooks doc files & add links

WMDE-leszek added a subscriber: WMDE-leszek.

All hooks listed in the description (with the different that WikibaseEntityNamespaces has been meanwhile replace with a Repo and Client specific hooks) have a documentation published automatically on, which is not a central documentation place. It is used instead of documenting Wikibase hooks on

Therefore I decline this task, as WMDE considers the documentation work done in this area.