version
* (bug 12952) Using Nosuchusershort instead of Nosuchuser when account creation
is disabled
+* (bug 12869) Magnify icon alignment should be adjusted using linked CSS
== Parser changes in 1.12 ==
$url = $title->getLocalURL( $query );
$more = htmlspecialchars( wfMsg( 'thumbnail-more' ) );
- $magnifyalign = $wgContLang->isRTL() ? 'left' : 'right';
- $textalign = $wgContLang->isRTL() ? ' style="text-align:right"' : '';
$s = "<div class=\"thumb t{$fp['align']}\"><div class=\"thumbinner\" style=\"width:{$outerWidth}px;\">";
if( !$exists ) {
if ( isset( $fp['framed'] ) ) {
$zoomicon="";
} else {
- $zoomicon = '<div class="magnify" style="float:'.$magnifyalign.'">'.
+ $zoomicon = '<div class="magnify">'.
'<a href="'.$url.'" class="internal" title="'.$more.'">'.
'<img src="'.$wgStylePath.'/common/images/magnify-clip.png" ' .
'width="15" height="11" alt="" /></a></div>';
}
}
- $s .= ' <div class="thumbcaption"'.$textalign.'>'.$zoomicon.$fp['caption']."</div></div></div>";
+ $s .= ' <div class="thumbcaption">'.$zoomicon.$fp['caption']."</div></div></div>";
return str_replace("\n", ' ', $s);
}
td.mw-label { vertical-align: top; }
td.mw-submit { white-space: nowrap; }
+
+/**
+ * Lists (fixing for RTL display_
+ */
+body.rtl #body-content ul { display:table; }
+body.rtl #body-content ol { display:table; }
+
+/**
+ * Image captions
+ */
+body.rtl .thumbcaption { text-aling:right; }
+body.rtl .magnify { float:left; }
+
+body.ltr .thumbcaption { text-aling:left; }
+body.ltr .magnify { float:right; }
\ No newline at end of file