MediaWiki REL1_31
SpecialWantedtemplates.php
Go to the documentation of this file.
1<?php
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}
Class definition for a wanted query page like WantedPages, WantedTemplates, etc.
A querypage to list the most wanted templates.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
__construct( $name='Wantedtemplates')
const NS_TEMPLATE
Definition Defines.php:84