Template:Formatnum4

From Wikimedia Commons, the free media repository
Jump to: navigation, search


Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Formatnum4/doc.

translates a 4-digit (or shorter) positive integer to other languages. Lightweight alternative to {{Formatnum}}. If number is out of allowed range than the original is returned.

Usage

{{Formatnum4 |1= |2= }}

Template parameters

Parameter Description Default Status
1 positive integer between 0 and 9999 empty required
2 language code empty optional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Relies on:
{{formatnumDigit}}

See also

Lightweight alternative to {{Formatnum}}. Similar to {{#time}}

Examples

  • {{Formatnum4|2009}} → 2009
  • {{Formatnum4|123|en}} → 123
  • {{Formatnum4|12|de}} → 12
  • {{Formatnum4|1|es}} → 1
  • {{Formatnum4|12345}} → 12345
  • {{Formatnum4|-1}} → -1
  • {{Formatnum4|1234|kn}} → ೧೨೩೪
  • {{Formatnum4|12345|kn}} → 12345
  • {{Formatnum4|1234|mn}} → ᠑᠒᠓᠔
  • {{#time: Y|1234|mn}} → 1234
  • {{Formatnum4|1234|fa}} → ۱۲۳۴
  • {{#time: Y|1234|fa}} → ۱۲۳۴
  • {{Formatnum4|1234|bo}} → ༡༢༣༤
  • {{#time: Y|1234|bo}} → ༡༢༣༤