Template:,/doc

From Darkan
Jump to navigation Jump to search
Documentation This is a documentation subpage for Template:,.
It contains usage information, categories, and other content that is not part of the original template page.

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