46 parent::__construct(
$entry );
47 $this->titleParser = $titleParser;
54 return [ $this->titleParser->parseTitle( $params[3] ) ];
63 $key = parent::getMessageKey();
65 if ( isset( $params[4] ) && $params[4] ===
'1' ) {
67 $key .=
'-noredirect';
74 $params = parent::getMessageParameters();
75 $oldname = $this->
makePageLink( $this->entry->getTarget(), [
'redirect' =>
'no' ] );
76 $newname = $this->
makePageLink( Title::newFromText( $params[3] ) );
86 || $this->entry->getSubtype() !==
'move'
87 || !$this->context->getAuthority()->isAllowed(
'move' )
93 $destTitle = Title::newFromText( $params[3] );
94 if ( !$destTitle || !$destTitle->exists() ) {
100 $this->
msg(
'revertmove' )->text(),
103 'wpOldTitle' => $destTitle->getPrefixedDBkey(),
104 'wpNewTitle' => $this->entry->getTarget()->getPrefixedDBkey(),
105 'wpReason' => $this->msg(
'revertmove-summary' )->inContentLanguage()->text(),
110 return $this->
msg(
'parentheses' )->rawParams( $revert )->escaped();
119 '5:bool:suppressredirect',
120 '4::target' =>
'4:title:target',
121 '5::noredir' =>
'5:bool:suppressredirect',
123 foreach ( $map as $index => $key ) {
124 if ( isset( $params[$index] ) ) {
125 $params[$key] = $params[$index];
126 unset( $params[$index] );
130 if ( !isset( $params[
'5:bool:suppressredirect'] ) ) {
131 $params[
'5:bool:suppressredirect'] =
false;
140class_alias( MoveLogFormatter::class,
'MoveLogFormatter' );
Parent class for all special pages.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name If you don't need a full Title object,...
getParameters()
Get the extra parameters stored for this message.