45 public function __construct( $prefix =
null,
$url =
'', $api =
'', $wikiId =
'', $local = 0,
48 $this->mPrefix = $prefix;
51 $this->mWikiID = $wikiId;
52 $this->mLocal = (bool)$local;
53 $this->mTrans = (bool)$trans;
65 public function getURL( $title =
null ) {
67 if ( $title !==
null ) {
118 $msg =
wfMessage(
'interwiki-name-' . $this->mPrefix )->inContentLanguage();
120 return !$msg->exists() ?
'' : $msg->text();
129 $msg =
wfMessage(
'interwiki-desc-' . $this->mPrefix )->inContentLanguage();
131 return !$msg->exists() ?
'' : $msg->text();
137class_alias( Interwiki::class,
'Interwiki' );
wfUrlencode( $s)
We want some things to be included as literal characters in our title URLs for prettiness,...
wfMessage( $key,... $params)
This is the function for getting translated interface messages.