File defining the hook handlers for the Wikibase Client extension.
More...
|
static | onScribuntoExternalLibraries ( $engine, array &$extraLibraries) |
| External library for Scribunto.
|
|
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.
|
|
static | buildWikidataItemLink (Skin $skin) |
| Build 'Wikidata item' link for later addition to the toolbox section of the sidebar.
|
|
static | onGetPreferences (User $user, array &$prefs) |
| Adds a preference for showing or hiding Wikidata entries in recent changes.
|
|
static | onCirrusSearchAddQueryFeatures ( $config, array &$extraFeatures) |
| Add morelikewithwikibase keyword.
|
|
static | onSkinAfterBottomScripts (Skin $skin, &$html) |
| Injects a Wikidata inline JSON-LD script schema for search engine optimization.
|
|
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, |
|
|
WikibaseClient |
$wbClient |
|
) |
| |
|
staticprivate |
- Parameters
-
Title | $title | |
WikibaseClient | $wbClient | |
- Returns
- EntityId|null
◆ isWikibaseEnabled()
static Wikibase\Client\ClientHooks::isWikibaseEnabled |
( |
|
$namespace | ) |
|
|
staticprotected |
- See also
- NamespaceChecker::isWikibaseEnabled
- Parameters
-
- Returns
- bool
◆ 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 |
( |
WikibaseClient |
$client, |
|
|
|
$prefixedId = null |
|
) |
| |
|
staticprivate |
- Parameters
-
WikibaseClient | $client | |
string | null | $prefixedId | |
- Returns
- EntityId|null
The documentation for this class was generated from the following file: