Index: SpecialWithoutinterwiki.php
===================================================================
--- SpecialWithoutinterwiki.php	(révision 32809)
+++ SpecialWithoutinterwiki.php	(copie de travail)
@@ -8,6 +8,7 @@
  */
 class WithoutInterwikiPage extends PageQueryPage {
 	private $prefix = '';
+	private $namespace = NS_MAIN;
 
 	function getName() {
 		return 'Withoutinterwiki';
@@ -16,6 +17,7 @@
 	function getPageHeader() {
 		global $wgScript, $wgContLang;
 		$prefix = $this->prefix;
+		$namespace = $this->namespace;
 		$t = SpecialPage::getTitleFor( $this->getName() );
 		$align = $wgContLang->isRtl() ? 'left' : 'right';
 
@@ -33,6 +35,14 @@
 				"</td>
 			</tr>
 			<tr>
+				<td align='$align'>" .
+					Xml::label( wfMsg( 'namespace' ), 'namespace' ) .
+				"</td>
+				<td>" .
+					Xml::namespaceSelector( $namespace, null ) . ' ' .
+				"</td>
+			</tr>
+			<tr>
 				<td align='$align'></td>
 				<td>" .
 					Xml::submitButton( wfMsgHtml( 'withoutinterwiki-submit' ) ) .
@@ -69,7 +79,7 @@
 		LEFT JOIN $langlinks
 		       ON ll_from = page_id
 		    WHERE ll_title IS NULL
-		      AND page_namespace=" . NS_MAIN . "
+		      AND page_namespace=" . $this->namespace . "
 		      AND page_is_redirect = 0
 			  {$prefix}";
 	}
@@ -77,6 +87,10 @@
 	function setPrefix( $prefix = '' ) {
 		$this->prefix = $prefix;
 	}
+	
+	function setNamespace( $ns = NS_MAIN ) {
+		$this->namespace = $ns;
+	}
 
 }
 
@@ -84,8 +98,10 @@
 	global $wgRequest;
 	list( $limit, $offset ) = wfCheckLimits();
 	$prefix = $wgRequest->getVal( 'prefix' );
+	$ns = $wgRequest->getInt( 'namespace' );
 	$wip = new WithoutInterwikiPage();
 	$wip->setPrefix( $prefix );
+	$wip->setNamespace( $ns );
 	$wip->doQuery( $offset, $limit );
 }
 
