Wrap the 'redirectedfrom' message in "mw-redirectedfrom" id
and then add it to commonPrint.css to hide it when printing.
Bug: 16296
Change-Id: I077bda9596c37b122a1f6964470d9d85108d834e
array( 'redirect' => 'no' )
);
array( 'redirect' => 'no' )
);
- $outputPage->addSubtitle( wfMessage( 'redirectedfrom' )->rawParams( $redir ) );
+ $outputPage->addSubtitle( "<span class=\"mw-redirectedfrom\">" .
+ wfMessage( 'redirectedfrom' )->rawParams( $redir )->parse()
+ . "</span>" );
// Add the script to update the displayed URL and
// set the fragment if one was specified in the redirect
// Add the script to update the displayed URL and
// set the fragment if one was specified in the redirect
// If it was reported from a trusted site, supply a backlink.
if ( $wgRedirectSources && preg_match( $wgRedirectSources, $rdfrom ) ) {
$redir = Linker::makeExternalLink( $rdfrom, $rdfrom );
// If it was reported from a trusted site, supply a backlink.
if ( $wgRedirectSources && preg_match( $wgRedirectSources, $rdfrom ) ) {
$redir = Linker::makeExternalLink( $rdfrom, $rdfrom );
- $outputPage->addSubtitle( wfMessage( 'redirectedfrom' )->rawParams( $redir ) );
+ $outputPage->addSubtitle( "<span class=\"mw-redirectedfrom\">" .
+ wfMessage( 'redirectedfrom' )->rawParams( $redir )->parse()
+ . "</span>" );
// Add the script to update the displayed URL
$outputPage->addJsConfigVars( array(
// Add the script to update the displayed URL
$outputPage->addJsConfigVars( array(
#filetoc,
.usermessage,
.patrollink,
#filetoc,
.usermessage,
.patrollink,
+.ns-0 .mw-redirectedfrom,
#mw-navigation,
#siteNotice {
display: none;
#mw-navigation,
#siteNotice {
display: none;