Template:,

From Darkan
Jump to navigation Jump to search

{{{1}}}

[view] [edit] [purge] Template documentation

This documentation is transcluded from Template:,/doc.

The , template is a special template used to remove "group separator" commas from numbers that are used in expressions to prevent an expression error from occuring:

Expression error: Unrecognised punctuation character ","

This template is used in Template:ExchangeItem to remove commas that users might have been included in Exchange prices.

Usage

  • {{,|number}}
  • {{,|expression}}

Examples

  • {{#expr:1,234,746}} gives Expression error: Unrecognized punctuation character ",".
  • {{#expr:{{,|1,234,746}}}} gives 1234746
  • {{#expr:1,234+473,872}} gives Expression error: Unrecognized punctuation character ",".
  • {{#expr:{{,|1,234+473,872}}}} gives 475106