మూస:Convert-round input
స్వరూపం
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- 123 mi (199 km)
{{convert-ri|123.456|km}}
yields- 77 mi (123 km)
{{convert-ri|123.456|ft}}
yields- 123 ft (38 m)
{{convert-ri|123.456|ft|1}}
yields- 123.5 ft (37.6 m)
{{convert-ri|123.456|ft|1|break=yes}}
yields
37.6 m 123.5 ft