Index: skins/common/shared.css =================================================================== --- skins/common/shared.css (Revision 77483) +++ skins/common/shared.css (Arbeitskopie) @@ -823,6 +823,7 @@ overflow: hidden; font-size: 94%; padding: 2px 4px; + word-wrap: break-word; } table.mw-enhanced-rc { Index: includes/ImageGallery.php =================================================================== --- includes/ImageGallery.php (Revision 77483) +++ includes/ImageGallery.php (Arbeitskopie) @@ -257,11 +257,11 @@ if( !$img ) { # We're dealing with a non-image, spit out the name and be done with it. - $thumbhtml = "\n\t\t\t".'
' + $thumbhtml = "\n\t\t\t".'
' . htmlspecialchars( $nt->getText() ) . '
'; } elseif( $this->mHideBadImages && wfIsBadImage( $nt->getDBkey(), $this->getContextTitle() ) ) { # The image is blacklisted, just show it as a text link. - $thumbhtml = "\n\t\t\t".'
' . + $thumbhtml = "\n\t\t\t".'
' . $sk->link( $nt, htmlspecialchars( $nt->getText() ), @@ -272,10 +272,10 @@ '
'; } elseif( !( $thumb = $img->transform( $params ) ) ) { # Error generating thumbnail. - $thumbhtml = "\n\t\t\t".'
' + $thumbhtml = "\n\t\t\t".'
' . htmlspecialchars( $img->getLastError() ) . '
'; } else { - $vpad = floor( ( 1.25*$this->mHeights - $thumb->height ) /2 ) - 2; + $vpad = floor(( 30 + $this->mHeights - $thumb->height ) /2); $imageParameters = array( 'desc-link' => true, @@ -285,13 +285,15 @@ if ( $text == '' ) { $imageParameters['alt'] = $nt->getText(); } - + + # Set both fixed width and height. Otherwise we might have problems + # with the vertical centering of images where height' + '
' # Auto-margin centering for block-level elements. Needed now that we have video # handlers since they may emit block-level elements as opposed to simple tags. # ref http://css-discuss.incutio.com/?page=CenteringBlockElement - . '
' + . '
' . $thumb->toHtml( $imageParameters ) . '
'; // Call parser transform hook