[Mediawiki-l] #expr problem

Jesse (Pathoschild) pathoschild at gmail.com
Mon Apr 19 11:22:49 UTC 2010


Ekompute .info <ekompute at gmail.com> wrote:
> Hi, I am wondering why the expression #expr is not functioning at my website
> at Teknologi-maklumat <http://teknologi-maklumat.jbdirectory.com>. I did
> install the Parserfunction extension and also set slow parser to true.
> [...]
> {{formatnum:{{#expr:{{PAGESINNS:102}}*3.5 round 0}}}}

Hello PM Poon,

#expr works fine on your wiki, but you cannot use commas in
mathematical expressions. {{PAGESINNS:102}} evaluates to "2,387", but
you can get a raw number (without comma) with {{PAGESINNS:102|R}}.

-- 
Yours cordially,
Jesse (Pathoschild)



More information about the MediaWiki-l mailing list