55 parent::__construct(
'Fewestrevisions' );
56 $this->namespaceInfo = $namespaceInfo;
72 'tables' => [
'revision',
'page' ],
74 'namespace' =>
'page_namespace',
75 'title' =>
'page_title',
76 'value' =>
'COUNT(*)',
79 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
81 'page_is_redirect' => 0,
84 'GROUP BY' => [
'page_namespace',
'page_title' ]
99 $nt = Title::makeTitleSafe( $result->namespace, $result->title );
103 [
'class' =>
'mw-invalidtitle' ],
104 Linker::getInvalidTitleDescription(
113 $text = $this->languageConverter->convertHtml( $nt->getPrefixedText() );
114 $plink = $linkRenderer->makeLink( $nt,
new HtmlArmor( $text ) );
116 $nl = $this->
msg(
'nrevisions' )->numParams( $result->value )->text();
117 $redirect = isset( $result->redirect ) && $result->redirect ?
118 ' - ' . $this->
msg(
'isredirect' )->escaped() :
'';
119 $nlink = $linkRenderer->makeKnownLink(
123 [
'action' =>
'history' ]
126 return $this->
getLanguage()->specialList( $plink, $nlink );
140 return 'maintenance';
145class_alias( SpecialFewestRevisions::class,
'SpecialFewestRevisions' );
Marks HTML that shouldn't be escaped.
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)
getContext()
Gets the context this SpecialPage is executed in.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getContentLanguage()
Shortcut to get content language.
getLanguage()
Shortcut to get user's language.