Index: MediaWiki/branches/1.11/includes/QueryPage.php
===================================================================
--- MediaWiki/branches/1.11/includes/QueryPage.php	(revision 1280)
+++ MediaWiki/branches/1.11/includes/QueryPage.php	(revision 1281)
@@ -26,4 +26,5 @@
 	array( 'MostimagesPage',                'Mostimages'                    ),
 	array( 'MostlinkedCategoriesPage',      'Mostlinkedcategories'          ),
+	array( 'SpecialMostlinkedtemplates',	'Mostlinkedtemplates'			),
 	array( 'MostlinkedPage',                'Mostlinked'                    ),
 	array( 'MostrevisionsPage',             'Mostrevisions'                 ),
@@ -34,4 +35,5 @@
 	array( 'UncategorizedPagesPage',        'Uncategorizedpages'            ),
 	array( 'UncategorizedImagesPage',       'Uncategorizedimages' 			),
+	array( 'UncategorizedTemplatesPage',	'Uncategorizedtemplates'		),
 	array( 'UnusedCategoriesPage',          'Unusedcategories'              ),
 	array( 'UnusedimagesPage',              'Unusedimages'                  ),
@@ -333,5 +335,6 @@
 
 		$this->preprocessResults( $dbr, $res );
-		$sk = $wgUser->getSkin();
+
+		$wgOut->addHtml( XML::openElement( 'div', array('class' => 'mw-spcontent') ) );
 		
 		# Top header and navigation
@@ -348,4 +351,5 @@
 				# -- just let the user know and give up now
 				$wgOut->addHtml( '<p>' . wfMsgHtml( 'specialpage-empty' ) . '</p>' );
+				$wgOut->addHtml( XML::closeElement( 'div' ) );
 				return;
 			}
@@ -366,4 +370,6 @@
 			$wgOut->addHtml( '<p>' . $paging . '</p>' );
 		}
+
+		$wgOut->addHtml( XML::closeElement( 'div' ) );
 		
 		return $num;
@@ -398,5 +404,5 @@
 						: '';
 					$html[] = $this->listoutput
-						? $format
+						? $line
 						: "<li{$attr}>{$line}</li>\n";
 				}
@@ -412,5 +418,5 @@
 						: '';
 					$html[] = $this->listoutput
-						? $format
+						? $line
 						: "<li{$attr}>{$line}</li>\n";
 				}
@@ -429,9 +435,9 @@
 	
 	function openList( $offset ) {
-		return "<ol start='" . ( $offset + 1 ) . "' class='special'>";
+		return "\n<ol start='" . ( $offset + 1 ) . "' class='special'>\n";
 	}
 	
 	function closeList() {
-		return '</ol>';
+		return "</ol>\n";
 	}
 
@@ -526,3 +532,3 @@
 }
 
-?>
+
