MediaWiki  1.23.13
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 array(
41  'tables' => array( 'templatelinks', 'page' ),
42  'fields' => array(
43  'namespace' => 'tl_namespace',
44  'title' => 'tl_title',
45  'value' => 'COUNT(*)'
46  ),
47  'conds' => array(
48  'page_title IS NULL',
49  'tl_namespace' => NS_TEMPLATE
50  ),
51  'options' => array( 'GROUP BY' => array( 'tl_namespace', 'tl_title' ) ),
52  'join_conds' => array( 'page' => array( 'LEFT JOIN',
53  array( 'page_namespace = tl_namespace',
54  'page_title = tl_title' ) ) )
55  );
56  }
57 
58  protected function getGroupName() {
59  return 'maintenance';
60  }
61 }
WantedTemplatesPage
A querypage to list the most wanted templates.
Definition: SpecialWantedtemplates.php:34
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
WantedTemplatesPage\__construct
__construct( $name='Wantedtemplates')
Definition: SpecialWantedtemplates.php:35
NS_TEMPLATE
const NS_TEMPLATE
Definition: Defines.php:89
WantedTemplatesPage\getGroupName
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Definition: SpecialWantedtemplates.php:58
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:336
WantedTemplatesPage\getQueryInfo
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
Definition: SpecialWantedtemplates.php:39
WantedQueryPage
Class definition for a wanted query page like WantedPages, WantedTemplates, etc.
Definition: QueryPage.php:766