return '';
}
- # Separator
- $sep = wfMsgExt( 'catseparator', array( 'parsemag', 'escapenoentities' ) );
-
// Use Unicode bidi embedding override characters,
// to make sure links don't smash each other up in ugly ways.
$dir = $wgContLang->getDir();
- $embed = "<span dir='$dir'>";
- $pop = '</span>';
+ $embed = "<li dir='$dir'>";
+ $pop = "</li>";
$allCats = $out->getCategoryLinks();
$s = '';
$colon = wfMsgExt( 'colon-separator', 'escapenoentities' );
if ( !empty( $allCats['normal'] ) ) {
- $t = $embed . implode( "{$pop} {$sep} {$embed}" , $allCats['normal'] ) . $pop;
+ $t = $embed . implode( "{$pop} {$embed}" , $allCats['normal'] ) . $pop;
$msg = wfMsgExt( 'pagecategories', array( 'parsemag', 'escapenoentities' ), count( $allCats['normal'] ) );
$s .= '<div id="mw-normal-catlinks">' .
Linker::link( Title::newFromText( wfMsgForContent( 'pagecategorieslink' ) ), $msg )
- . $colon . $t . '</div>';
+ . $colon . '<ul>' . $t . '</ul>' . '</div>';
}
# Hidden categories
$s .= "<div id=\"mw-hidden-catlinks\" class=\"$class\">" .
wfMsgExt( 'hidden-categories', array( 'parsemag', 'escapenoentities' ), count( $allCats['hidden'] ) ) .
- $colon . $embed . implode( "$pop $sep $embed", $allCats['hidden'] ) . $pop .
+ $colon . '<ul>' . $embed . implode( "{$pop} {$embed}" , $allCats['hidden'] ) . $pop . '</ul>' .
'</div>';
}
'accesskey-t-specialpages',
'accesskey-t-whatlinkshere',
'anonnotice',
- 'catseparator',
'colon-separator',
'currentevents',
'currentevents-url',
'confirm-unwatch-top' => 'Remove this page to your watchlist?',
# Separators for various lists, etc.
-'catseparator' => '|', # only translate this message to other languages if you have to change it
'semicolon-separator' => '; ', # only translate this message to other languages if you have to change it
'comma-separator' => ', ', # only translate this message to other languages if you have to change it
'colon-separator' => ': ', # only translate this message to other languages if you have to change it
$s .= '<font size="-1"><span id="langlinks">';
$s .= str_replace( '<br />', '', $this->otherLanguages() );
- $cat = $this->getSkin()->getCategoryLinks();
+ $cat = '<div id="catlinks" class="catlinks">' . $this->getSkin()->getCategoryLinks() . '</div>';
if( $cat ) {
$s .= "<br />$cat\n";
}
.thumbcaption { text-align: left; }
.magnify { float: right; }
+/**
+ * Categories
+ */
+#catlinks ul, #catlinks li {
+ display:inline;
+ margin: 0px;
+ list-style:none;
+ list-style-type:none;
+ list-style-image:none;
+}
+
+#catlinks li {
+ padding: 0 .7em;
+ border-left: 1px solid #AAA;
+}
+
+#catlinks li:first-child {
+ padding-left: .4em;
+ border-left: none;
+}
+
/**
* Hidden categories
*/