31 parent::__construct(
'Unusedtemplates' );
58 'tables' => [
'linktarget',
'templatelinks',
'page',
'page_props' ],
60 'namespace' =>
'page_namespace',
61 'title' =>
'page_title',
66 'page_is_redirect' => 0,
70 'linktarget' => [
'LEFT JOIN', [
'lt_title = page_title',
'lt_namespace = page_namespace' ] ],
71 'templatelinks' => [
'LEFT JOIN', [
'tl_target_id = lt_id' ] ],
72 'page_props' => [
'LEFT JOIN', [
'page_id = pp_page',
'pp_propname' =>
'expectunusedtemplate' ] ]
90 $pageLink = $linkRenderer->makeKnownLink( $title );
91 $wlhLink = $linkRenderer->makeKnownLink(
93 $this->msg(
'unusedtemplateswlh' )->text()
96 return $this->
getLanguage()->specialList( $pageLink, $wlhLink );
101 return $this->
msg(
'unusedtemplatestext' )->parseAsBlock();
106 return 'maintenance';
112 TemplateLinksTable::VIRTUAL_DOMAIN,
122class_alias( SpecialUnusedTemplates::class,
'SpecialUnusedTemplates' );
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...
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,...
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getLanguage()
Shortcut to get user's language.