Changes

Template:Convert

1,487 bytes added, 13:58, 11 April 2020
m
no edit summary
<includeonly>{{#ifeq:{{{sortable|}}}|on|<span style="display:none">{{padleft:{{FORMATNUM:{{{1}}}|R}}|16|0}}</span>}}{{convert/{{#if:1|{{{2}}}}}|{{FORMATNUM:{{{1}}}|R}}|{{#ifeq:{{#expr:{{{3|0}}}*0}}|0|0}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|r={{#ifeq:{{{sp}}}|us|er|re}}|d=L{{{lk|off}}}A{{{abbr|off}}}D{{{disp|b}}}S{{{adj|{{{sing|off}}}}}}|s={{{sigfig|}}}}}</includeonly><noinclude> ==How to use==The template needs three objects within it. ===Height/Length===Conversion list:*cm=centimeter*m=meter*ft=feet*km=kilometers :'''Example''' <nowiki>{{DocumentationConvert|1|m|cm}}</nowiki> converts one unit (a meter) into centimeters. This produces: {{Convert|1|m|cm}}. ===Mass===Conversion list:*lb=pound*kg=kilogram*MT=Metric ton :'''Example''' <nowiki>{{Convert|1|kg|lb}}</nowiki> converts one unit (a Kilogram) into pounds. This produces: {{Convert|1|kg|lb}}. ===Speed===Conversion list:*km/h= Kilometers per hour*mph=Miles per hour :'''Example''' <nowiki>{{Convert|1|mph|km/h}}</nowiki> converts one MPH (miles per hour) into Kilometers per hour. This produces: {{Convert|1|mph|km/h}}. === Miscellaneous ===*The template is set to British English by default. For American English spelling, use <code>|sp=us</code>. For example: <code><nowiki>{{Convert|6.2|ft|cm|sp=us}}</nowiki></code> will change the spelling of "centimetres" to "centimeters".*To flip the display of conversions, use <code>|disp=flip</code>. For example, <code><nowiki>{{Convert|6.2|ft|cm|disp=flip}}</nowiki></code> will flip the starting Imperial measurement as the converted measurement.*To specify the decimal point for a more accurate conversion, use <code>|sigfig=</code>. For example, <code><nowiki>{{Convert|300|m|ft|sigfig=6}}</nowiki></code> will give a more accurate conversion of {{Convert|300|m|ft|sigfig=6}} over {{Convert|300|m|ft}} (which uses <code><nowiki>{{Convert|300|m|ft}}</nowiki></code>). [[Category:Convert templates]]</noinclude>