*
* First implemented with MediaWiki 1.17, the Message class is intented to
* replace the old wfMsg* functions that over time grew unusable.
*
* First implemented with MediaWiki 1.17, the Message class is intented to
* replace the old wfMsg* functions that over time grew unusable.
* between old and new functions.
*
* You should use the wfMessage() global function which acts as a wrapper for
* between old and new functions.
*
* You should use the wfMessage() global function which acts as a wrapper for
* @param $key: message key, or array of message keys to try and use the first non-empty message for
* @param $params Array message parameters
* @return Message: $this
* @param $key: message key, or array of message keys to try and use the first non-empty message for
* @param $params Array message parameters
* @return Message: $this
* Factory function that is just wrapper for the real constructor. It is
* intented to be used instead of the real constructor, because it allows
* chaining method calls, while new objects don't.
* Factory function that is just wrapper for the real constructor. It is
* intented to be used instead of the real constructor, because it allows
* chaining method calls, while new objects don't.
* Factory function accepting multiple message keys and returning a message instance
* for the first message which is non-empty. If all messages are empty then an
* instance of the first message key is returned.
* Factory function accepting multiple message keys and returning a message instance
* for the first message which is non-empty. If all messages are empty then an
* instance of the first message key is returned.
* In other words the parsing process cannot access the contents
* of this type of parameter, and you need to make sure it is
* sanitized beforehand. The parser will see "$n", instead.
* In other words the parsing process cannot access the contents
* of this type of parameter, and you need to make sure it is
* sanitized beforehand. The parser will see "$n", instead.
/**
* Add parameters that are numeric and will be passed through
* Language::formatNum before substitution
/**
* Add parameters that are numeric and will be passed through
* Language::formatNum before substitution
* Request the message in any language that is supported.
* As a side effect interface message status is unconditionally
* turned off.
* Request the message in any language that is supported.
* As a side effect interface message status is unconditionally
* turned off.
/**
* Request the message in the wiki's content language,
* unless it is disabled for this message.
/**
* Request the message in the wiki's content language,
* unless it is disabled for this message.
* Magic method implementation of the above (for PHP >= 5.2.0), so we can do, eg:
* $foo = Message::get($key);
* $string = "<abbr>$foo</abbr>";
* Magic method implementation of the above (for PHP >= 5.2.0), so we can do, eg:
* $foo = Message::get($key);
* $string = "<abbr>$foo</abbr>";
/**
* Returns the message text. {{-transformation is done and the result
* is escaped excluding any raw parameters.
/**
* Returns the message text. {{-transformation is done and the result
* is escaped excluding any raw parameters.
* @param $param String|Array: Parameter as defined in this class.
* @return Tuple(type, value)
* @throws MWException
* @param $param String|Array: Parameter as defined in this class.
* @return Tuple(type, value)
* @throws MWException
* @param $string String: Wikitext message contents
* @return string Wikitext with {{-constructs replaced with their values.
*/
* @param $string String: Wikitext message contents
* @return string Wikitext with {{-constructs replaced with their values.
*/