24 namespace MediaWiki\Specials;
46 private $namespaceInfo;
58 parent::__construct(
'Mostinterwikis' );
59 $this->namespaceInfo = $namespaceInfo;
78 'namespace' =>
'page_namespace',
79 'title' =>
'page_title',
82 'page_namespace' => $this->namespaceInfo->getContentNamespaces()
84 'HAVING' =>
'COUNT(*) > 1',
118 [
'class' =>
'mw-invalidtitle' ],
129 $link = $linkRenderer->makeLink(
$title );
131 $link = $linkRenderer->makeKnownLink(
$title );
134 $count = $this->
msg(
'ninterwikis' )->numParams( $result->value )->escaped();
136 return $this->
getLanguage()->specialList( $link, $count );
148 class_alias( SpecialMostInterwikis::class,
'SpecialMostInterwikis' );
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
setDatabaseProvider(IConnectionProvider $databaseProvider)
executeLBFromResultWrapper(IResultWrapper $res, $ns=null)
Creates a new LinkBatch object, adds all pages from the passed result wrapper (MUST include title and...
isCached()
Whether or not the output of the page in question is retrieved from the database cache.
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
The main skin class which provides methods and properties for all other skins.
getContext()
Gets the context this SpecialPage is executed in.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getLanguage()
Shortcut to get user's language.