'mediawiki.special',
'mediawiki.special.changeslist',
] );
+ $out->addModules( 'mediawiki.special.recentchanges' );
$this->addHelpLink( 'Help:User contributions' );
$this->opts = [];
$output = $pager->getBody();
if ( !$this->including() ) {
- $output = '<p>' . $pager->getNavigationBar() . '</p>' .
+ $output = $pager->getNavigationBar() .
$output .
- '<p>' . $pager->getNavigationBar() . '</p>';
+ $pager->getNavigationBar();
}
$out->addHTML( $output );
}
$message = 'sp-contributions-footer';
}
- if ( $message ) {
- if ( !$this->including() ) {
- if ( !$this->msg( $message, $target )->isDisabled() ) {
- $out->wrapWikiMsg(
- "<div class='mw-contributions-footer'>\n$1\n</div>",
- [ $message, $target ] );
- }
- }
+ if ( $message && !$this->including() && !$this->msg( $message, $target )->isDisabled() ) {
+ $out->wrapWikiMsg(
+ "<div class='mw-contributions-footer'>\n$1\n</div>",
+ [ $message, $target ] );
}
}
}
$links = '';
if ( $talk ) {
$tools = self::getUserLinks( $this, $userObj );
- $links = $this->getLanguage()->pipeList( $tools );
+ $links = Html::openElement( 'span', [ 'class' => 'mw-changeslist-links' ] );
+ foreach ( $tools as $tool ) {
+ $links .= Html::rawElement( 'span', [], $tool ) . ' ';
+ }
+ $links = trim( $links ) . Html::closeElement( 'span' );
// Show a note if the user is blocked and display the last block log entry.
// Do not expose the autoblocks, since that may lead to a leak of accounts' IPs,
}
}
- return $this->msg( 'contribsub2' )->rawParams( $user, $links )->params( $userObj->getName() );
+ return Html::rawElement( 'div', [ 'class' => 'mw-contributions-user-tools' ],
+ $this->msg( 'contributions-subtitle' )->rawParams( $user )->params( $userObj->getName() )
+ . ' ' . $links
+ );
}
/**
$labelNewbies . '<br>' . $labelUsername . ' ' . $input . ' '
);
+ $hidden = $this->opts['namespace'] === '' ? ' mw-input-hidden' : '';
$namespaceSelection = Xml::tags(
'div',
[],
) . "\u{00A0}" .
Html::rawElement(
'span',
- [ 'class' => 'mw-input-with-label' ],
+ [ 'class' => 'mw-input-with-label' . $hidden ],
Xml::checkLabel(
$this->msg( 'invert' )->text(),
'nsInvert',
- 'nsInvert',
+ 'nsinvert',
$this->opts['nsInvert'],
[
'title' => $this->msg( 'tooltip-invert' )->text(),
]
) . "\u{00A0}"
) .
- Html::rawElement( 'span', [ 'class' => 'mw-input-with-label' ],
+ Html::rawElement( 'span', [ 'class' => 'mw-input-with-label' . $hidden ],
Xml::checkLabel(
$this->msg( 'namespace_association' )->text(),
'associated',
- 'associated',
+ 'nsassociated',
$this->opts['associated'],
[
'title' => $this->msg( 'tooltip-namespace_association' )->text(),