For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
Index: trunk/phase3/includes/CoreParserFunctions.php =================================================================== --- trunk/phase3/includes/CoreParserFunctions.php (revision 32011) +++ trunk/phase3/includes/CoreParserFunctions.php (revision 32012) @@ -138,8 +138,12 @@ } } - static function formatNum( $parser, $num = '' ) { - return $parser->getFunctionLang()->formatNum( $num ); + static function formatNum( $parser, $num = '', $raw = null) { + if ( self::israw( $raw ) ) { + return $parser->getFunctionLang()->parseFormattedNumber( $num ); + } else { + return $parser->getFunctionLang()->formatNum( $num ); + } } static function grammar( $parser, $case = '', $word = '' ) { Index: trunk/phase3/RELEASE-NOTES =================================================================== --- trunk/phase3/RELEASE-NOTES (revision 32011) +++ trunk/phase3/RELEASE-NOTES (revision 32012) @@ -44,6 +44,7 @@ * When a page doesn't exist, the tab should say "create", not "edit" * (bug 12882) Added a span with class "patrollink" arround "Mark as patrolled" link on diffs +* Magic word formatnum can now take raw suffix to undo formatting === Bug fixes in 1.13 ===