(bug 18424) Clean up paging links on Special:allpages and special:prefixindex.
authorBrian Wolff <bawolff@users.mediawiki.org>
Sun, 18 Sep 2011 04:25:40 +0000 (04:25 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Sun, 18 Sep 2011 04:25:40 +0000 (04:25 +0000)
*Make them normal font size (my eyes! my eyes! with the tiny writing)
*Special:prefindex needs a paging link on the bottom like special:allpages (added a class name here, because I couldn't use the existing id on both)
*special:prefindex was doing $wgLang->pipeList( "full html table here", "next link here" ) which was giving bad output for the obvious reason.

RELEASE-NOTES-1.19
includes/specials/SpecialPrefixindex.php
resources/mediawiki.special/mediawiki.special.css

index 6efeb24..9246d36 100644 (file)
@@ -92,6 +92,8 @@ production.
 * Allowing moving the associated talk pages of subpages even if the base page
   has no subpage.
 * (bug 30907) Special:Unusedcategories should sort ascendingly.
+* (bug 18424) Special:Prefixindex and Special:Allpages paging links are
+  really small, and somewhat inconsistent with each other.
 
 === API changes in 1.19 ===
 * (bug 19838) siprop=interwikimap can now use the interwiki cache.
index 3b64ee9..fd5005e 100644 (file)
@@ -197,6 +197,7 @@ class SpecialPrefixindex extends SpecialAllpages {
                        }
                }
 
+               $footer = '';
                if ( $this->including() ) {
                        $out2 = '';
                } else {
@@ -207,7 +208,7 @@ class SpecialPrefixindex extends SpecialAllpages {
                                        <td>' .
                                                $nsForm .
                                        '</td>
-                                       <td id="mw-prefixindex-nav-form">';
+                                       <td id="mw-prefixindex-nav-form" class="mw-prefixindex-nav">';
 
                        if( isset( $res ) && $res && ( $n == $this->maxPerPage ) && ( $s = $res->fetchObject() ) ) {
                                $query = array(
@@ -219,20 +220,21 @@ class SpecialPrefixindex extends SpecialAllpages {
                                        $query['namespace'] = $namespace;
                                }
 
-                               $out2 = $this->getLang()->pipeList( array(
-                                       $out2,
-                                       Linker::linkKnown(
+                               $nextLink = Linker::linkKnown(
                                                $self,
                                                wfMsgHtml( 'nextpage', str_replace( '_',' ', htmlspecialchars( $s->page_title ) ) ),
                                                array(),
                                                $query
-                                       )
-                               ) );
+                                       );
+                               $out2 .= $nextLink;
+
+                               $footer = "\n" . Html::element( "hr" )
+                                       . Html::rawElement( "div", array( "class" => "mw-prefixindex-nav" ), $nextLink );
                        }
                        $out2 .= "</td></tr>" .
                                Xml::closeElement( 'table' );
                }
 
-               $this->getOutput()->addHTML( $out2 . $out );
+               $this->getOutput()->addHTML( $out2 . $out . $footer );
        }
 }
index 1d04d16..412a3fc 100644 (file)
@@ -25,7 +25,6 @@ td.mw-allpages-alphaindexline {
 }
 .mw-allpages-nav {
        text-align: right;
-       font-size: smaller;
        margin-bottom: 1em;
 }
 table.mw-allpages-table-form tr {
@@ -72,11 +71,12 @@ table#mw-prefixindex-nav-table {
        width: 98%;
 }
 td#mw-prefixindex-nav-form {
-       font-size: smaller;
        margin-bottom: 1em;
-       text-align: right;
        vertical-align: top;
 }
+.mw-prefixindex-nav {
+       text-align: right;
+}
 
 
 /**** Special:Search ****/