61 parent::__construct(
'Fewestrevisions' );
62 $this->namespaceInfo = $namespaceInfo;
78 'tables' => [
'revision',
'page' ],
80 'namespace' =>
'page_namespace',
81 'title' =>
'page_title',
82 'value' =>
'COUNT(*)',
85 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
87 'page_is_redirect' => 0,
90 'GROUP BY' => [
'page_namespace',
'page_title' ]
105 $nt = Title::makeTitleSafe( $result->namespace, $result->title );
109 [
'class' =>
'mw-invalidtitle' ],
110 Linker::getInvalidTitleDescription(
119 $text = $this->languageConverter->convertHtml( $nt->getPrefixedText() );
120 $plink = $linkRenderer->makeLink( $nt,
new HtmlArmor( $text ) );
122 $nl = $this->
msg(
'nrevisions' )->numParams( $result->value )->text();
123 $redirect = isset( $result->redirect ) && $result->redirect ?
124 ' - ' . $this->
msg(
'isredirect' )->escaped() :
'';
125 $nlink = $linkRenderer->makeKnownLink(
129 [
'action' =>
'history' ]
132 return $this->
getLanguage()->specialList( $plink, $nlink );
146 return 'maintenance';
151class_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.
The base class for all skins.