(bug 8869) Introduce Special:Uncategorizedtemplates [in lieu of a reporting mechanism...
authorRob Church <robchurch@users.mediawiki.org>
Mon, 11 Jun 2007 07:04:25 +0000 (07:04 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 11 Jun 2007 07:04:25 +0000 (07:04 +0000)
RELEASE-NOTES
includes/AutoLoader.php
includes/QueryPage.php
includes/SpecialPage.php
includes/SpecialUncategorizedtemplates.php [new file with mode: 0644]
languages/messages/MessagesEn.php
maintenance/language/messageTypes.inc
maintenance/language/messages.inc

index e7a30c2..78ee12e 100644 (file)
@@ -80,6 +80,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Use shared.css for all skins and oldshared.css in place of common.css for
   pre-Monobook skins.  As always, modifications should go in-wiki to MediaWiki:
   Common.css and MediaWiki:Monobook.css.
+* (bug 8869) Introduce Special:Uncategorizedtemplates
 
 == Bugfixes since 1.10 ==
 
index 7f9a499..3670c9f 100644 (file)
@@ -210,6 +210,7 @@ function __autoload($className) {
                'ShortPagesPage' => 'includes/SpecialShortpages.php',
                'UncategorizedCategoriesPage' => 'includes/SpecialUncategorizedcategories.php',
                'UncategorizedPagesPage' => 'includes/SpecialUncategorizedpages.php',
+               'UncategorizedTemplatesPage' => 'includes/SpecialUncategorizedtemplates.php',
                'PageArchive' => 'includes/SpecialUndelete.php',
                'UndeleteForm' => 'includes/SpecialUndelete.php',
                'DBUnlockForm' => 'includes/SpecialUnlockdb.php',
index f7f90d7..449ec23 100644 (file)
@@ -34,6 +34,7 @@ $wgQueryPages = array(
        array( 'UncategorizedCategoriesPage',   'Uncategorizedcategories'       ),
        array( 'UncategorizedPagesPage',        'Uncategorizedpages'            ),
        array( 'UncategorizedImagesPage',       'Uncategorizedimages'                   ),
+       array( 'UncategorizedTemplatesPage',    'Uncategorizedtemplates'                ),
        array( 'UnusedCategoriesPage',          'Unusedcategories'              ),
        array( 'UnusedimagesPage',              'Unusedimages'                  ),
        array( 'WantedCategoriesPage',          'Wantedcategories'              ),
index 4eff196..a38bc01 100644 (file)
@@ -94,6 +94,7 @@ class SpecialPage
                'Uncategorizedpages'        => array( 'SpecialPage', 'Uncategorizedpages' ),
                'Uncategorizedcategories'   => array( 'SpecialPage', 'Uncategorizedcategories' ),
                'Uncategorizedimages'       => array( 'SpecialPage', 'Uncategorizedimages' ),
+               'Uncategorizedtemplates'        => array( 'SpecialPage', 'Uncategorizedtemplates' ),
                'Unusedcategories'          => array( 'SpecialPage', 'Unusedcategories' ),
                'Unusedimages'              => array( 'SpecialPage', 'Unusedimages' ),
                'Wantedpages'               => array( 'IncludableSpecialPage', 'Wantedpages' ),
diff --git a/includes/SpecialUncategorizedtemplates.php b/includes/SpecialUncategorizedtemplates.php
new file mode 100644 (file)
index 0000000..6d2d288
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+
+/**
+ * Special page lists all uncategorised pages in the
+ * template namespace
+ *
+ * @addtogroup SpecialPage
+ * @author Rob Church <robchur@gmail.com>
+ */
+class UncategorizedTemplatesPage extends UncategorizedPagesPage {
+
+       var $requestedNamespace = NS_TEMPLATE;
+
+       public function getName() {
+               return 'Uncategorizedtemplates';
+       }
+
+}
+
+/**
+ * Main execution point
+ *
+ * @param mixed $par Parameter passed to the page
+ */
+function wfSpecialUncategorizedtemplates() {
+       list( $limit, $offset ) = wfCheckLimits();
+       $utp = new UncategorizedTemplatesPage();
+       $utp->doQuery( $offset, $limit );
+}
+
+?>
index 89b0e68..a3b3873 100644 (file)
@@ -368,6 +368,7 @@ $specialPageAliases = array(
        'Uncategorizedpages'        => array( 'Uncategorizedpages' ),
        'Uncategorizedcategories'   => array( 'Uncategorizedcategories' ),
        'Uncategorizedimages'       => array( 'Uncategorizedimages' ),
+       'Uncategorizedtemplates'        => array( 'Uncategorizedtemplates' ),
        'Unusedcategories'          => array( 'Unusedcategories' ),
        'Unusedimages'              => array( 'Unusedimages' ),
        'Wantedpages'               => array( 'Wantedpages', 'Brokenlinks' ),
@@ -1543,6 +1544,8 @@ The [http://meta.wikimedia.org/wiki/Help:Job_queue job queue] length is '''\$7''
 'uncategorizedcategories-summary' => '', # only translate this message to other languages if you have to change it
 'uncategorizedimages'             => 'Uncategorized images',
 'uncategorizedimages-summary'     => '', # only translate this message to other languages if you have to change it
+'uncategorizedtemplates' => 'Uncategorized templates',
+'uncategorizedtemplates-summary' => '',
 'unusedcategories'                => 'Unused categories',
 'unusedimages'                    => 'Unused files',
 'popularpages'                    => 'Popular pages',
index 9970809..7ec080e 100644 (file)
@@ -123,6 +123,7 @@ $wgOptionalMessages = array(
        'uncategorizedpages-summary',
        'uncategorizedcategories-summary',
        'uncategorizedimages-summary',
+       'uncategorizedtemplates-summary',
        'popularpages-summary',
        'wantedcategories-summary',
        'wantedpages-summary',
index 292ecc1..ed6749a 100644 (file)
@@ -939,6 +939,8 @@ $wgMessageStructure = array(
                'uncategorizedcategories-summary',
                'uncategorizedimages',
                'uncategorizedimages-summary',
+               'uncategorizedtemplates',
+               'uncategorizedtemplates-summary',
                'unusedcategories',
                'unusedimages',
                'popularpages',