On Sun, Feb 1, 2009 at 12:39 AM, Tim Starling tstarling@wikimedia.org wrote:
I would rather have an application-specific number formatting function, rather than a character-counting function. It could be similar to PHP's number_format(). Wikitext is a terrible programming language, slow to execute and hard to understand. It's much better to write in PHP.
Note that {{val}} uses at least a few strange HTML-specific hacks, like using CSS instead of space characters to create spaces between the digit groups (for copy-paste purposes). Something that would work like {{val}} would be considerably different from number_format().