$wgOut->addHTML(
Xml::openElement( 'form', array( 'method' => 'post', 'action' => $titleObj->getLocalURL( 'action=submit' ), 'id' => 'movepage' ) ) .
- Xml::openElement( 'fieldset' ) .
- Xml::element( 'legend', null, wfMsg( 'move-page-legend' ) ) .
+ Xml::fieldset( wfMsg( 'move-page-legend' ) ) .
Xml::openElement( 'table', array( 'border' => '0', 'id' => 'mw-movepage-table' ) ) .
"<tr>
<td class='mw-label'>" .
$oldLink = "<span class='plainlinks'>[$oldUrl $oldText]</span>";
$newLink = "<span class='plainlinks'>[$newUrl $newText]</span>";
- $wgOut->addWikiMsg( 'movepage-moved', $oldLink, $newLink, $oldText, $newText );
+ $msgName = $createRedirect ? 'movepage-moved' : 'movepage-moved-noredirect';
+ $wgOut->addWikiMsg( $msgName, $oldLink, $newLink, $oldText, $newText );
# Now we move extra pages we've been asked to move: subpages and talk
# pages. First, if the old page or the new page is a talk page, we
'move-watch' => 'Watch this page',
'movepagebtn' => 'Move page',
'pagemovedsub' => 'Move succeeded',
-'movepage-moved' => '<big>\'\'\'"$1" has been moved to "$2"\'\'\'</big>', # The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.
+'movepage-moved' => '<big>\'\'\'"$1" has been moved to "$2"\'\'\'</big>
+
+A redirect has been created.', # The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.
+'movepage-moved-noredirect' => '<big>\'\'\'"$1" has been moved to "$2"\'\'\'</big>
+
+The creation of a redirect has been suppressed.', # The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.
'articleexists' => 'A page of that name already exists, or the name you have chosen is not valid.
Please choose another name.',
'cantmove-titleprotected' => 'You cannot move a page to this location, because the new title has been protected from creation',
'movepagebtn',
'pagemovedsub',
'movepage-moved',
+ 'movepage-moved-noredirect',
'articleexists',
'cantmove-titleprotected',
'talkexists',
'exif-orientation-7' => '0th row: right; 0th column: bottom',
'exif-orientation-8' => '0th row: left; 0th column: bottom',
'movepage-moved' => 'The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.',
+ 'movepage-moved-noredirect' => 'The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.',
'ipboptions' => 'display1:time1,display2:time2,...',
'protect-expiry-options' => 'display1:time1,display2:time2,...',
'metadata-fields' => 'Do not translate list items',