Enclose tool links by s span with a class.
Especially I see no need for the extra linebreak
$modes = array( 'view' => false, 'edit' => 'edit', 'raw' => 'raw' );
foreach( $modes as $mode => $subpage ) {
// can use messages 'watchlisttools-view', 'watchlisttools-edit', 'watchlisttools-raw'
- $tools[] = $skin->link(
+ $tools[] = $skin->linkKnown(
SpecialPage::getTitleFor( 'Watchlist', $subpage ),
- wfMsgHtml( "watchlisttools-{$mode}" ),
- array(),
- array(),
- array( 'known', 'noclasses' )
+ wfMsgHtml( "watchlisttools-{$mode}" )
);
}
- return $wgLang->pipeList( $tools );
+ return Html::rawElement( 'span',
+ array( 'class' => 'mw-watchlist-toollinks' ),
+ wfMsg( 'parentheses', $wgLang->pipeList( $tools ) ) );
}
}
$wgOut->setPageTitle( wfMsg( 'watchlist' ) );
- $sub = wfMsgExt( 'watchlistfor', 'parseinline', $wgUser->getName() );
- $sub .= '<br />' . WatchlistEditor::buildTools( $wgUser->getSkin() );
+ $sub = wfMsgExt( 'watchlistfor2', array( 'parseinline', 'replaceafter' ), $wgUser->getName(), WatchlistEditor::buildTools( $wgUser->getSkin() ) );
$wgOut->setSubtitle( $sub );
if( ( $mode = WatchlistEditor::getMode( $wgRequest, $par ) ) !== false ) {
# Watchlist
'watchlist' => 'My watchlist',
'mywatchlist' => 'My watchlist',
-'watchlistfor' => "(for '''$1''')",
+'watchlistfor2' => 'For $1 $2',
'nowatchlist' => 'You have no items on your watchlist.',
'watchlistanontext' => 'Please $1 to view or edit items on your watchlist.',
'watchnologin' => 'Not logged in',
'mywatchlist' => 'Link at the upper right corner of the screen.
{{Identical|My watchlist}}',
-'watchlistfor' => 'Subtitle on [[Special:Watchlist]].
+'watchlistfor2' => 'Subtitle on [[Special:Watchlist]].
*$1: Username of current user
+*$2: Tool links (View relevant changes | View and edit watchlist | Edit raw watchlist)
{{Identical|For $1}}',
'nowatchlist' => 'Displayed when there is no pages in the watchlist.',
'watchlistanontext' => '* $1 is a link to [[Special:UserLogin]] with {{msg-mw|loginreqlink}} as link description',
'watchlist' => array(
'watchlist',
'mywatchlist',
- 'watchlistfor',
+ 'watchlistfor2',
'nowatchlist',
'watchlistanontext',
'watchnologin',