+ wfRunHooks('SpecialContributionsBeforeMainOutput', $id );
+
+ $arr = $wgContLang->getFormattedNamespaces();
+ $nsform = "<form method='get' action=\"$wgScript\">\n";
+ $nsform .= wfElement('input', array(
+ 'name' => 'title',
+ 'type' => 'hidden',
+ 'value' => $wgTitle->getPrefixedText()));
+ $nsform .= wfElement('input', array(
+ 'name' => 'offset',
+ 'type' => 'hidden',
+ 'value' => $offset));
+ $nsform .= wfElement('input', array(
+ 'name' => 'limit',
+ 'type' => 'hidden',
+ 'value' => $limit));
+ $nsform .= wfElement('input', array(
+ 'name' => 'target',
+ 'type' => 'hidden',
+ 'value' => $target));
+ $nsform .= '<p>';
+ $nsform .= wfMsgHtml('namespace');
+
+ $nsform .= HTMLnamespaceselector( $ns, '' );
+
+ $nsform .= wfElement('input', array(
+ 'type' => 'submit',
+ 'value' => wfMsg('allpagessubmit')));
+ $nsform .= "</p></form>\n";
+
+ $wgOut->addHTML($nsform);
+