38 $params = parent::getMessageParameters();
40 $isRevLink = !empty(
$params[3] );
43 $target = $this->entry->getTarget();
50 $target = SpecialPage::getTitleValueFor(
'Log' );
56 $formattedNumber = $this->context->getLanguage()->formatNumNoSeparators( $id );
57 if ( $this->plaintext ) {
58 $link = $formattedNumber;
59 } elseif ( !$isRevLink || $target->exists() ) {
61 $target, $formattedNumber, [], $query );
63 $link = htmlspecialchars( $formattedNumber );
68 $params[3] = Message::rawParam( $link );
71 $params[4] = Message::rawParam( $link );