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 | 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 | getSiteConfiguration () |
| Used to propagate information about the current site to JavaScript. More...
|
|
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
◆ getSiteConfiguration()
static Wikibase\Client\ClientHooks::getSiteConfiguration |
( |
| ) |
|
|
static |
Used to propagate information about the current site to JavaScript.
This is used in "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. |
◆ onGetPreferences()
static Wikibase\Client\ClientHooks::onGetPreferences |
( |
User |
$user, |
|
|
array & |
$prefs |
|
) |
| |
|
static |
Adds a preference for showing or hiding Wikidata entries in recent changes.
- Parameters
-
◆ 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.
◆ parseEntityId()
static Wikibase\Client\ClientHooks::parseEntityId |
( |
?string |
$prefixedId | ) |
|
|
staticprivate |
The documentation for this class was generated from the following file: