>Drumguy8800 |
|
(87 intermediate revisions by 26 users not shown) |
Line 1: |
Line 1: |
| <includeonly>{{formatnum:{{{1}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{2|}}} | | <includeonly>{{{{{♥|safesubst:}}}#invoke:convert|convert}}</includeonly><noinclude> |
| |AU= astronomical unit{{!}}{{#ifeq:{{{1}}}|1||{{!}}astronomical units}}
| | {{documentation}} |
| |ft= foot (unit of length){{!}}{{#ifeq:{{{1}}}|1|foot|feet}}
| | <!-- Add categories to the /doc subpage, interwikis to Wikidata, not here --> |
| |in= inch{{#ifeq:{{{1}}}|1||{{!}}inches}}
| | </noinclude> |
| |mm= {{#switch: {{{sp|}}}|us=millimeter|=millimetre}}{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=millimeters|=millimetres}}}}
| |
| |cm= {{#switch: {{{sp|}}}|us=centimeter|=centimetre}}{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=centimeters|=centimetres}}}}
| |
| |m= {{#switch: {{{sp|}}}|us=meter|=metre}}{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=meters|=metres}}}}
| |
| |km= {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}}
| |
| |mi= mile{{#ifeq:{{{1}}}|1||{{!}}miles}}
| |
| |nmi= nautical mile{{#ifeq:{{{1}}}|1||{{!}}nautical miles}}
| |
| |acre= acre{{#ifeq:{{{1}}}|1||{{!}}acres}}
| |
| |ha= hectare{{#ifeq:{{{1}}}|1||{{!}}hectares}}
| |
| |sqft= square foot{{!}}square {{#ifeq:{{{1}}}|1|foot|feet}}
| |
| |sqm= square {{#switch: {{{sp|}}}|us=meter|=metre}}{{#ifeq:{{{1}}}|1||{{!}}square {{#switch: {{{sp|}}}|us=meters|=metres}}}}
| |
| |sqkm= square kilometre{{#ifeq:{{{1}}}|1||{{!}}square kilometres}}
| |
| |sqmi= square mile{{#ifeq:{{{1}}}|1||{{!}}square miles}}
| |
| |sqnmi=square nautical mile{{#ifeq:{{{1}}}|1||{{!}}square nautical miles}}
| |
| |ft:s= feet per second{{#ifeq:{{{1}}}|1|{{!}}foot per second|}}
| |
| |mi:h= miles per hour{{#ifeq:{{{1}}}|1|{{!}}mile per hour|}}
| |
| |knot= knot (speed){{!}}{{#ifeq:{{{1}}}|1|knot|knots}}
| |
| |m:s= {{#switch: {{{sp|}}}|us=meters|=metres}} per second{{#ifeq:{{{1}}}|1|{{!}}{{#switch: {{{sp|}}}|us=meter|=metre}} per second|}}
| |
| |km:h= {{#switch: {{{sp|}}}|us=kilometers|=kilometres}} per hour{{#ifeq:{{{1}}}|1|{{!}}{{#switch: {{{sp|}}}|us=kilometer|=kilometre}} per hour|}}
| |
| |°C= Celsius{{!}}°C
| |
| |°F= Fahrenheit{{!}}°F
| |
| |K= Kelvin{{!}}K
| |
| |°R= Rankine{{!}}°R
| |
| }}]]|={{#switch: {{{2|}}}
| |
| |AU= {{#ifeq:{{{1}}}|1|astronomical unit|astronomical units}}
| |
| |ft= {{#ifeq:{{{1}}}|1|foot|feet}}
| |
| |in= {{#ifeq:{{{1}}}|1|inch|inches}}
| |
| |mm= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=millimeter|=millimetre}}|{{#switch: {{{sp|}}}|us=millimeters|=millimetres}}}}
| |
| |cm= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=centimeter|=centimetre}}|{{#switch: {{{sp|}}}|us=centimeters|=centimetres}}}}
| |
| |m= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=meter|=metre}}|{{#switch: {{{sp|}}}|us=meters|=metres}}}}
| |
| |km= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=kilometer|=kilometre}}|{{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}}
| |
| |mi= {{#ifeq:{{{1}}}|1|mile|miles}}
| |
| |nmi= {{#ifeq:{{{1}}}|1|nautical mile|nautical miles}}
| |
| |acre= {{#ifeq:{{{1}}}|1|acre|acres}}
| |
| |ha= {{#ifeq:{{{1}}}|1|hectare|hectares}}
| |
| |sqft= {{#ifeq:{{{1}}}|1|square foot|square feet}}
| |
| |sqm= {{#ifeq:{{{1}}}|1|square {{#switch: {{{sp|}}}|us=meter|=metre}}|square {{#switch: {{{sp|}}}|us=meters|=metres}}}}
| |
| |sqkm= {{#ifeq:{{{1}}}|1|square {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}|square {{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}}
| |
| |sqmi= {{#ifeq:{{{1}}}|1|square mile|square miles}}
| |
| |sqnmi={{#ifeq:{{{1}}}|1|square nautical mile|square nautical miles}}
| |
| |ft:s= {{#ifeq:{{{1}}}|1|foot per second|feet per second}}
| |
| |mi:h= {{#ifeq:{{{1}}}|1|mile per hour|miles per hour}}
| |
| |knot= {{#ifeq:{{{1}}}|1|knot|knots}}
| |
| |m:s= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=meter|=metre}} per second|{{#switch: {{{sp|}}}|us=meters|=metres}} per second}}
| |
| |km:h= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=kilometer|=kilometre}} per hour|{{#switch: {{{sp|}}}|us=kilometers|=kilometres}} per hour}}
| |
| |°C= °C
| |
| |°F= °F
| |
| |K= K
| |
| |°R= °R
| |
| }}}} {{#ifeq: {{{1|}}} | | ? | ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}}
| |
| |AU = {{#switch: {{{3|}}}
| |
| |ft=490807087000
| |
| |in=5889685044000
| |
| |mm=149598000000000
| |
| |cm=14959800000000
| |
| |m=149598000000
| |
| |km=149598000
| |
| |mi=92955887.6
| |
| |nmi=80776457.9
| |
| }}
| |
| |ft = {{#switch: {{{3|}}}
| |
| |AU=0.00000000000203746039
| |
| |in=12
| |
| |mm=304.8
| |
| |cm=30.48
| |
| |m=0.3048
| |
| |km=0.0003048
| |
| |mi=0.000189393939
| |
| |nmi=0.000164578834
| |
| }}
| |
| |in = {{#switch: {{{3|}}}
| |
| |AU=0.000000000000169788366
| |
| |ft=0.0833333333
| |
| |mm=25.4
| |
| |cm=2.54
| |
| |m=0.0254
| |
| |km=0.0000254
| |
| |mi=0.0000157828283
| |
| |nmi=0.0000137149028
| |
| }}
| |
| |mm = {{#switch: {{{3|}}}
| |
| |AU=0.00000000000000668458134
| |
| |ft=0.0032808399
| |
| |in=0.0393700787
| |
| |cm=0.1
| |
| |m=0.001
| |
| |km=0.000001
| |
| |mi=0.000000621371192
| |
| |nmi=0.000000539956803
| |
| }}
| |
| |cm = {{#switch: {{{3|}}}
| |
| |AU=0.0000000000000668458134
| |
| |ft=0.032808399
| |
| |in=0.393700787
| |
| |mm=10
| |
| |m=0.01
| |
| |km=0.00001
| |
| |mi=0.00000621371192
| |
| |nmi=0.00000539956803
| |
| }}
| |
| |m = {{#switch: {{{3|}}}
| |
| |AU=0.00000000000668458134
| |
| |ft=3.2808399
| |
| |in=39.3700787
| |
| |mm=1000
| |
| |cm=100
| |
| |km=0.001
| |
| |mi=0.000621371192
| |
| |nmi=0.000539956803
| |
| }}
| |
| |km = {{#switch: {{{3|}}}
| |
| |AU=0.00000000668458134
| |
| |ft=3280.8399
| |
| |in=39370.0787
| |
| |mm=1000000
| |
| |cm=100000
| |
| |m=1000
| |
| |mi=0.621371192
| |
| |nmi=0.539956803
| |
| }}
| |
| |mi = {{#switch: {{{3|}}}
| |
| |AU=0.0000000107577909
| |
| |ft=5280
| |
| |in=63360
| |
| |mm=1609344
| |
| |cm=160934.4
| |
| |m=1609.344
| |
| |km=1.609344
| |
| |nmi=0.868976242
| |
| }}
| |
| |nmi = {{#switch: {{{3|}}}
| |
| |AU=0.0000000123798447
| |
| |ft=6076.1155
| |
| |in=72913.3858
| |
| |mi=1.15077945
| |
| |mm=1852000
| |
| |cm=185200
| |
| |m=1852
| |
| |km=1.852
| |
| }}
| |
| |acre = {{#switch: {{{3|}}}
| |
| |ha=0.404685642
| |
| |sqft=43560
| |
| |sqm=4046.85642
| |
| |sqkm=0.00404685642
| |
| |sqmi=0.0015625
| |
| |sqnmi=0.00117987455
| |
| }}
| |
| |ha = {{#switch: {{{3|}}}
| |
| |acre=2.47105381
| |
| |sqft=107639.104
| |
| |sqm=10000
| |
| |sqkm=0.01
| |
| |sqmi=0.00386102159
| |
| |sqnmi=0.0029155335
| |
| }}
| |
| |sqft = {{#switch: {{{3|}}}
| |
| |acre=0.0000229568411
| |
| |ha=0.00009290304
| |
| |sqm=0.09290304
| |
| |sqkm=0.00000009290304
| |
| |sqmi=0.0000000358700643
| |
| |sqnmi=0.0000000270861925
| |
| }}
| |
| |sqm = {{#switch: {{{3|}}}
| |
| |acre=0.000247105381
| |
| |ha=0.0001
| |
| |sqft=10.7639104
| |
| |sqkm=0.000001
| |
| |sqmi=0.000000386102159
| |
| |sqnmi=0.00000029155335
| |
| }}
| |
| |sqkm = {{#switch: {{{3|}}}
| |
| |acre=247.105381
| |
| |ha=100
| |
| |sqft=10763910.4
| |
| |sqm=1000000
| |
| |sqmi=0.386102159
| |
| |sqnmi=0.29155335
| |
| }}
| |
| |sqmi = {{#switch: {{{3|}}}
| |
| |acre=640
| |
| |ha=258.998811
| |
| |sqft=27878400
| |
| |sqm=2589988.11
| |
| |sqkm=2.58998811
| |
| |sqnmi=0.755119709
| |
| }}
| |
| |sqnmi= {{#switch: {{{3|}}}
| |
| |acre=847.547736
| |
| |ha=342.9904
| |
| |sqft=36919179.4
| |
| |sqm=3429904
| |
| |sqkm=3.429904
| |
| |sqmi=1.32429334
| |
| }}
| |
| |ft:s= {{#switch: {{{3|}}}
| |
| |knot=0.592483801
| |
| |m:s=0.3048
| |
| |km:h=1.09728
| |
| |mi:h=0.681818182
| |
| }}
| |
| |mi:h= {{#switch: {{{3|}}}
| |
| |ft:s=1.46666667
| |
| |knot=0.868976242
| |
| |m:s=0.44704
| |
| |km:h=1.609344
| |
| }}
| |
| |knot= {{#switch:{{{3|}}}
| |
| |m:s=0.514444444
| |
| |km:h=1.85200
| |
| |ft:s=1.68780986
| |
| |mi:h=1.15077945
| |
| }}
| |
| |m:s= {{#switch: {{{3|}}}
| |
| |knot=1.94384449
| |
| |km:h=0.539956803
| |
| |ft:s=3.2808399
| |
| |mi:h=0.868976242
| |
| }}
| |
| |km:h= {{#switch: {{{3|}}}
| |
| |knot=0.539956803
| |
| |m:s=0.277777778
| |
| |ft:s=0.911344415
| |
| |mi:h=0.621371192
| |
| }}
| |
| |°C = {{#switch: {{{3|}}}
| |
| |°F=1.8
| |
| |K=1
| |
| |°R=1.8
| |
| }}
| |
| |°F = {{#switch: {{{3|}}}
| |
| |°C=1/(1.8)
| |
| |K=1/(1.8)
| |
| |°R=1
| |
| }}
| |
| |K = {{#switch: {{{3|}}}
| |
| |°C=1
| |
| |°F=1.8
| |
| |°R=1.8
| |
| }}
| |
| |°R = {{#switch: {{{3|}}}
| |
| |°C=1/(1.8)
| |
| |°F=1
| |
| |K=1/(1.8)
| |
| }}
| |
| }} {{ #switch: {{{2|}}}
| |
| |°C = {{#switch: {{{3|}}}
| |
| |°F= + 32
| |
| |K= + 273.15
| |
| |°R= + 491.67
| |
| }}
| |
| |°F = {{#switch: {{{3|}}}
| |
| |°C= - (32/1.8)
| |
| |K= + (459.67/1.8)
| |
| |°R= + 459.67
| |
| }}
| |
| |K = {{#switch: {{{3|}}}
| |
| |°C= - 273.15
| |
| |°F= - 459.67
| |
| }}
| |
| |°R = {{#switch: {{{3|}}}
| |
| |°C= - 273.15
| |
| |°F= - 459.67
| |
| }}
| |
| }}}}{{#if: {{{4|}}} | round {{{4}}} }}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}}
| |
| |AU= astronomical unit{{!}}AU
| |
| |ft= foot (unit of length){{!}}ft
| |
| |in= inch{{!}}in
| |
| |mm= millimetre{{!}}mm
| |
| |cm= centimetre{{!}}cm
| |
| |m= metre{{!}}m
| |
| |km= kilometre{{!}}km
| |
| |mi= mile{{!}}mi
| |
| |nmi= nautical mile{{!}}nmi
| |
| |acre= acre
| |
| |ha= hectare{{!}}ha
| |
| |sqft= square foot{{!}}ft²
| |
| |sqm= square metre{{!}}m²
| |
| |sqkm= square kilometre{{!}}km²
| |
| |sqmi= square mile{{!}}mi²
| |
| |sqnmi=square nautical mile{{!}}nmi²
| |
| |ft:s= feet per second{{!}}ft/s
| |
| |mi:h= miles per hour{{!}}mi/h
| |
| |knot= knot (speed){{!}}kt
| |
| |m:s= metre per second{{!}}m/s
| |
| |km:h= kilometres per hour{{!}}km/h
| |
| |°C= Celsius{{!}}°C
| |
| |°F= Fahrenheit{{!}}°F
| |
| |K= Kelvin{{!}}K
| |
| |°R= Rankine{{!}}°R
| |
| }}]]|={{#switch: {{{3|}}}
| |
| |AU= AU
| |
| |ft= ft
| |
| |in= in
| |
| |mm= mm
| |
| |cm= cm
| |
| |m= m
| |
| |km= km
| |
| |mi= mi
| |
| |nmi= nmi
| |
| |acre= acre
| |
| |ha= ha
| |
| |sqft= ft²
| |
| |sqm= m²
| |
| |sqkm= km²
| |
| |sqmi= mi²
| |
| |sqnmi=nmi²
| |
| |ft:s= ft/s
| |
| |mi:h= mi/h
| |
| |knot= kt
| |
| |m:s= m/s
| |
| |km:h= km/h
| |
| |°C= °C
| |
| |°F= °F
| |
| |K= K
| |
| |°R= °R
| |
| }}}})</includeonly><noinclude>{{esoteric}}
| |
| ;Exampe/monitor page:
| |
| :Monitor quality or look at examples at [[Template:Convert/check]]
| |
| ;Two things to remember!
| |
| *[[Image:Flag of the United States.svg|20px]] '''U.S. USERS''': If you prefer '''meter''' over '''metre''' for your article, simply attatch <code><nowiki>|sp=us</nowiki></code> to the end of the template!
| |
| *To make the units [[Wikipedia:Manual of Style (links)|link]] to unit articles, add <code><nowiki>|lk=on</nowiki></code> to the end of the template! The [[WP:MOS|manual of style]] suggests that you only link the first instance.<br/><br/>Use in the following matter: <code><nowiki>{{convert|original value|original unit|conversion unit|round to}}</nowiki></code><br/><br/>'''Rounding:''' The number given for rounding rounds off the result to the power of 1/10 the rounding number. For instance, if the result is 8621 and the round number is '-2', the result will be 8700. If the result is '234.0283043' and the round number is '0', the result will be 234.
| |
| [[zh:Template:Convert]]</noinclude>
| |