File defining the hook handlers for the Wikibase Client extension.
More...
|
static | onScribuntoExternalLibraries ( $engine, array &$extraLibraries) |
| External library for Scribunto. More...
|
|
static | onFormat (&$comment, $pre, $auto, $post, $title, $local, $wikiId=null) |
| Handler for the FormatAutocomments hook, implementing localized formatting for machine readable autocomments generated by SummaryFormatter. More...
|
|
static | buildWikidataItemLink (Skin $skin) |
| Build 'Wikidata item' link for later addition to the toolbox section of the sidebar. More...
|
|
static | onGetPreferences (User $user, array &$prefs) |
| Adds a preference for showing or hiding Wikidata entries in recent changes. More...
|
|
static | onGetDoubleUnderscoreIDs (&$doubleUnderscoreIDs) |
|
static | onCirrusSearchAddQueryFeatures ( $config, array &$extraFeatures) |
| Add morelikewithwikibase keyword. More...
|
|
static | onSkinAfterBottomScripts (Skin $skin, &$html) |
| Injects a Wikidata inline JSON-LD script schema for search engine optimization. More...
|
|
static | getLinkitemConfiguration () |
| Used to propagate configuration for the linkitem feature to JavaScript. More...
|
|
static | onWikibaseContentLanguages (array &$contentLanguages) |
|
static | onMaintenanceShellStart () |
|
File defining the hook handlers for the Wikibase Client extension.
- Copyright
- GPL-2.0-or-later
◆ buildWikidataItemLink()
static Wikibase\Client\ClientHooks::buildWikidataItemLink |
( |
Skin |
$skin | ) |
|
|
static |
Build 'Wikidata item' link for later addition to the toolbox section of the sidebar.
- Parameters
-
- Returns
- string[]|null Array of link elements or Null if link cannot be created.
◆ getEntityIdForTitle()
static Wikibase\Client\ClientHooks::getEntityIdForTitle |
( |
Title |
$title | ) |
|
|
staticprivate |
- Parameters
-
- Returns
- EntityId|null
◆ getLinkitemConfiguration()
static Wikibase\Client\ClientHooks::getLinkitemConfiguration |
( |
| ) |
|
|
static |
Used to propagate configuration for the linkitem feature to JavaScript.
This is used in the "wikibase.client.linkitem.init" module.
◆ isWikibaseEnabled()
static Wikibase\Client\ClientHooks::isWikibaseEnabled |
( |
|
$namespace | ) |
|
|
staticprotected |
◆ onCirrusSearchAddQueryFeatures()
static Wikibase\Client\ClientHooks::onCirrusSearchAddQueryFeatures |
( |
|
$config, |
|
|
array & |
$extraFeatures |
|
) |
| |
|
static |
Add morelikewithwikibase keyword.
- Parameters
-
| $config | |
array | &$extraFeatures | |
◆ onFormat()
static Wikibase\Client\ClientHooks::onFormat |
( |
& |
$comment, |
|
|
|
$pre, |
|
|
|
$auto, |
|
|
|
$post, |
|
|
|
$title, |
|
|
|
$local, |
|
|
|
$wikiId = null |
|
) |
| |
|
static |
Handler for the FormatAutocomments hook, implementing localized formatting for machine readable autocomments generated by SummaryFormatter.
- Parameters
-
string | &$comment | reference to the autocomment text |
bool | $pre | true if there is content before the autocomment |
string | $auto | the autocomment unformatted |
bool | $post | true if there is content after the autocomment |
Title | null | $title | use for further information |
bool | $local | shall links be generated locally or globally |
string | null | $wikiId | The ID of the wiki the comment applies to, if not the local wiki. |
◆ onGetDoubleUnderscoreIDs()
static Wikibase\Client\ClientHooks::onGetDoubleUnderscoreIDs |
( |
& |
$doubleUnderscoreIDs | ) |
|
|
static |
◆ onGetPreferences()
static Wikibase\Client\ClientHooks::onGetPreferences |
( |
User |
$user, |
|
|
array & |
$prefs |
|
) |
| |
|
static |
Adds a preference for showing or hiding Wikidata entries in recent changes.
- Parameters
-
◆ onMaintenanceShellStart()
static Wikibase\Client\ClientHooks::onMaintenanceShellStart |
( |
| ) |
|
|
static |
◆ onScribuntoExternalLibraries()
static Wikibase\Client\ClientHooks::onScribuntoExternalLibraries |
( |
|
$engine, |
|
|
array & |
$extraLibraries |
|
) |
| |
|
static |
External library for Scribunto.
- Parameters
-
string | $engine | |
string[] | &$extraLibraries | |
◆ onSkinAfterBottomScripts()
static Wikibase\Client\ClientHooks::onSkinAfterBottomScripts |
( |
Skin |
$skin, |
|
|
& |
$html |
|
) |
| |
|
static |
Injects a Wikidata inline JSON-LD script schema for search engine optimization.
- Parameters
-
- Returns
- bool Always true.
◆ onWikibaseContentLanguages()
static Wikibase\Client\ClientHooks::onWikibaseContentLanguages |
( |
array & |
$contentLanguages | ) |
|
|
static |
- Parameters
-
ContentLanguages[] | $contentLanguages | |
◆ parseEntityId()
static Wikibase\Client\ClientHooks::parseEntityId |
( |
?string |
$prefixedId | ) |
|
|
staticprivate |
The documentation for this class was generated from the following file: