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 18:54, 31 December 2006 view sourceDrumguy8800 (talk | contribs)12,910 edits reabbreviate, add knots← Previous edit Revision as of 18:54, 31 December 2006 view source Drumguy8800 (talk | contribs)12,910 edits Revert to revision 97579253 dated 2006-12-31 18:38:27 by Drumguy8800 using popupsNext edit →
Line 14: Line 14:
|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 mile{{#ifeq:{{{1}}}|1||{{!}}square nautical miles}} |sqnmi=square nautical miles{{#ifeq:{{{1}}}|1||{{!}}square nautical miles}}
|mi:h= miles per hour{{#ifeq:{{{1}}}|1||{{!}}mile per hour|}}
|knot= knot (speed){{!}}{{#ifeq:{{{1}}}|1|knot|knots}}
|km:h= {{#switch: {{{sp|}}}|us=kilometers|=kilometres}} per hour{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=kilometer|=kilometre}} per hour|}}
}}]]|={{#switch: {{{2|}}} }}]]|={{#switch: {{{2|}}}
|ft= {{#ifeq:{{{1}}}|1|foot|feet}} |ft= {{#ifeq:{{{1}}}|1|foot|feet}}
Line 34: Line 31:
|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}} |sqnmi={{#ifeq:{{{1}}}|1|square nautical mile|square nautical miles}}
|mi:h= {{#ifeq:{{{1}}}|1|mile per hour|miles per hour}} |mph= {{#ifeq:{{{1}}}|1|miles per hour|mile per hour}}
|kph= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=kilometer|=kilometre}} per hour|{{#switch: {{{sp|}}}|us=kilometers|=kilometres}} per hour}}
|knot= {{#ifeq:{{{1}}}|1|knot|knots}}
|km:h= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=kilometer|=kilometre}} per hour|{{#switch: {{{sp|}}}|us=kilometers|=kilometres}} per hour}}
}}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}} }}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}}
|ft = {{#switch: {{{3|}}} |ft = {{#switch: {{{3|}}}
Line 166: Line 162:
|sqmi=1.32429334 |sqmi=1.32429334
}} }}
|mi:h= {{#switch: {{{3|}}} |mph= {{#switch: {{{3|}}}
|knot=0.868976242 |kph=1.609344
|km:h=1.609344
}} }}
|knot= {{#switch:{{{3|}}} |kph= {{#switch: {{{3|}}}
|mi:h=1.15077945 |mph=0.621371192
|km:h=1.85200
|km:h= {{#switch: {{{3|}}}
|knot=0.539956803
|mi:h=0.621371192
}} }}
}} {{#if: {{{4|}}} | round {{{4}}} }}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}} }} {{#if: {{{4|}}} | round {{{4}}} }}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}}
Line 193: Line 184:
|sqmi= square mile{{!}}mi² |sqmi= square mile{{!}}mi²
|sqnmi=square nautical mile{{!}}nmi² |sqnmi=square nautical mile{{!}}nmi²
|mi:h= miles per hour{{!}}mi/h |mph= miles per hour{{!}}mph
|knot= knot (speed){{!}}kt |kph= kilometres per hour{{!}}kph
|km:h= kilometres per hour{{!}}km/h
}}]]|={{#switch: {{{3|}}} }}]]|={{#switch: {{{3|}}}
|ft= ft |ft= ft
Line 212: Line 202:
|sqmi= mi² |sqmi= mi²
|sqnmi=nmi² |sqnmi=nmi²
|mi:h= mi/h |mph= mph
|knot= kt |kph= kph
|km:h= km/h
}}}})<noinclude>{{esoteric}} }}}})<noinclude>{{esoteric}}
;Two things to remember! ;Two things to remember!

Revision as of 18:54, 31 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: