51 public function __construct( $prefix =
null,
$url =
'', $api =
'', $wikiId =
'', $local = 0,
54 $this->mPrefix = $prefix;
57 $this->mWikiID = $wikiId;
58 $this->mLocal = (bool)$local;
59 $this->mTrans = (bool)$trans;
71 public function getURL( $title =
null ) {
73 if ( $title !==
null ) {
124 $msg =
wfMessage(
'interwiki-name-' . $this->mPrefix )->inContentLanguage();
126 return !$msg->exists() ?
'' : $msg->text();
135 $msg =
wfMessage(
'interwiki-desc-' . $this->mPrefix )->inContentLanguage();
137 return !$msg->exists() ?
'' : $msg->text();
143class_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.