الگو:INRConvert/توضیحات

از ویکی‌پدیا، دانشنامهٔ آزاد


Purpose[ویرایش]

To automatically convert and format یکای پول from روپیه هندs (Rs.) to دلار آمریکاs. (US$) for use on هند-related articles on Wikipedia or wherever appropriate. The actual Rupee-Dollar exchange rate is manually copied each week by a Wikipedia editor from the U.S. Federal Reserve reported data and posted into this template. The conversion is from the value posted by the Wikipedia editor into U.S. dollars. The output does not reflect the present exchange rate; rather, the output reflects the exchage rate posted by the Wikipedia editor at the time the template exchange multiplier is updated.

Usage[ویرایش]

{{INRConvert|rupee_value|currency_formatting|rounding digits|nolink=(yes/no)}}

Parameters[ویرایش]

A description of the template's parameters are listed below.

Field name Usage Description
rupee_value mandatory The value, in روپیه هندs, that needs to be converted. The template will not accept pre-formatted values (ie. 1,234)
currency_formatting optional Used to represent larger numbers. Available options include :
  • k – to represent thousands
  • l – to represent lakhs
  • c – to represent crores
  • m – to represent millions
  • b – to represent billions
  • t – to represent trillions
rounding_digits optional Used to round significant digits. The default value for most numbers with currency formatting is "2" (representing the two digits of paise and سنت (واحد پول)s. Negative values (-2, -3) can be used to round values to the nearest hundred or thousand, etc. A value of "0" will drop paise or cent values from the converted number.
Refer to the Examples section below for more examples.
nolink optional This parameter gives you the option of not internally linking currency names (Rupees and US$). By default, the parameter is set to "no" (ie. it is set to link Rupees and US$). Currency names will be displayed with no links when the parameter is set to "yes".
Foreign Exchange Data Source
This template will always aim to convert Indian Rupees at current Dollar prices. Source data for INR > USD rates is obtained from the فدرال رزرو online. Data sourced from the Federal Reserve is مالکیت عمومی.

Examples[ویرایش]

INRConvert syntax Results
{{INRConvert|1}} INR۱ ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|1|0 year={{{year}}}}})
{{INRConvert|500}} INR۵۰۰ ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|500|0 year={{{year}}}}})
{{INRConvert|0.05}} 0.05|0 year={{{year}}}}})
{{INRConvert|0.86}} 0.86|0 year={{{year}}}}})
{{INRConvert|30|m}} INR۳۰ million ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|30|6 year={{{year}}}}})
{{INRConvert|0.72|m}} INR۰٫۷۲ million ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|0.72|6 year={{{year}}}}})
{{INRConvert|36|b}} INR۳۶ billion ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|36|9 year={{{year}}}}})
{{INRConvert|36|b|-2}} INR۳۶ billion ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|36|9|-2|USD|year={{{year}}}}})
{{INRConvert|80|B}} INR۰٫۸۰ billion ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|0.80|9 year={{{year}}}}})
{{INRConvert|32|t}} INR۳۲ trillion ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|32|12 year={{{year}}}}})
{{INRConvert|400|c}} INR۴۰۰ crore ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|400|7 year={{{year}}}}})
{{INRConvert|400|c|0}} INR۴۰۰ crore ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|400|7|0|USD|year={{{year}}}}})
{{INRConvert|19|k}} INR۱۹٬۰۰۰ ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|19|3 year={{{year}}}}})
{{INRConvert|53|m|0|nolink=yes}} INR۵۳ million ({{INRConvert/خطای عبارت: نویسه نقطه‌گذاری شناخته نشده «۱»|53|6|2|USD|year={{{year}}}}})