টেমপ্লেট:Deprecated template

Outdated documentation, kept for historical reasons.

ব্যবহার সম্পাদনা

The converter Template:Convert/spell will convert an amount and display the amount spelled in words. The resulting 2nd amount will be shown using a numeral ("330 ft"), unless option words=out is used. To set the rounding precision, the output unit must be specified, or put "0" to default.

Usage:     {{convert/spell |100|m|ft}}
{{convert/spell |1,234|km|mi|abbr=on}}
{{convert/spell |10.5|L|usgal|3}}
{{convert/spell |7|km|mi|case=u}}  - words with upper-case letter
{{convert/spell |7|km|mi|disp=x|long (|)}} - custom output

Use case=u to show an upper-case letter (capital letter) in the number. The template allows the same parameters as Template:Convert/old, and so it allows abbreviation abbr=in or abbr=out or abbr=none, wikilinks lk=in or lk=out, and adjective mode adj=on or adj=mid. The separator can also be a semicolon: disp=semi, disp=or, disp=comma, disp=x (customized), disp=sqbr (square brackets), disp=b (default as parentheses), disp=2 (or disp=out) and disp=# (or disp=number).

উদাহরণ সম্পাদনা

The examples show various options of conversions:

  • {{convert/spell |950|km|mi}} স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। কিলোমিটার (টেমপ্লেট:Choptext ৯৫০ কিমি (৫৯০ মা)*)
  • {{convert/spell |123|km|mi|abbr=on}} → স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। কিমি (টেমপ্লেট:Choptext ১২৩ কিমি (৭৬ মা)*)
  • {{convert/spell |95.1|km|mi|lk=out}} → স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। কিলোমিটার (টেমপ্লেট:Choptext ৯৫.১ কিমি (৫৯.১ মা)*)
  • {{convert/spell |140|ft|m|0}} স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। ফুট (টেমপ্লেট:Choptext ১৪০ ফু (৪৩ মি)*)
  • {{convert/spell |140|ft|m|words=out}} স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। ফুট (স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। ১৪০ ফুট (৪৩ মিটার)*)
  • {{convert/spell |140|ft|m|case=u }} স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। ফুট (টেমপ্লেট:Choptext ১৪০ ফু (৪৩ মি)*)
  • {{convert/spell |140|ft|m|sp=en }} স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। ফুট* (টেমপ্লেট:Choptext ১৪০ ফু (৪৩ মি)*)
  • {{convert/spell |1/2|ft|cm|words=out}} → one-half ফুট (স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। ফুট (১৫ সেন্টিমিটার)*)
  • {{convert/spell |1/2|mi}}     → one-half মাইল (টেমপ্লেট:Choptext  মা (০.৮০ কিমি)*)
  • {{convert/spell |2+1/2|mi}} → স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। and one-half মাইল (টেমপ্লেট:Choptext + মা (৪.০ কিমি)*)
  • {{convert/spell |2+3/2|mi}} → স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। and three-half মাইল (টেমপ্লেট:Choptext + মা (৫.৬ কিমি)*)
  • {{convert/spell |4+7/10|ft}} → স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। and seven-tenths ফুট (টেমপ্লেট:Choptext +১০ ফু (১.৪ মি)*)
  • {{convert/spell |6+50/100|ft}} → স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। and class="error">স্ক্রিপ্ট ত্রুটি: ফাংশন "numeral_to_english" নেই। ফুট (টেমপ্লেট:Choptext +৫০১০০ ফু (১.৯৮ মি)*)

Display types: disp=comma, disp=semi, disp=or, disp=out, disp=number, disp=x and disp=b. The numeric results are identical to using Template:Convert to show numerals instead of words.

সাধারণ সমস্যা সম্পাদনা

Note the name of this template is "convert/spell" and omitting the suffix "/spell" will not show words for numbers. Also, putting "spell" as parameter 1 will cause the number to be treated as a template name "Convert/<number>" such as {{convert|spell|34|km}} will show "[রূপান্তর: অকার্যকর সংখ্যা]" or "[Convert: Invalid number]" due to using word "spell" as a parameter.

The amount is followed by a unit-code (such as "|m") as the 2nd parameter. The output unit-code can be "0" as the 3rd parameter, to allow the default output unit to be triggered, while setting parameter 4 to a rounding precision (such as "|5") or use r=5 to set the rounding level.