টেমপ্লেট:Infobox person/length/নথি
এটি টেমপ্লেট:Infobox person/length-এর জন্য একটি নথির উপপাতা। এখানে ব্যবহার সংক্রান্ত তথ্য, বিষয়শ্রেণী এবং অন্যান্য সামগ্রী রয়েছে যা মূল টেমপ্লেট পাতার অংশ নয়। |
টেমপ্লেট:Infobox person/length is one of three templates used to automatically add conversions of length measurements displayed by infoboxes, such as the |reach=
parameter in {{Infobox boxer}}
.
- Template:Infobox person/length changes text for units of length to the abbreviations "cm" or "in", then passes the string to:
- Template:Infobox person/length/locate which replaces any instances of
with a space, and determines the positions of "cm" or "in" within that string, all of which is passed to: - Template:Infobox person/length/switch which does the conversion
Usage[সম্পাদনা]
cm[সম্পাদনা]
{{Infobox person/length|1 centimetre}}
→ ১ সেমি (০ ইঞ্চি){{Infobox person/length|1 centimeter}}
→ ১ সেমি (০ ইঞ্চি){{Infobox person/length|198 centimetres}}
→ ১৯৮ সেমি (৭৮ ইঞ্চি){{Infobox person/length|198 centimeters}}
→ ১৯৮ সেমি (৭৮ ইঞ্চি){{Infobox person/length|198 cm}}
→ ১৯৮ সেমি (৭৮ ইঞ্চি){{Infobox person/length|198 cm.}}
→ ১৯৮ সেমি (৭৮ ইঞ্চি){{Infobox person/length|198 cms}}
→ ১৯৮ সেমি (৭৮ ইঞ্চি)
in[সম্পাদনা]
{{Infobox person/length|1 inch}}
→ 1 in{{Infobox person/length|78 inches}}
→ 78 in{{Infobox person/length|78 in}}
→ 78 in{{Infobox person/length|78 in.}}
→ 78 in{{Infobox person/length|78 ins}}
→ 78 in
no space or [সম্পাদনা]
{{Infobox person/length|198centimetres}}
→ ১৯৮ সেমি (৭৮ ইঞ্চি){{Infobox person/length|78 inches}}
→ 78 in
year and reference[সম্পাদনা]
{{Infobox person/length|198 cms (2012)}}
→ ১৯৮ সেমি (৭৮ ইঞ্চি) (2012){{Infobox person/length|78 ins (2012)<ref>citation goes here</ref>}}
→ 78 in (2012)[১]
- ↑ citation goes here
conversion templates[সম্পাদনা]
{{Infobox person/length|{{convert|198|cm|in|0}}}}
→ ১৯৮ সেন্টিমিটার (৭৮ ইঞ্চি){{Infobox person/length|{{convert|78|in|cm|0}}}}
→ ৭৮ ইঞ্চি (১৯৮ সেমি)
Exceptions[সম্পাদনা]
Does not replace numbers in hard-coded conversions (examples intentionally show incorrect conversions), but does replace units with abbreviations "cm or "in":
{{Infobox person/length|198 centimetres (71 inches)}}
→ 198 cm (71 in){{Infobox person/length|78 inches (191 centimeters)}}
→ 78 in (191 cm)
Does not replace numeric output of conversion templates such as {{convert}} (examples have precision different than usual), but does replace units with abbreviations "cm or "in":
{{Infobox person/length|{{convert|198|cm|in|2|abbr=off}}}}
→ ১৯৮ সেন্টিমিটার (৭৭.৯৫ ইঞ্চি)- compare to:
{{convert|198|cm|in|2|abbr=off}}
→ ১৯৮ সেন্টিমিটার (৭৭.৯৫ ইঞ্চি)
- compare to:
{{Infobox person/length|{{convert|78|in|cm|1|abbr=off|sp=us}}}}
→ ৭৮ ইঞ্চি (১৯৮.১ সেন্টিমিটার)- compare to:
{{convert|78|in|cm|1|abbr=off|sp=us}}
→ ৭৮ ইঞ্চি (১৯৮.১ সেন্টিমিটার)
- compare to:
Does not recognize {{convert}} template with conversion to metres (adds conversion to centimetres):
{{Infobox person/length|{{convert|78|in|m|2|abbr=on}}}}
→ ৭৮ ইঞ্চি (১.৯৮ মি)- compare to:
{{convert|78|in|m|2|abbr=on}}
→ ৭৮ ইঞ্চি (১.৯৮ মি)
- compare to:
Does not convert meters/metres (m), feet (ft), yards (yd), etc.:
{{Infobox person/length|5 metres}}
→ 5 metres{{Infobox person/length|5 meters}}
→ 5 meters{{Infobox person/length|5 m}}
→ 5 m{{Infobox person/length|5 feet}}
→ 5 feet{{Infobox person/length|5 ft}}
→ 5 ft{{Infobox person/length|5 yards}}
→ 5 yards{{Infobox person/length|5 yd}}
→ 5 yd
See also[সম্পাদনা]