"Krinkle" posted a comment on MediaWiki.r100274.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100274#c28888

Commit summary for MediaWiki.r100274:

created basic reminder email functionality

Krinkle's comment:

I don't know about <code><nowiki>{{PLURAL:}}</nowiki></code>, but 
<code>mw.msg</code> takes a variadic list of arguments (excluding the first 
argument) and eventually stores it as an array in the <code>Message</code> 
instance for use in the variable replacement parser.

Expanding the steps, each of the following is the same :)
<pre>
mw.msg( 'foo', 'bar' );
mw.message( 'foo', bar' ).toString();
new Message( mw.messages, 'foo', [ 'bar' ] );
</pre>

Note that Message is not directly publicly accessible.  

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to