User:Johan G/convert: Difference between revisions

adding mph -> kt and kt -> mph formulas... hope i've done it right by copying an existing one and changing the div to mul for multiplying...
(Fix: Used named template parameters in the template instead of unnamed/numbered parameters. Hence absolutely nothing worked as per documentation)
(adding mph -> kt and kt -> mph formulas... hope i've done it right by copying an existing one and changing the div to mul for multiplying...)
Line 91: Line 91:
       | m/s = {{error|Conversion not implemented}}
       | m/s = {{error|Conversion not implemented}}
       | km/h = {{error|Conversion not implemented}}
       | km/h = {{error|Conversion not implemented}}
       | kt = {{error|Conversion not implemented}}
       | kt = {{#expr: {{{1}}} mul 0.869 round {{{4|0}}}}} {{#if: {{{5|}}}||kt}}
       | #default = {{error|Parameter '''to-unit''' missing or not supported}}
       | #default = {{error|Parameter '''to-unit''' missing or not supported}}
     }}
     }}
Line 98: Line 98:
       | m/s = {{error|Conversion not implemented}}
       | m/s = {{error|Conversion not implemented}}
       | km/h = {{error|Conversion not implemented}}
       | km/h = {{error|Conversion not implemented}}
       | mph = {{error|Conversion not implemented}}
       | mph = {{#expr: {{{1}}} mul 1.152 round {{{4|0}}}}} {{#if: {{{5|}}}||mph}}
       | #default = {{error|Parameter '''to-unit''' missing or not supported}}
       | #default = {{error|Parameter '''to-unit''' missing or not supported}}
     }}
     }}
185

edits