"Nikerabbit" changed the status of MediaWiki.r114482 to "fixme" and commented
it.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/114482#c32515
Old Status: new
New Status: fixme
Commit summary for MediaWiki.r114482:
PageTriage: Add "unpatrolled" marker to pages that need triaging. Will
eventually turn into a "mark as patrolled" link.
Nikerabbit's comment:
<pre>
+ $msg = wfMessage( 'pagetriage-markpatrolled' )->parse();
+ $html = Html::element( 'div', array( 'class' =>
'mw-pagetriage-markpatrolled' ), $msg );
+
+ $wgOut->addHTML( $html );
</pre>
Just use something like this to avoid escaping the parsed html.
<pre>
$wrap = Html::element( 'div', array( 'class' => 'mw-pagetriage-markpatrolled'
), '$1' );
# OR
# $wrap = '<div class="mw-pagetriage-markpatrolled">$1</div>';
$wgOut->wrapWikiMsg( $wrap, 'pagetriage-markpatrolled' );
</pre>
You can drop the array() here (also fixes coding style).
$wgOut->addModules( array('ext.pageTriage.article') );
{{messagedocumentation}}
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview