বিষয়বস্তুতে চলুন

টেমপ্লেট:INRConvert

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে


টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]


উদ্দেশ্য

[সম্পাদনা]

উইকিপিডিয়ায় ভারত সম্পর্কিত নিবন্ধগুলিতে বা যেখানে উপযুক্ত সেখানে ব্যবহারের জন্য স্বয়ংক্রিয়ভাবে ভারতীয় রুপি (রুপি) থেকে মার্কিন যুক্তরাষ্ট্র ডলারে (মার্কিন ডলার) মুদ্রা রূপান্তর এবং ফর্ম্যাট করতে। প্রকৃত রুপি-ডলার বিনিময় হার মার্কিন যুক্তরাষ্ট্রের উইকিপিডিয়া সম্পাদক দ্বারা প্রতি সপ্তাহে ম্যানুয়ালি অনুলিপি করা হয়। ফেডারেল রিজার্ভ তথ্য রিপোর্ট এবং এই টেমপ্লেটে পোস্ট করা হয়েছে। রূপান্তরটি উইকিপিডিয়া সম্পাদকের পোস্ট করা মান থেকে মার্কিন ডলারে রূপান্তর করা হয়। আউটপুট বর্তমান বিনিময় হার প্রতিফলিত করে না; বরং, আউটপুট টেমপ্লেট বিনিময় গুণক আপডেট করার সময় উইকিপিডিয়া সম্পাদক দ্বারা পোস্ট করা এক্সচেজ হার প্রতিফলিত করে।

ব্যবহার

[সম্পাদনা]

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

স্থিতিমাপসমূহ

[সম্পাদনা]

টেমপ্লেটের প্যারামিটারগুলির একটি বিবরণ নীচে তালিকাভুক্ত করা হয়েছে।

Field name Usage Description
rupee_value mandatory The value, in Indian Rupees, 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 cents. 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 United States Federal Reserve online. Data sourced from the Federal Reserve is public domain.

উদাহরণ

[সম্পাদনা]

আইএনআরকনভার্ট সিনট্যাক্স ফলাফল
{{INRConvert|1}}  ১ (ইউএস$ ০.০১)
{{INRConvert|500}}  ৫০০ (ইউএস$ ৬.১১)
{{INRConvert|0.05}} পয়সা (১¢ থেকে কম)
{{INRConvert|0.86}} ৮৬ পয়সা (১¢)
{{INRConvert|30|l}}  ৩০ লাখ (ইউএস$ ৩৬,৭০০)
{{INRConvert|30|m}}  ৩০ মিলিয়ন (ইউএস$ ৩,৬৬,৬৯৯)
{{INRConvert|0.72|m}}  ০.৭২ মিলিয়ন (ইউএস$ ৮,৮০০.৭৮)
{{INRConvert|36|b}}  ৩৬ বিলিয়ন (ইউএস$ ৪৪০.০৪ মিলিয়ন)
{{INRConvert|36|b|-2}}  ৩৬ বিলিয়ন (ইউএস$ ৪০০ মিলিয়ন)
{{INRConvert|80|B}}  ০.৮০ বিলিয়ন (ইউএস$ ৯.৭৮ মিলিয়ন)
{{INRConvert|32|t}}  ৩২ ট্রিলিয়ন (ইউএস$ ৩৯১.১৫ বিলিয়ন)
{{INRConvert|400|c}}  ৪০০ কোটি (ইউএস$ ৪৮.৮৯ মিলিয়ন)
{{INRConvert|400|c|0}}  ৪০০ কোটি (ইউএস$ ৪৯ মিলিয়ন)
{{INRConvert|19|k}} ১৯,০০০ (ইউএস$ ২৩২.২৪)
{{INRConvert|53|m|0|nolink=yes}} Rs. 53 মিলিয়ন (US$ ৬,৪৭,৮৩৪.৯)