Wikibase
MediaWiki Wikibase extension
|
This file describes hooks defined by the Wikibase extensions.
See https://www.mediawiki.org/wiki/Manual:Hooks for general information on hooks.
Called when constructing the top-level WikibaseRepo factory May be used to define additional data types. See also the WikibaseClientDataTypes hook.
Hook handlers may add additional definitions. See datatypes documentation for details.
Parameters:
Called when constructing the top-level WikibaseRepo factory May be used to define additional entity types. See also the WikibaseClientEntityTypes hook.
Hook handlers may add additional definitions. See entitytypes documentation for details.
Parameters:
Called by EntityContent::getTextForSearchIndex() to allow extra text to be passed to the search engine for indexing. If the hook function returns false, no text at all will be passed to the search index.
Parameters:
Called by WikibaseRepo::getContentModelMappings() to allow additional mappings between Entity types and content model identifiers to be defined.
Parameters:
Called by WikibaseRepo::getEntityNamespaceLookup() to allow additional mappings between Entity types and namespace IDs to be defined.
Parameters:
Parameters:
Parameters:
Triggered from ChangeNotifier via a HookChangeTransmitter to notify any listeners of changes to entities.
For performance reasons, does not include statement, description and alias diffs (see T113468, T163465).
Parameters:
Called by[ WikibaseRepo::getContentLanguages()], which in turn is called by some other getters, to define the content languages per context.
Parameters:
Called by EntityContentFactory to see what is the entity content type of the Title. Extensions can override it so entity content type does not equal page content type.
Parameters:
Allows extensions to register extra EntityParserOutputUpdater implementations.
Parameters:
Allows extensions to add custom EntityByLinkedTitleLookup services.
Parameters:
Parameters:
Called when constructing the top-level WikibaseClient factory May be used to define additional data types See also the WikibaseRepoDataTypes hook.
Hook handlers may add additional definitions. See the datatypes documentation for details.
Parameters:
Called when constructing the top-level WikibaseClient factory May be used to define additional entity types. See also the WikibaseRepoEntityTypes hook.
Hook handlers may add additional definitions. See entitytypes documentation for details.
Parameters:
Called by ChangeHandler::handleChange() to allow pre-processing of changes.
Parameters:
Called by ChangeHandler::handleChange() to allow alternative processing of changes.
Parameters:
Called by OtherProjectsSidebarGenerator to allow altering the sitelinks used in language links and the other projects sidebar. Only called in case the page we are on is linked with an item.
Parameters:
Called by WikibaseClient::getEntityNamespaceLookup() to allow additional mappings between Entity types and namespace IDs to be defined.
Parameters: