সাঁচ:Infobox islands/length

অসমীয়া ৱিকিপিডিয়াৰ পৰা
Jump to navigation Jump to search

This is a subtemplate of {{Infobox islands}}, and should not be used directly.

Usage[সম্পাদনা কৰক]

Input Output
{{Infobox islands/length|km=0.5}} 0.5
{{Infobox islands/length|mi=0.3}} 0.3
{{Infobox islands/length|m=500}} 500
{{Infobox islands/length|ft=1610}} 1,610
{{Infobox islands/length|km=0.5|mi=0.3}} 0.5
{{Infobox islands/length|m=500|ft=1610}} 500
{{Infobox islands/length|km=0.5|m=500}} 0.5
{{Infobox islands/length|mi=0.3|ft=1610}} 0.3
{{Infobox islands/length|m=500|mi=0.3|ft=1610}} 0.3
{{Infobox islands/length|km=0.5|mi=0.3|ft=1610}} 0.5
{{Infobox islands/length|km=0.5|m=500|ft=1610}} 0.5
{{Infobox islands/length|km=0.5|m=500|mi=0.3}} 0.5
{{Infobox islands/length|km=0.5|m=500|mi=0.3|ft=1610}} 0.5
  • {{convert|0.5|km|abbr=on}} → 0.5 km (0.31 মাইল)
  • {{convert|0.3|mi|abbr=on}} → 0.3 মাইল (0.48 km)
  • {{convert|500|m|abbr=on}} → 500 মিটাৰ (1 ফুট)
  • {{convert|1610|ft|abbr=on}} → 1,610 ফুট (490 মিটাৰ)

Code[সম্পাদনা কৰক]

The code uses {{precision}} to determine the level of precision. The logic is to give preference to km/mi over m/ft. If both km and mi are specified, then no conversion takes place. Similarly, if both m and ft are specified (and km/mi are not specified), then no conversion takes place.

See also[সম্পাদনা কৰক]