Template:Number in Persian

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


Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Number in Persian/doc.

The difference between this pattern and the {{formatnum:|nosep}} is that it not only persianizes English numbers, but also Arabic numbers such as 6. It is better to use the same formatnum where this feature does not need to be used.

Use

[edit]

This template takes the string containing the number and returns its digits to Persian.

{{number in Persian|3}} ← ۳
{{number in Persian|45-60}} ← ۴۵-۶۰
{{number in Persian|1234567890}} ← ۱۲۳۴۵۶۷۸۹۰
{{number in Persian|The text of 6 text}} ← Thon ۶ text