r22897 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22896‎ | r22897 | r22898 >
Date:07:04, 11 June 2007
Author:robchurch
Status:old
Tags:
Comment:
(bug 8869) Introduce Special:Uncategorizedtemplates [in lieu of a reporting mechanism that allows us to cache multiple results per namespace and offer filtering to the user]
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/AutoLoader.php (modified) (history)
  • /trunk/phase3/includes/QueryPage.php (modified) (history)
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)
  • /trunk/phase3/includes/SpecialUncategorizedtemplates.php (added) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/maintenance/language/messageTypes.inc (modified) (history)
  • /trunk/phase3/maintenance/language/messages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/messages.inc
@@ -939,6 +939,8 @@
940940 'uncategorizedcategories-summary',
941941 'uncategorizedimages',
942942 'uncategorizedimages-summary',
 943+ 'uncategorizedtemplates',
 944+ 'uncategorizedtemplates-summary',
943945 'unusedcategories',
944946 'unusedimages',
945947 'popularpages',
Index: trunk/phase3/maintenance/language/messageTypes.inc
@@ -123,6 +123,7 @@
124124 'uncategorizedpages-summary',
125125 'uncategorizedcategories-summary',
126126 'uncategorizedimages-summary',
 127+ 'uncategorizedtemplates-summary',
127128 'popularpages-summary',
128129 'wantedcategories-summary',
129130 'wantedpages-summary',
Index: trunk/phase3/includes/SpecialUncategorizedtemplates.php
@@ -0,0 +1,31 @@
 2+<?php
 3+
 4+/**
 5+ * Special page lists all uncategorised pages in the
 6+ * template namespace
 7+ *
 8+ * @addtogroup SpecialPage
 9+ * @author Rob Church <robchur@gmail.com>
 10+ */
 11+class UncategorizedTemplatesPage extends UncategorizedPagesPage {
 12+
 13+ var $requestedNamespace = NS_TEMPLATE;
 14+
 15+ public function getName() {
 16+ return 'Uncategorizedtemplates';
 17+ }
 18+
 19+}
 20+
 21+/**
 22+ * Main execution point
 23+ *
 24+ * @param mixed $par Parameter passed to the page
 25+ */
 26+function wfSpecialUncategorizedtemplates() {
 27+ list( $limit, $offset ) = wfCheckLimits();
 28+ $utp = new UncategorizedTemplatesPage();
 29+ $utp->doQuery( $offset, $limit );
 30+}
 31+
 32+?>
Property changes on: trunk/phase3/includes/SpecialUncategorizedtemplates.php
___________________________________________________________________
Added: svn:eol-style
133 + native
Index: trunk/phase3/includes/AutoLoader.php
@@ -210,6 +210,7 @@
211211 'ShortPagesPage' => 'includes/SpecialShortpages.php',
212212 'UncategorizedCategoriesPage' => 'includes/SpecialUncategorizedcategories.php',
213213 'UncategorizedPagesPage' => 'includes/SpecialUncategorizedpages.php',
 214+ 'UncategorizedTemplatesPage' => 'includes/SpecialUncategorizedtemplates.php',
214215 'PageArchive' => 'includes/SpecialUndelete.php',
215216 'UndeleteForm' => 'includes/SpecialUndelete.php',
216217 'DBUnlockForm' => 'includes/SpecialUnlockdb.php',
Index: trunk/phase3/includes/QueryPage.php
@@ -34,6 +34,7 @@
3535 array( 'UncategorizedCategoriesPage', 'Uncategorizedcategories' ),
3636 array( 'UncategorizedPagesPage', 'Uncategorizedpages' ),
3737 array( 'UncategorizedImagesPage', 'Uncategorizedimages' ),
 38+ array( 'UncategorizedTemplatesPage', 'Uncategorizedtemplates' ),
3839 array( 'UnusedCategoriesPage', 'Unusedcategories' ),
3940 array( 'UnusedimagesPage', 'Unusedimages' ),
4041 array( 'WantedCategoriesPage', 'Wantedcategories' ),
Index: trunk/phase3/includes/SpecialPage.php
@@ -94,6 +94,7 @@
9595 'Uncategorizedpages' => array( 'SpecialPage', 'Uncategorizedpages' ),
9696 'Uncategorizedcategories' => array( 'SpecialPage', 'Uncategorizedcategories' ),
9797 'Uncategorizedimages' => array( 'SpecialPage', 'Uncategorizedimages' ),
 98+ 'Uncategorizedtemplates' => array( 'SpecialPage', 'Uncategorizedtemplates' ),
9899 'Unusedcategories' => array( 'SpecialPage', 'Unusedcategories' ),
99100 'Unusedimages' => array( 'SpecialPage', 'Unusedimages' ),
100101 'Wantedpages' => array( 'IncludableSpecialPage', 'Wantedpages' ),
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -368,6 +368,7 @@
369369 'Uncategorizedpages' => array( 'Uncategorizedpages' ),
370370 'Uncategorizedcategories' => array( 'Uncategorizedcategories' ),
371371 'Uncategorizedimages' => array( 'Uncategorizedimages' ),
 372+ 'Uncategorizedtemplates' => array( 'Uncategorizedtemplates' ),
372373 'Unusedcategories' => array( 'Unusedcategories' ),
373374 'Unusedimages' => array( 'Unusedimages' ),
374375 'Wantedpages' => array( 'Wantedpages', 'Brokenlinks' ),
@@ -1543,6 +1544,8 @@
15441545 'uncategorizedcategories-summary' => '', # only translate this message to other languages if you have to change it
15451546 'uncategorizedimages' => 'Uncategorized images',
15461547 'uncategorizedimages-summary' => '', # only translate this message to other languages if you have to change it
 1548+'uncategorizedtemplates' => 'Uncategorized templates',
 1549+'uncategorizedtemplates-summary' => '',
15471550 'unusedcategories' => 'Unused categories',
15481551 'unusedimages' => 'Unused files',
15491552 'popularpages' => 'Popular pages',
Index: trunk/phase3/RELEASE-NOTES
@@ -80,6 +80,7 @@
8181 * Use shared.css for all skins and oldshared.css in place of common.css for
8282 pre-Monobook skins. As always, modifications should go in-wiki to MediaWiki:
8383 Common.css and MediaWiki:Monobook.css.
 84+* (bug 8869) Introduce Special:Uncategorizedtemplates
8485
8586 == Bugfixes since 1.10 ==
8687

Follow-up revisions

RevisionCommit summaryAuthorDate
r22913close comment so that $wgSiteNotice is defined again -- broken since r22897brion19:42, 11 June 2007
r22919Merged revisions 22878-22918 via svnmerge from...david00:00, 12 June 2007

Status & tagging log