interesting errors with signitures.
* (bug 2764) Number format for Nds
* (bug 1553) Stop forcing lowercase in Monobook skin for German language.
+* (bug 1064) Implements Special:Unusedcategories
+
=== Caveats ===
'Lonelypages' => new SpecialPage( 'Lonelypages' ),
'Uncategorizedpages'=> new SpecialPage( 'Uncategorizedpages' ),
'Uncategorizedcategories'=> new SpecialPage( 'Uncategorizedcategories' ),
+ 'Unusedcategories' => new SpecialPage( 'Unusedcategories' ),
'Unusedimages' => new SpecialPage( 'Unusedimages' ),
'Wantedpages' => new SpecialPage( 'Wantedpages' ),
'Shortpages' => new SpecialPage( 'Shortpages' ),
--- /dev/null
+<?php
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
+
+/** */
+require_once('QueryPage.php');
+
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
+class UnusedCategoriesPage extends QueryPage {
+
+ function getName() {
+ return 'Unusedcategories';
+ }
+
+ function getPageHeader() {
+ return '<p>'.wfMsg('unusedcategoriestext')."</p><br />\n";
+ }
+
+ function getSQL() {
+ $NScat = NS_CATEGORY;
+ $dbr =& wfGetDB( DB_SLAVE );
+ extract( $dbr->tableNames( 'categorylinks','page' ));
+ return "SELECT DISTINCT 'Unusedcategories' as type,
+ {$NScat} as namespace, page_title as title, 1 as value
+ FROM $page
+ LEFT JOIN $categorylinks ON page_title=cl_to
+ WHERE cl_from IS NULL
+ AND page_namespace = {$NScat}
+ AND page_is_redirect = 0";
+ }
+
+ function formatResult( $skin, $result ) {
+ global $wgLang;
+ $title = Title::makeTitle( NS_CATEGORY, $result->title );
+ return $skin->makeLinkObj( $title, $title->getText() );
+ }
+}
+
+/** constructor */
+function wfSpecialUnusedCategories() {
+ list( $limit, $offset ) = wfCheckLimits();
+ $uc = new UnusedCategoriesPage();
+ return $uc->doQuery( $offset, $limit );
+}
+?>
'lonelypages' => 'Orphaned pages',
'uncategorizedpages' => 'Uncategorized pages',
'uncategorizedcategories' => 'Uncategorized categories',
+'unusedcategories' => 'Unused categories',
'unusedimages' => 'Unused files',
'popularpages' => 'Popular pages',
'nviews' => '$1 views',
'unusedimagestext' => '<p>Please note that other web sites may link to an image with
a direct URL, and so may still be listed here despite being
in active use.</p>',
+'unusedcategoriestext' => '<p>The following categorie pages exist although no other article or category make use of them.</p>',
+
'booksources' => 'Book sources',
'categoriespagetext' => 'The following categories exist in the wiki.',
'data' => 'Data',