सांचो:Formatnum/doc
This template uses Lua: |
This is a documentation subpage for सांचो:Terminate sentence It contains usage information, categories and other content that is not part of the original सांचो page. |
<translate> </translate>
This template formats a number in the local format (local numerals, local thousands separator, decimal separator and the pattern of separators [some languages for example have a ten-thousands separator]) of the user's preferred language.
== <translate> Usage</translate> ==
{{Formatnum |1= |2= |sep= |prec= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 number | empty | required | ||
2 lang | {{int:lang}} | optional | ||
sep | empty | optional | ||
prec | empty | optional |
Lua error in एकक:Autotranslate at line 72: No fallback page found for autotranslate (base=Template:TemplateDataInfo/i18n, lang=⧼lang⧽).
This template formats a number in the local format (local numerals, local thousands separator, decimal separator and the pattern of separators [some languages for example have a ten-thousands separator]) of the user's preferred language.
|
=== <translate> Additional information</translate> === <translate> The template is intended to be used in the following namespaces:</translate> <translate> the Template namespace</translate>
<translate> The template is intended to be used by the following user groups:</translate> <translate> all users</translate>
<translate>
Relies on:</translate>
Module:Formatnum
== <translate>
⧼Seealso⧽</translate> ==
<translate>
</translate>
{{Formatnum4}} for numbers 4 digits or shorter.
== <translate> Localization</translate> ==
<translate> This template is not intended to be localized.</translate>
<translate> </translate>
Internationalization is made using MediaWiki's built-in number formatter (except for some languages not yet supported in MediaWiki).
Examples
{{formatnum|100000}}
→ 100000{{formatnum|100000|sep=0}}
→ 100000{{formatnum|100000|sep=no}}
→ 100000{{formatnum|12345.67}}
→ 12345.67{{formatnum|-102}}
→ -102{{formatnum|1234567890|ar}}
→ ١٬٢٣٤٬٥٦٧٬٨٩٠
Remark
- It is not compatible with tables sorting. The value is not detected as a number.