60 parent::__construct( $text, $params );
96 if ( $this->message ===
null ) {
99 $prefix .=
'<span class="apihelp-deprecated">' .
100 $this->subMessage(
'api-help-param-deprecated' ) .
102 $this->subMessage(
'word-separator' );
105 $prefix .=
'<span class="apihelp-internal">' .
106 $this->subMessage(
'api-help-param-internal' ) .
108 $this->subMessage(
'word-separator' );
110 $this->message =
";<span dir=\"ltr\" lang=\"en\">{$this->paramValue}</span>:"
111 . $prefix . parent::fetchMessage();
116 private function subMessage(
$key ) {
122 return $msg->fetchMessage();
Message subclass that prepends wikitext for API help.
isInternal()
Fetch the 'internal' flag.
__construct( $paramValue, $text, $params=[], $deprecated=false, $internal=false)
getParamValue()
Fetch the parameter value.
isDeprecated()
Fetch the 'deprecated' flag.
The Message class deals with fetching and processing of interface message into a variety of formats.
bool $useDatabase
Whether database can be used.
string null false $message
string $key
The message key.
PageReference $contextPage
page object to use as context.
Language false $language
In which language to get this message.
bool $interface
In which language to get this message.