Index: trunk/phase3/includes/CoreParserFunctions.php |
— | — | @@ -138,8 +138,12 @@ |
139 | 139 | } |
140 | 140 | } |
141 | 141 | |
142 | | - static function formatNum( $parser, $num = '' ) { |
143 | | - return $parser->getFunctionLang()->formatNum( $num ); |
| 142 | + static function formatNum( $parser, $num = '', $raw = null) { |
| 143 | + if ( self::israw( $raw ) ) { |
| 144 | + return $parser->getFunctionLang()->parseFormattedNumber( $num ); |
| 145 | + } else { |
| 146 | + return $parser->getFunctionLang()->formatNum( $num ); |
| 147 | + } |
144 | 148 | } |
145 | 149 | |
146 | 150 | static function grammar( $parser, $case = '', $word = '' ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -44,6 +44,7 @@ |
45 | 45 | * When a page doesn't exist, the tab should say "create", not "edit" |
46 | 46 | * (bug 12882) Added a span with class "patrollink" arround "Mark as patrolled" |
47 | 47 | link on diffs |
| 48 | +* Magic word formatnum can now take raw suffix to undo formatting |
48 | 49 | |
49 | 50 | === Bug fixes in 1.13 === |
50 | 51 | |