http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97403
Revision: 97403
Author: bawolff
Date: 2011-09-18 04:25:40 +0000 (Sun, 18 Sep 2011)
Log Message:
-----------
(bug 18424) Clean up paging links on Special:allpages and special:prefixindex.
*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.
Modified Paths:
--------------
trunk/phase3/RELEASE-NOTES-1.19
trunk/phase3/includes/specials/SpecialPrefixindex.php
trunk/phase3/resources/mediawiki.special/mediawiki.special.css
Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19 2011-09-18 04:07:06 UTC (rev 97402)
+++ trunk/phase3/RELEASE-NOTES-1.19 2011-09-18 04:25:40 UTC (rev 97403)
@@ -92,6 +92,8 @@
* 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.
Modified: trunk/phase3/includes/specials/SpecialPrefixindex.php
===================================================================
--- trunk/phase3/includes/specials/SpecialPrefixindex.php 2011-09-18
04:07:06 UTC (rev 97402)
+++ trunk/phase3/includes/specials/SpecialPrefixindex.php 2011-09-18
04:25:40 UTC (rev 97403)
@@ -197,6 +197,7 @@
}
}
+ $footer = '';
if ( $this->including() ) {
$out2 = '';
} else {
@@ -207,7 +208,7 @@
<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 @@
$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 );
}
}
Modified: trunk/phase3/resources/mediawiki.special/mediawiki.special.css
===================================================================
--- trunk/phase3/resources/mediawiki.special/mediawiki.special.css
2011-09-18 04:07:06 UTC (rev 97402)
+++ trunk/phase3/resources/mediawiki.special/mediawiki.special.css
2011-09-18 04:25:40 UTC (rev 97403)
@@ -25,7 +25,6 @@
}
.mw-allpages-nav {
text-align: right;
- font-size: smaller;
margin-bottom: 1em;
}
table.mw-allpages-table-form tr {
@@ -72,11 +71,12 @@
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 ****/
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs