সাঁচ:Infobox person/weight
|
|
This is for use in templates. For articles, please use {{Convert}}. |
|
|
This template is used on many pages, and changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them. |
| এই সাঁচে লুৱা ব্যৱহাৰ কৰে: |
This template is used to automatically add conversions of weight measurements displayed by Template:Infobox person and other infoboxes with a |weight= parameter.
Usage
[সম্পাদনা কৰক]{{Infobox
...
| label# = Weight
| data# = {{#if: {{{weight|}}} | {{Infobox person/weight|{{{weight}}}}} }}
...
}}
Examples
[সম্পাদনা কৰক]|weight=1 kilogram→ ১ কেজি (২ পাউণ্ড)|weight=108 kg.→ ১০৮ কেজি (২৩৮ পাউণ্ড)|weight=111kilograms→ ১১১ কেজি (২৪৫ পাউণ্ড)|weight=108 kgs.→ ১০৮ কেজি (২৩৮ পাউণ্ড)
|weight=1 pound→ 1 পাউণ্ড (০ কেজি)|weight=200 lb.→ 200 পাউণ্ড (৯১ কেজি)|weight=245pounds→ 245 পাউণ্ড (১১১ কেজি)|weight=238 lbs.→ 238 পাউণ্ড (১০৮ কেজি)
|weight=1 stone→ সাঁচ:Convert/st|weight=10 st.→ সাঁচ:Convert/st|weight=17stones→ সাঁচ:Convert/st|weight=17 sts.→ সাঁচ:Convert/st
|weight=17 stone, 7 pounds→ সাঁচ:Convert/st|weight=17 st. 7 lb.→ সাঁচ:Convert/st|weight=17stones 1pound→ সাঁচ:Convert/st|weight=17 sts. 1 lbs.→ সাঁচ:Convert/st
Text and/or footnotes (references) after weight:
|weight=108 kgs (2012)→ ১০৮ কেজি (২৩৮ পাউণ্ড) (2012)|weight=238 lbs<ref>citation goes here</ref>→ 238 পাউণ্ড (১০৮ কেজি)[1]|weight=238 lbs (2012)<ref>{{cite news|title=title|work=work}}</ref>→ 238 পাউণ্ড (১০৮ কেজি) (2012)[2]
- Example references
{{Convert}} templates, without and with wikilinked unit names:
|weight={{Convert|111|kg|lb stlb|abbr=off}}→ সাঁচ:Convert/LoffAnoneDbSoffসাঁচ:Convert/test/Aoff|weight={{Convert|111|kg|lb stlb|abbr=off|lk=on}}→ সাঁচ:Convert/LonAnoneDbSoffসাঁচ:Convert/test/Aoff|weight={{Convert|245|lb|kg stlb|abbr=off}}→ সাঁচ:Convert/LoffAnoneDbSoffসাঁচ:Convert/test/Aoff|weight={{Convert|245|lb|kg stlb|abbr=off|lk=on}}→ সাঁচ:Convert/LonAnoneDbSoffসাঁচ:Convert/test/Aoff
Weight ranges with input containing en dash (–):
|weight=108–111 kg→ এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "–" কেজি (এক্সপ্ৰেছন ত্ৰুটী: অবাঞ্চিত < অপাৰেটৰ পাউণ্ড)|weight=238–245 lb→ এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "–" পাউণ্ড (এক্সপ্ৰেছন ত্ৰুটী: অবাঞ্চিত < অপাৰেটৰ কেজি)|weight=17–18 st→ সাঁচ:Convert/st
Weight ranges with input containing hyphen (-); output is changed to en dash by {{Convert}}:
|weight=108-111 kg→ -−২১,৯০০ কেজি (−৭ পাউণ্ড)|weight=238-245 lb→ −−48,300 পাউণ্ড (−৩ কেজি)|weight=17-18 st→ সাঁচ:Convert/st
If a template uses {{infobox person/weight|{{{weight}}}|kg-stlb=yes}}, then an article using that template with an input in kg will display two conversions: lb followed by st/lb (default is one conversion to lb):
|weight=100 kg→ ১০০ কেজি (সাঁচ:Convert/lb stlb)|weight=108–111 kg→ এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "–" কেজি (সাঁচ:Convert/lb stlb)
If a template uses {{infobox person/weight|{{{weight}}}|lb-stlb=yes}}, then an article using that template with an input in lb will display two conversions: kg followed by st/lb (default is one conversion to kg):
|weight=200 lb→ 200 পাউণ্ড (সাঁচ:Convert/kg stlb)|weight=238-245 lb→ −−48,300 পাউণ্ড (সাঁচ:Convert/kg stlb)
Exceptions
[সম্পাদনা কৰক]Does not replace numbers in manually entered conversions, but does replace unit names with abbreviations (examples intentionally show incorrect conversions):
|weight=108 kilograms (229 pounds)→ 108 kg (229 lb)|weight=238 pounds (119 kilograms)→ 238 lb (119 kg)|weight=17 stone (229 pounds; 119 kilograms)→ 17 st (229 lb; 119 kg)
Does not replace numeric output of conversion templates such as {{convert}}, but does replace unit names with abbreviations (examples intentionally show different precision than usual):
|weight={{convert|108.1|kg|lb|1|abbr=off}}→ সাঁচ:Convert/LoffAnoneDbSoffসাঁচ:Convert/test/Aoff- output of convert template: সাঁচ:Convert/LoffAnoneDbSoffসাঁচ:Convert/test/Aoff
|weight={{convert|238.2|lb|kg|2|abbr=off}}→ সাঁচ:Convert/LoffAnoneDbSoffসাঁচ:Convert/test/Aoff- output of convert template: সাঁচ:Convert/LoffAnoneDbSoffসাঁচ:Convert/test/Aoff
|weight={{convert|17.3|st|1|abbr=off}}→ সাঁচ:Convert/stসাঁচ:Convert/test/Aoff- output of convert template: সাঁচ:Convert/stসাঁচ:Convert/test/Aoff
Areas for improvement
[সম্পাদনা কৰক]Conversion not displayed if unit name contains uppercase characters:
|weight=100 Kilograms→ 100 Kilograms|weight=100 KG→ 100 KG|weight=200 Pounds→ 200 Pounds|weight=200 LB→ 200 LB|weight=10 Stone→ 10 Stone|weight=10 ST→ 10 ST
| The above documentation is transcluded from সাঁচ:Infobox person/weight/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |