Template:Number format

This template converts a number (it only handles one input parameter on every call) into currency amounts, delimiting it per three digits, separated with a comma.

Note: This wiki is a substitute for the extension NumberFormat which is not (yet) available on wikia. Once it is, references to this template can be replaced by references to that extension.

Example: returns 1,234,567

{{#ifexpr: {{{1}}}>999|{{#expr:({{{1}}}-(({{{1}}mod1000000)*1000000))mod1000}},}}{{#expr:{{{1}}}-(({{{1}}}mod1000)*1000)}}