User:Legoktm/Linker
Appearance
StickToThatLanguage - inject &uselang=XX to every link, and split parser cache
Wikibase - I have absolutely no idea
Genderize - I think it's obsolete, but it does something.
HelpPages - should be replaced by TitleIsAlwaysKnown hook
Translate - fake MyLanguage links looking red if the target doesn't exist
km@km-tp ~/p/v/m/extensions> ack LinkBegin --php
StickToThatLanguage/StickToThatLanguage.php
54: $wgHooks['LinkBegin'][] = 'STTLanguage\Hooks::onLinkBegin';
StickToThatLanguage/StickToThatLanguage.hooks.php
177: * @see https://www.mediawiki.org/wiki/Manual:Hooks/LinkBegin
188: public static function onLinkBegin( $skin, $target, &$text, &$customAttribs, &$query, &$options, &$ret ) {
227: * We have to do this here as well, since content parsing could still come here instead of the onLinkBegin.
Wikibase/repo/includes/Hooks/EditFilterHookRunner.php
132: // LinkBeginHookHandler::doOnLinkBegin to replace the link to the
Wikibase/repo/includes/Hooks/LabelPrefetchHookHandlers.php
19: * Wikibase uses the LinkBegin hook handler
21: * @see LinkBeginHookHandler
68: // NOTE: keep in sync with fallback chain construction in LinkBeginHookHandler::newFromGlobalState
Wikibase/repo/includes/Hooks/LinkBeginHookHandler.php
20: * Handler for the LinkBegin hook, used to change the default link text of links to wikibase Entity
25: * labels should be pre-loaded and buffered for later use via the LinkBegin hook.
34:class LinkBeginHookHandler {
83: * @see https://www.mediawiki.org/wiki/Manual:Hooks/LinkBegin
94: public static function onLinkBegin( $skin, $target, &$html, array &$customAttribs, &$query,
105: $handler->doOnLinkBegin( $target, $html, $customAttribs, $context );
139: public function doOnLinkBegin( Title $target, &$html, array &$customAttribs, RequestContext $context ) {
Wikibase/repo/includes/WikibaseRepo.php
1007: // the links created in LinkBeginHookHandler afterwards (the links must not
Wikibase/repo/tests/phpunit/includes/Hooks/LinkBeginHookHandlerTest.php
17:use Wikibase\Repo\Hooks\LinkBeginHookHandler;
22: * @covers Wikibase\Repo\Hooks\LinkBeginHookHandler
35:class LinkBeginHookHandlerTest extends \MediaWikiTestCase {
66: public function testDoOnLinkBegin_validContext( RequestContext $context ) {
67: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
76: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $customAttribs, $context );
116: public function testDoOnLinkBegin_invalidContext( RequestContext $context ) {
117: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
127: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $customAttribs, $context );
153: public function testDoOnLinkBegin_overrideSpecialNewEntityLink( $linkTitle ) {
155: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
162: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $attribs, $context );
173: public function testDoOnLinkBegin_nonEntityTitleLink() {
175: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
186: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $customAttribs, $context );
192: public function testDoOnLinkBegin_unknownEntityTitle() {
194: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
205: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $customAttribs, $context );
211: public function testDoOnLinkBegin_itemHasNoLabel() {
213: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
223: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $customAttribs, $context );
298: private function getLinkBeginHookHandler() {
305: return new LinkBeginHookHandler(
Wikibase/repo/Wikibase.php
234: $wgHooks['LinkBegin'][] = 'Wikibase\Repo\Hooks\LinkBeginHookHandler::onLinkBegin';
Wikibase/lib/includes/Formatters/EntityIdPlainLinkFormatter.php
10: * LinkBeginHookHandler requires this exact format.
Genderize/Genderize.class.php
38: static public function onLinkBegin( $skin, $target, &$text, &$customAttribs, &$query, &$options, &$ret ) {
45: } // function onLinkBegin
Genderize/Genderize.php
36:$wgHooks[ 'LinkBegin' ][] = 'Genderize::onLinkBegin';
HelpPages/HelpPages.hooks.php
68: public static function onLinkBegin( $dummy, Title $target, &$html, &$customAttribs, &$query, &$options, &$ret ) {
HelpPages/HelpPages.php
46:$wgHooks['LinkBegin'][] = 'HelpPagesHooks::onLinkBegin';
Translate/TranslateHooks.php
653: * Hook: LinkBegin
Translate/Translate.php
146:$wgHooks['LinkBegin'][] = 'TranslateHooks::linkfix';
HidePrefix/HidePrefix.class.php
29: static public function onLinkBegin( $skin, $target, &$text, &$customAttribs, &$query, &$options, &$ret ) {
42: } // function onLinkBegin
HidePrefix/HidePrefix.php
31:$wgHooks[ 'LinkBegin' ][] = 'HidePrefix::onLinkBegin';
LightweightRDFa/LightweightRDFa.php
38:$wgHooks['LinkBegin'][] = 'internalRDFaLinks';
RPED/RPED.php
48:$wgHooks['LinkBegin'][] = 'RPEDHooks::wikipediaLink';
SemanticTitle/SemanticTitle.php
50:$GLOBALS['wgHooks']['LinkBegin'][] = 'SemanticTitle::onLinkBegin';
51:$GLOBALS['wgHooks']['SelfLinkBegin'][] = 'SemanticTitle::onSelfLinkBegin';
SemanticTitle/SemanticTitle.class.php
82: * Handle links. Implements LinkBegin hook of Linker class.
98: public static function onLinkBegin( $dummy, Title $target, &$text,
150: public static function onSelfLinkBegin( Title $nt, &$html, &$trail,
Wikidata/extensions/Wikibase/repo/includes/Hooks/EditFilterHookRunner.php
132: // LinkBeginHookHandler::doOnLinkBegin to replace the link to the
Wikidata/extensions/Wikibase/repo/includes/Hooks/LabelPrefetchHookHandlers.php
19: * Wikibase uses the LinkBegin hook handler
21: * @see LinkBeginHookHandler
68: // NOTE: keep in sync with fallback chain construction in LinkBeginHookHandler::newFromGlobalState
Wikidata/extensions/Wikibase/repo/includes/Hooks/LinkBeginHookHandler.php
20: * Handler for the LinkBegin hook, used to change the default link text of links to wikibase Entity
25: * labels should be pre-loaded and buffered for later use via the LinkBegin hook.
34:class LinkBeginHookHandler {
83: * @see https://www.mediawiki.org/wiki/Manual:Hooks/LinkBegin
94: public static function onLinkBegin( $skin, $target, &$html, array &$customAttribs, &$query,
105: $handler->doOnLinkBegin( $target, $html, $customAttribs, $context );
139: public function doOnLinkBegin( Title $target, &$html, array &$customAttribs, RequestContext $context ) {
Wikidata/extensions/Wikibase/repo/includes/WikibaseRepo.php
1007: // the links created in LinkBeginHookHandler afterwards (the links must not
Wikidata/extensions/Wikibase/repo/tests/phpunit/includes/Hooks/LinkBeginHookHandlerTest.php
17:use Wikibase\Repo\Hooks\LinkBeginHookHandler;
22: * @covers Wikibase\Repo\Hooks\LinkBeginHookHandler
35:class LinkBeginHookHandlerTest extends \MediaWikiTestCase {
66: public function testDoOnLinkBegin_validContext( RequestContext $context ) {
67: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
76: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $customAttribs, $context );
116: public function testDoOnLinkBegin_invalidContext( RequestContext $context ) {
117: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
127: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $customAttribs, $context );
153: public function testDoOnLinkBegin_overrideSpecialNewEntityLink( $linkTitle ) {
155: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
162: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $attribs, $context );
173: public function testDoOnLinkBegin_nonEntityTitleLink() {
175: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
186: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $customAttribs, $context );
192: public function testDoOnLinkBegin_unknownEntityTitle() {
194: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
205: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $customAttribs, $context );
211: public function testDoOnLinkBegin_itemHasNoLabel() {
213: $linkBeginHookHandler = $this->getLinkBeginHookHandler();
223: $linkBeginHookHandler->doOnLinkBegin( $title, $html, $customAttribs, $context );
298: private function getLinkBeginHookHandler() {
305: return new LinkBeginHookHandler(
Wikidata/extensions/Wikibase/repo/Wikibase.php
234: $wgHooks['LinkBegin'][] = 'Wikibase\Repo\Hooks\LinkBeginHookHandler::onLinkBegin';
Wikidata/extensions/Wikibase/lib/includes/Formatters/EntityIdPlainLinkFormatter.php
10: * LinkBeginHookHandler requires this exact format.
Wikidata/vendor/composer/autoload_classmap.php
894: 'Wikibase\\Repo\\Hooks\\LinkBeginHookHandler' => $baseDir . '/extensions/Wikibase/repo/includes/Hooks/LinkBeginHookHandler.php',
1024: 'Wikibase\\Repo\\Tests\\Hooks\\LinkBeginHookHandlerTest' => $baseDir . '/extensions/Wikibase/repo/tests/phpunit/includes/Hooks/LinkBeginHookHandlerTest.php',
BlueSpiceExtensions/PageTemplates/PageTemplates.class.php
78: $this->setHook( 'LinkBegin' );
359: * Hook handler for LinkBegin
369: public function onLinkBegin( $oLinker, $oTarget, &$sHtml, &$aCustomAttribs, &$aQuery, &$aOptions, &$sRet ) {
Polyglot/Polyglot.php
77:$wgHooks['LinkBegin'][] = 'wfPolyglotLinkBegin';
170:function wfPolyglotLinkBegin( $linker, $target, &$text, &$customAttribs, &$query, &$options, &$ret ) {
InterwikiIntegration/InterwikiIntegration.php
55:$wgHooks['LinkBegin'][] = 'InterwikiIntegrationHooks::InterwikiIntegrationLink';
PureWikiDeletion/PureWikiDeletion.php
52:$wgHooks['LinkBegin'][] = 'PureWikiDeletionHooks::PureWikiDeletionLink';
Wikilog/Wikilog.php
134:$wgHooks['LinkBegin'][] = 'Wikilog::LinkBegin';
314: * LinkBegin hook handler function.
318: static function LinkBegin( $skin, $target, &$text, &$attribs, &$query,
335: * Same as Wikilog::LinkBegin, but for the tab actions.
HelpCommons/HelpCommons.php
565:$wgHooks['LinkBegin'][] = function ( $skin, $target, &$text, &$customAttribs, &$query, &$options, &$ret ) {