$extraOpts['submit'] = Xml::submitbutton( wfMsg('allpagessubmit') );
return $extraOpts;
}
-
- function setTopText( &$out, $opts ){}
-
+
+ function setTopText( &$out, $opts ) {
+ global $wgOut, $wgUser;
+ $skin = $wgUser->getSkin();
+ $wgOut->setSubtitle( wfMsg( 'recentchangeslinked-backlink', $skin->link( $this->mTargetTitle, $this->mTargetTitle->getPrefixedText(), array(), array( 'redirect' => 'no' ) ) ) );
+ }
+
function setBottomText( &$out, $opts ){
if( isset( $this->mTargetTitle ) && is_object( $this->mTargetTitle ) ){
global $wgUser;
$out->setFeedAppendQuery( "target=" . urlencode( $this->mTargetTitle->getPrefixedDBkey() ) );
- $out->addHTML("< ".$wgUser->getSkin()->makeLinkObj( $this->mTargetTitle, "", "redirect=no" )."<hr />\n");
}
if( isset( $this->mResultEmpty ) && $this->mResultEmpty ){
$out->addWikiMsg( 'recentchangeslinked-noresult' );
$this->selfTitle = SpecialPage::getTitleFor( 'Whatlinkshere', $this->target->getPrefixedDBkey() );
$wgOut->setPageTitle( wfMsg( 'whatlinkshere-title', $this->target->getPrefixedText() ) );
- $wgOut->setSubtitle( wfMsgHtml( 'linklistsub' ) );
-
- $wgOut->addHTML( wfMsgExt( 'whatlinkshere-barrow', array( 'escapenoentities') ) . ' ' .$this->skin->makeLinkObj($this->target, '', 'redirect=no' )."<br />\n");
+ $wgOut->setSubtitle( wfMsg( 'whatlinkshere-backlink', $this->skin->link( $this->target, $this->target->getPrefixedText(), array(), array( 'redirect' => 'no' ) ) ) );
$this->showIndirectLinks( 0, $this->target, $opts->getValue( 'limit' ),
$opts->getValue( 'from' ), $opts->getValue( 'back' ) );
# Recent changes linked
'recentchangeslinked' => 'Related changes',
'recentchangeslinked-title' => 'Changes related to "$1"',
+'recentchangeslinked-backlink' => '← $1', # only translate this message to other languages if you have to change it
'recentchangeslinked-noresult' => 'No changes on linked pages during the given period.',
'recentchangeslinked-summary' => "This is a list of changes made recently to pages linked from a specified page (or to members of a specified category).
Pages on [[Special:Watchlist|your watchlist]] are '''bold'''.",
# What links here
'whatlinkshere' => 'What links here',
-'whatlinkshere-title' => 'Pages that link to $1',
+'whatlinkshere-title' => 'Pages that link to "$1"',
'whatlinkshere-summary' => '', # do not translate or duplicate this message to other languages
'whatlinkshere-page' => 'Page:',
-'whatlinkshere-barrow' => '>', # only translate this message to other languages if you have to change it
-'linklistsub' => '(List of links)',
+'whatlinkshere-backlink' => '← $1', # only translate this message to other languages if you have to change it
'linkshere' => "The following pages link to '''[[:$1]]''':",
'nolinkshere' => "No pages link to '''[[:$1]]'''.",
'nolinkshere-ns' => "No pages link to '''[[:$1]]''' in the chosen namespace.",
'autocomment-prefix',
'listgrouprights-right-display',
'timezone-utc',
- 'whatlinkshere-barrow',
+ 'whatlinkshere-backlink',
+ 'recentchangeslinked-backlink',
);
/** EXIF messages, which may be set as optional in several checks, but are generally mandatory */
'recentchangeslinked' => array(
'recentchangeslinked',
'recentchangeslinked-title',
+ 'recentchangeslinked-backlink',
'recentchangeslinked-noresult',
'recentchangeslinked-summary',
'recentchangeslinked-page',
'whatlinkshere-title',
'whatlinkshere-summary',
'whatlinkshere-page',
- 'whatlinkshere-barrow',
- 'linklistsub',
+ 'whatlinkshere-backlink',
'linkshere',
'nolinkshere',
'nolinkshere-ns',