62 parent::__construct(
'Mostlinkedcategories' );
74 'tables' => [
'category' ],
75 'fields' => [
'title' =>
'cat_title',
77 'value' =>
'cat_pages' ],
78 'conds' => [
'cat_pages > 0' ],
102 $nt = Title::makeTitleSafe(
NS_CATEGORY, $result->title );
106 [
'class' =>
'mw-invalidtitle' ],
107 Linker::getInvalidTitleDescription(
114 $text = $this->languageConverter->convertHtml( $nt->getText() );
117 $nlinks = $this->
msg(
'nmembers' )->numParams( $result->value )->escaped();
119 return $this->
getLanguage()->specialList( $plink, $nlinks );
130class_alias( SpecialMostLinkedCategories::class,
'SpecialMostLinkedCategories' );
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.
The shared interface for all language converters.