32 parent::__construct(
$entry );
33 $this->titleParser = $titleParser;
41 return [ $this->titleParser->parseTitle( $params[3] ) ];
51 $key = parent::getMessageKey();
53 if ( isset( $params[4] ) && $params[4] ===
'1' ) {
55 $key .=
'-noredirect';
63 $params = parent::getMessageParameters();
64 $oldname = $this->
makePageLink( $this->entry->getTarget(), [
'redirect' =>
'no' ] );
65 $newname = $this->
makePageLink( Title::newFromText( $params[3] ) );
76 || $this->entry->getSubtype() !==
'move'
77 || !$this->context->getAuthority()->isAllowed(
'move' )
83 $destTitle = Title::newFromText( $params[3] );
84 if ( !$destTitle || !$destTitle->exists() ) {
90 $this->
msg(
'revertmove' )->text(),
93 'wpOldTitle' => $destTitle->getPrefixedDBkey(),
94 'wpNewTitle' => $this->entry->getTarget()->getPrefixedDBkey(),
95 'wpReason' => $this->msg(
'revertmove-summary' )->inContentLanguage()->text(),
100 return $this->
msg(
'parentheses' )->rawParams( $revert )->escaped();
110 '5:bool:suppressredirect',
111 '4::target' =>
'4:title:target',
112 '5::noredir' =>
'5:bool:suppressredirect',
114 foreach ( $map as $index => $key ) {
115 if ( isset( $params[$index] ) ) {
116 $params[$key] = $params[$index];
117 unset( $params[$index] );
121 if ( !isset( $params[
'5:bool:suppressredirect'] ) ) {
122 $params[
'5:bool:suppressredirect'] =
false;
131class_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.