25 namespace MediaWiki\Specials;
60 parent::__construct(
'Mostlinkedtemplates' );
63 $this->linksMigration = $linksMigration;
94 $queryInfo = $this->linksMigration->getQueryInfo(
'templatelinks' );
95 [ $ns, $title ] = $this->linksMigration->getTitleFields(
'templatelinks' );
97 'tables' => $queryInfo[
'tables'],
101 'value' =>
'COUNT(*)'
103 'options' => [
'GROUP BY' => [ $ns, $title ] ],
104 'join_conds' => $queryInfo[
'joins']
130 [
'class' =>
'mw-invalidtitle' ],
141 $this->makeWlhLink( $title, $result )
152 private function makeWlhLink( $title, $result ) {
154 $label = $this->
msg(
'ntransclusions' )->numParams( $result->value )->text();
168 class_alias( SpecialMostLinkedTemplates::class,
'SpecialMostLinkedTemplates' );
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...
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
Parent class for all special pages.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name If you don't need a full Title object,...
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.
The base class for all skins.