MediaWiki
1.34.0
SpecialWantedTemplates.php
Go to the documentation of this file.
1
<?php
34
class
SpecialWantedTemplates
extends
WantedQueryPage
{
35
function
__construct
( $name =
'Wantedtemplates'
) {
36
parent::__construct( $name );
37
}
38
39
function
getQueryInfo
() {
40
return
[
41
'tables'
=> [
'templatelinks'
,
'page'
],
42
'fields'
=> [
43
'namespace'
=>
'tl_namespace'
,
44
'title'
=>
'tl_title'
,
45
'value'
=>
'COUNT(*)'
46
],
47
'conds'
=> [
48
'page_title IS NULL'
,
49
'tl_namespace'
=>
NS_TEMPLATE
50
],
51
'options'
=> [
'GROUP BY'
=> [
'tl_namespace'
,
'tl_title'
] ],
52
'join_conds'
=> [
'page'
=> [
'LEFT JOIN'
,
53
[
'page_namespace = tl_namespace'
,
54
'page_title = tl_title'
] ] ]
55
];
56
}
57
58
protected
function
getGroupName
() {
59
return
'maintenance'
;
60
}
61
}
NS_TEMPLATE
const NS_TEMPLATE
Definition:
Defines.php:70
SpecialWantedTemplates
A querypage to list the most wanted templates.
Definition:
SpecialWantedTemplates.php:34
SpecialWantedTemplates\getQueryInfo
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
Definition:
SpecialWantedTemplates.php:39
SpecialWantedTemplates\getGroupName
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Definition:
SpecialWantedTemplates.php:58
SpecialWantedTemplates\__construct
__construct( $name='Wantedtemplates')
Definition:
SpecialWantedTemplates.php:35
WantedQueryPage
Class definition for a wanted query page like WantedPages, WantedTemplates, etc.
Definition:
WantedQueryPage.php:32
includes
specials
SpecialWantedTemplates.php
Generated on Thu Dec 19 2019 14:55:01 for MediaWiki by
1.8.16