Template:Convert: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Drumguy8800
reabbreviate, add knots
meta>Drumguy8800
Revert to revision 97579253 dated 2006-12-31 18:38:27 by Drumguy8800 using popups
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}}
     |knot= {{#ifeq:{{{1}}}|1|knot|knots}}
     |kph= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=kilometer|=kilometre}} per hour|{{#switch: {{{sp|}}}|us=kilometers|=kilometres}} per hour}}
    |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!
*[[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!
*[[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.</noinclude>
*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.</noinclude>

Revision as of 18:54, 31 December 2006

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

Two things to remember!
  • File:Flag of the United States.svg 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.