13,208
edits
(figured out what round is for and why that bracketed "4|0" is there... if you leave that field empty, you have to remove round. if you put a number and there's no round you get an unexpected number error...) |
(Moving over some stuff to the subtemplate) |
||
Line 4: | Line 4: | ||
-->{{#switch: {{{2|}}} | -->{{#switch: {{{2|}}} | ||
| mm = {{#switch: {{{3|}}} | | mm = {{#switch: {{{3|}}} | ||
| in = {{ | | in = {{User:Johan G/convert/rear|{{{1}}} div 25.4|in|{{{4|}}}|{{{5|}}}}} | ||
| ft = {{ | | ft = {{User:Johan G/convert/rear|{{{1}}} div 304.8 round|ft|{{{4|}}}|{{{5|}}}}} | ||
| m = {{ | | m = {{User:Johan G/convert/rear|{{{1}}} div 1000 round|m|{{{4|}}}|{{{5|}}}}} | ||
| km = {{ | | km = {{User:Johan G/convert/rear|{{{1}}} div 1000000|km|{{{4|}}}|{{{5|}}}}} | ||
| mi = {{ | | mi = {{User:Johan G/convert/rear|{{{1}}} div 1609300|mi|{{{4|}}}|{{{5|}}}}} | ||
| NM = {{ | | NM = {{User:Johan G/convert/rear|{{{1}}} div 1852000|NM|{{{4|}}}|{{{5|}}}}} | ||
| #default = {{error|Parameter '''to-unit''' missing or not supported}} | | #default = {{error|Parameter '''to-unit''' missing or not supported}} | ||
}} | }} | ||
Line 24: | Line 24: | ||
| mm = {{error|Conversion not implemented}} | | mm = {{error|Conversion not implemented}} | ||
| in = {{error|Conversion not implemented}} | | in = {{error|Conversion not implemented}} | ||
| m = {{ | | m = {{User:Johan G/convert/rear|{{{1}}} * 0.3048 round|m|{{{4|}}}|{{{5|}}}}} | ||
| km = {{error|Conversion not implemented}} | | km = {{error|Conversion not implemented}} | ||
| mi = {{error|Conversion not implemented}} | | mi = {{error|Conversion not implemented}} | ||
| NM = {{ | | NM = {{User:Johan G/convert/rear|{{{1}}} * 0.00016457883|NM|{{{4|}}}|{{{5|}}}}} | ||
| #default = {{error|Parameter '''to-unit''' missing or not supported}} | | #default = {{error|Parameter '''to-unit''' missing or not supported}} | ||
}} | }} | ||
| m = {{#switch: {{{3|}}} | | m = {{#switch: {{{3|}}} | ||
| mm = {{ | | mm = {{User:Johan G/convert/rear|{{{1}}} div 0.001|mm|{{{4|}}}|{{{5|}}}}} | ||
| in = {{ | | in = {{User:Johan G/convert/rear|{{{1}}} div 0.0254|in|{{{4|}}}|{{{5|}}}}} | ||
| ft = {{ | | ft = {{User:Johan G/convert/rear|{{{1}}} div 0.3048|ft|{{{4|}}}|{{{5|}}}}} | ||
| km = {{ | | km = {{User:Johan G/convert/rear|{{{1}}} div 1000|km|{{{4|}}}|{{{5|}}}}} | ||
| mi = {{ | | mi = {{User:Johan G/convert/rear|{{{1}}} div 1609.3|mi|{{{4|}}}|{{{5|}}}}} | ||
| NM = {{ | | NM = {{User:Johan G/convert/rear|{{{1}}} div 1852|NM|{{{4|}}}|{{{5|}}}}} | ||
| #default = {{error|Parameter '''to-unit''' missing or not supported}} | | #default = {{error|Parameter '''to-unit''' missing or not supported}} | ||
}} | }} | ||
| km = {{#switch: {{{3|}}} | | km = {{#switch: {{{3|}}} | ||
| mm = {{ | | mm = {{User:Johan G/convert/rear|{{{1}}} div 0.000001|mm|{{{4|}}}|{{{5|}}}}} | ||
| in = {{ | | in = {{User:Johan G/convert/rear|{{{1}}} div 0.0000254|in|{{{4|}}}|{{{5|}}}}} | ||
| ft = {{ | | ft = {{User:Johan G/convert/rear|{{{1}}} div 0.0003048|ft|{{{4|}}}|{{{5|}}}}} | ||
| m = {{ | | m = {{User:Johan G/convert/rear|{{{1}}} div 1000|m|{{{4|}}}|{{{5|}}}}} | ||
| mi = {{ | | mi = {{User:Johan G/convert/rear|{{{1}}} div 1.6093|mi|{{{4|}}}|{{{5|}}}}} | ||
| NM = {{ | | NM = {{User:Johan G/convert/rear|{{{1}}} div 1.852|NM|{{{4|}}}|{{{5|}}}}} | ||
| #default = {{error|Parameter '''to-unit''' missing or not supported}} | | #default = {{error|Parameter '''to-unit''' missing or not supported}} | ||
}} | }} | ||
Line 53: | Line 53: | ||
| ft = {{error|Conversion not implemented}} | | ft = {{error|Conversion not implemented}} | ||
| m = {{error|Conversion not implemented}} | | m = {{error|Conversion not implemented}} | ||
| km = {{ | | km = {{User:Johan G/convert/rear|{{{1}}} * 1.60934|km|{{{4|}}}|{{{5|}}}}} | ||
| NM = {{ | | NM = {{User:Johan G/convert/rear|{{{1}}} * 0.868976|NM|{{{4|}}}|{{{5|}}}}} | ||
| #default = {{error|Parameter '''to-unit''' missing or not supported}} | | #default = {{error|Parameter '''to-unit''' missing or not supported}} | ||
}} | }} | ||
Line 90: | Line 90: | ||
| ft/s = {{error|Conversion not implemented}} | | ft/s = {{error|Conversion not implemented}} | ||
| m/s = {{error|Conversion not implemented}} | | m/s = {{error|Conversion not implemented}} | ||
| km/h = {{ | | km/h = {{User:Johan G/convert/rear|{{{1}}} * 1.60934|km/h|{{{4|}}}|{{{5|}}}}} | ||
| kt = {{ | | kt = {{User:Johan G/convert/rear|{{{1}}} * 0.869|kt|{{{4|}}}|{{{5|}}}}} | ||
| #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 = {{ | | mph = {{User:Johan G/convert/rear|{{{1}}} * 1.152|mph|{{{4|}}}|{{{5|}}}}} | ||
| #default = {{error|Parameter '''to-unit''' missing or not supported}} | | #default = {{error|Parameter '''to-unit''' missing or not supported}} | ||
}} | }} | ||
| s = {{#switch: {{{3|}}} | | s = {{#switch: {{{3|}}} | ||
| min = {{ | | min = {{User:Johan G/convert/rear|{{{1}}} div 60|min|{{{4|}}}|{{{5|}}}}} | ||
| h = {{ | | h = {{User:Johan G/convert/rear|{{{1}}} div 3600|h|{{{4|}}}|{{{5|}}}}} | ||
| d = {{ | | d = {{User:Johan G/convert/rear|{{{1}}} div 86400|d|{{{4|}}}|{{{5|}}}}} | ||
| #default = {{error|Parameter '''to-unit''' missing or not supported}} | | #default = {{error|Parameter '''to-unit''' missing or not supported}} | ||
}} | }} |