Changes

Template:Convert/doc

5 bytes removed, 17:47, 29 February 2020
no edit summary
For example:
:<code><nowiki>{{convert|2|km|mi}}</nowiki></code> → {{convertmile|2|km|mi}} <small>(km entered, so converted into mile)</small>:<code><nowiki>{{convert|7|mi|km}}</nowiki></code> → {{convertmile|7|mi|km}} <small>(mi entered, so converted into km)</small>
''Numbers'' can be rounded, ''units'' can be abbreviated into symbols:
:<code><nowiki>{{convert|2|km|mi|2|abbr=on}}</nowiki></code> → {{convertmile|2|km|mi|2|abbr=on}}
:<code><nowiki>{{convert|7|mi|km|2|abbr=on}}</nowiki></code> → {{convert|7|mi|km|2|abbr=on}}
Value ''ranges'' can be entered using <code>|to|...</code> or <code>|-|...</code>:
:<code><nowiki>{{convert|2|to|5|km|mi}}</nowiki></code> → {{convertkilometer|2|to|5|km|mi}}:<code><nowiki>{{convert|2|-|5|km|mi}}</nowiki></code> → {{convertkilometer|2|-|5|km|mi}}
Combined effect example: