Misplaced Pages

Template:Convert: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 21:55, 19 December 2006 view sourceDrumguy8800 (talk | contribs)12,910 edits hmm← Previous edit Revision as of 16:48, 23 December 2006 view source Drumguy8800 (talk | contribs)12,910 edits add nautical miles and square nautical miles and fix meter conversions :|Next edit →
Line 7: Line 7:
|km= {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}} |km= {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}}
|mi= mile{{#ifeq:{{{1}}}|1||{{!}}miles}} |mi= mile{{#ifeq:{{{1}}}|1||{{!}}miles}}
|nmi= nautical mile{{#ifeq:{{{1}}}|1||{{!}}nautical miles}}
|sqm= square {{#switch: {{{sp|}}}|us=meter|=metre}}{{#ifeq:{{{1}}}|1||{{!}}square {{#switch: {{{sp|}}}|us=meters|=metres}}}} |sqm= square {{#switch: {{{sp|}}}|us=meter|=metre}}{{#ifeq:{{{1}}}|1||{{!}}square {{#switch: {{{sp|}}}|us=meters|=metres}}}}
|sqkm= square kilometre{{#ifeq:{{{1}}}|1||{{!}}square kilometres}} |sqkm= square kilometre{{#ifeq:{{{1}}}|1||{{!}}square kilometres}}
|sqmi= square mile{{#ifeq:{{{1}}}|1||{{!}}square miles}} |sqmi= square mile{{#ifeq:{{{1}}}|1||{{!}}square miles}}
|sqnmi=square nautical miles{{#ifeq:{{{1}}}|1||{{!}}square nautical miles}}
}}]]|={{#switch: {{{2|}}} }}]]|={{#switch: {{{2|}}}
|acre= {{#ifeq:{{{1}}}|1|acre|acres}} |acre= {{#ifeq:{{{1}}}|1|acre|acres}}
Line 18: Line 20:
|km= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=kilometer|=kilometre}}|{{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}} |km= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=kilometer|=kilometre}}|{{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}}
|mi= {{#ifeq:{{{1}}}|1|mile|miles}} |mi= {{#ifeq:{{{1}}}|1|mile|miles}}
|nmi= {{#ifeq:{{{1}}}|1|nautical mile|nautical miles}}
|sqm= {{#ifeq:{{{1}}}|1|square {{#switch: {{{sp|}}}|us=meter|=metre}}|square {{#switch: {{{sp|}}}|us=meters|=metres}}}} |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}}}} |sqkm= {{#ifeq:{{{1}}}|1|square {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}|square {{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}}
|sqmi= {{#ifeq:{{{1}}}|1|square mile|square miles}} |sqmi= {{#ifeq:{{{1}}}|1|square mile|square miles}}
|sqnmi={{#ifeq:{{{1}}}|1|square nautical mile|square nautical miles}}
}}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}} }}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}}
|acre = {{#switch: {{{3|}}} |acre = {{#switch: {{{3|}}}
Line 28: Line 32:
|sqkm=0.00404685642 |sqkm=0.00404685642
|sqmi=0.0015625 |sqmi=0.0015625
|sqnmi=0.00117987455
}} }}
|ft = {{#switch: {{{3|}}} |ft = {{#switch: {{{3|}}}
|m=0.3048 |m=0.3048
|mi=0.000189393939
|km=0.0003048 |km=0.0003048
|mi=0.000189393939
|nmi=0.000164578834
}} }}
|sqft = {{#switch: {{{3|}}} |sqft = {{#switch: {{{3|}}}
Line 40: Line 46:
|sqkm=0.00000009290304 |sqkm=0.00000009290304
|sqmi=0.0000000358700643 |sqmi=0.0000000358700643
|sqnmi=0.0000000270861925
}} }}
|ha = {{#switch: {{{3|}}} |ha = {{#switch: {{{3|}}}
Line 47: Line 54:
|sqkm=0.01 |sqkm=0.01
|sqmi=0.00386102159 |sqmi=0.00386102159
|sqnmi=0.0029155335
}} }}
|m = {{#switch: {{{3|}}} |m = {{#switch: {{{3|}}}
|ft=3.2808399 |ft=3.2808399
|km=1000 |km=0.001
|mi=1609.344}} |mi=0.000621371192
|nmi=0.000539956803
}}
|sqm = {{#switch: {{{3|}}} |sqm = {{#switch: {{{3|}}}
|acre=0.000247105381 |acre=0.000247105381
|ha=0.0001 |ha=0.0001
|sqft=10.7639104 |sqft=10.7639104
|sqkm=0.000001
|sqmi=0.000000386102159
|sqnmi=0.00000029155335
}} }}
|km = {{#switch: {{{3|}}} |km = {{#switch: {{{3|}}}
Line 61: Line 74:
|m=1000 |m=1000
|mi=0.621371192 |mi=0.621371192
|nmi=0.539956803
}} }}
|sqkm = {{#switch: {{{3|}}} |sqkm = {{#switch: {{{3|}}}
Line 68: Line 82:
|sqm=1000000 |sqm=1000000
|sqmi=0.386102159 |sqmi=0.386102159
|sqnmi=0.29155335
}} }}
|mi = {{#switch: {{{3|}}} |mi = {{#switch: {{{3|}}}
Line 73: Line 88:
|m=1609.344 |m=1609.344
|km=1.609344 |km=1.609344
|nmi=0.868976242
}} }}
|sqmi = {{#switch: {{{3|}}} |sqmi = {{#switch: {{{3|}}}
Line 80: Line 96:
|sqm=2589988.11 |sqm=2589988.11
|sqkm=2.58998811 |sqkm=2.58998811
|sqnmi=0.755119709
}}
|nmi = {{#switch: {{{3|}}}
|ft=6076.1155
|mi=1.15077945
|m=1852
|km=1.852
}}
|sqnmi= {{#switch: {{{3|}}}
|acre=847.547736
|ha=342.9904
|sqft=36919179.4
|sqm=3429904
|sqkm=3.429904
|sqmi=1.32429334
}} }}
}} {{#if: {{{4|}}} | round {{{4}}} }}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}} }} {{#if: {{{4|}}} | round {{{4}}} }}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}}
Line 89: Line 120:
|km= {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{!}}km |km= {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{!}}km
|mi= mile{{!}}mi |mi= mile{{!}}mi
|nmi= nautical mile{{!}}nmi
|sqm= square {{#switch: {{{sp|}}}|us=meter|=metre}}{{!}}m² |sqm= square {{#switch: {{{sp|}}}|us=meter|=metre}}{{!}}m²
|sqkm= square {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{!}}km² |sqkm= square {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{!}}km²
|sqmi= square mile{{!}}mi² |sqmi= square mile{{!}}mi²
|sqnmi=square nautical mile{{!}}nmi²
}}]]|={{#switch: {{{3|}}} }}]]|={{#switch: {{{3|}}}
|acre= acre |acre= acre
Line 100: Line 133:
|km= km |km= km
|mi= mi |mi= mi
|nmi= nmi
|sqm= m² |sqm= m²
|sqkm= km² |sqkm= km²
|sqmi= mi² |sqmi= mi²
|sqnmi=nmi²
}}}})<noinclude>{{esoteric}} }}}})<noinclude>{{esoteric}}
;Two things to remember! ;Two things to remember!

Revision as of 16:48, 23 December 2006

{{{1}}} (Expression error: Unrecognized punctuation character "{". )

This template employs intricate features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here.
Two things to remember!
  • U.S. USERS: If you prefer meter over metre for your article, simply attatch |sp=us to the end of the template!
  • To make the units link to unit articles, add |lk=on to the end of the template! The manual of style suggests that you only link the first instance.

    Use in the following matter: {{convert|original value|original unit|conversion unit|round to}}

    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.
Category: