38 parent::__construct( $name );
51 'tables' => [
'pagelinks',
'page' ],
53 'namespace' =>
'pl_namespace',
54 'title' =>
'pl_title',
55 'value' =>
'COUNT(*)',
59 'HAVING' =>
'COUNT(*) > 1',
61 'pl_namespace',
'pl_title',
69 'page_namespace = pl_namespace',
70 'page_title = pl_title'
110 $title = Title::makeTitleSafe( $result->namespace, $result->title );
112 return Html::element(
114 [
'class' =>
'mw-invalidtitle' ],
126 $this->
msg(
'nlinks' )->numParams( $result->value )->text()
static getInvalidTitleDescription(IContextSource $context, $namespace, $title)
Get a message saying that an invalid title was encountered.
A special page to show pages ordered by the number of pages linking to them.
__construct( $name='Mostlinked')
makeWlhLink( $title, $caption)
Make a link to "what links here" for the specified title.
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
preprocessResults( $db, $res)
Pre-fill the link cache.
formatResult( $skin, $result)
Make links to the page corresponding to the item, and the "what links here" page for it.
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
isSyndicated()
Sometime we don't want to build rss / atom feeds.
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
executeLBFromResultWrapper(IResultWrapper $res, $ns=null)
Creates a new LinkBatch object, adds all pages from the passed ResultWrapper (MUST include title and ...
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)
Wrapper around wfMessage that sets the current context.
getLanguage()
Shortcut to get user's language.
MediaWiki Linker LinkRenderer null $linkRenderer
usually copyright or history_copyright This message must be in HTML not wikitext & $link