మూస:Convert-round input

వికీపీడియా నుండి
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

విషయ సూచిక

Purpose[మార్చు]

This is a special unit conversion template designed to serve as a shortcut for pages such as list of longest streams of Idaho. It rounds the input number, allowing for the storage of overly precise numbers (such as NHD stream lengths), without actually displaying them. It also automatically places imperial/U.S. customary units first. Units currently supported are miles→kilometers, square miles→square kilometers, feet→meters, cubic feet per second→cubic meters per second, and vice versa. Acres→square miles/square kilometers is also supported.

Usage[మార్చు]

Just add {{convert-round input}} or the shorter {{convert-ri}} to a page, and fill out the following parameters:

  • {{convert-ri|input value|unit|round to (optional)}}

To insert a line break between the outputs, just add the parameter |break=yes.

Examples[మార్చు]

  • {{convert-ri|123.456|mi}} yields
    • &&&&&&&&&&&&0123.&&&&&0123 mi (199 km)
  • {{convert-ri|123.456|km}} yields
    • &&&&&&&&&&&&&077.&&&&&077 mi (123 km)
  • {{convert-ri|123.456|ft}} yields
    • &&&&&&&&&&&&0123.&&&&&0123 ft (38 m)
  • {{convert-ri|123.456|ft|1}} yields
    • &&&&&&&&&&&&0123.500000123.5 ft (37.6 m)
  • {{convert-ri|123.456|ft|1|break=yes}} yields
    • &&&&&&&&&&&&0123.500000123.5 ft
      37.6 m

See also[మార్చు]