Template:Convert: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Drumguy8800
(add monitor)
>Drumguy8800
(add temperature)
Line 20: Line 20:
     |m:s=  {{#switch: {{{sp|}}}|us=meters|=metres}} per second{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=meter|=metre}} per second|}}
     |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|}}
     |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|}}}
     }}]]|={{#switch: {{{2|}}}
     |ft=  {{#ifeq:{{{1}}}|1|foot|feet}}
     |ft=  {{#ifeq:{{{1}}}|1|foot|feet}}
Line 39: Line 43:
     |mi:h= {{#ifeq:{{{1}}}|1|mile per hour|miles per hour}}
     |mi:h= {{#ifeq:{{{1}}}|1|mile per hour|miles per hour}}
     |knot= {{#ifeq:{{{1}}}|1|knot|knots}}
     |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}}
     |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}}
     |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
     }}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}}
     }}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}}
|ft = {{#switch: {{{3|}}}
|ft = {{#switch: {{{3|}}}
Line 200: Line 208:
     |mi:h=0.621371192
     |mi:h=0.621371192
     }}
     }}
}} {{#if: {{{4|}}} | round {{{4}}} }}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}}
|°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)
    }}
}} {{#if: {{{4|}}} | round {{{4}}} }} {{ #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
    }}
}}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}}
     |ft=  foot (unit of length){{!}}ft
     |ft=  foot (unit of length){{!}}ft
     |in=  inch{{!}}in
     |in=  inch{{!}}in
Line 221: Line 268:
     |m:s=  metre per second{{!}}m/s
     |m:s=  metre per second{{!}}m/s
     |km:h= kilometres per hour{{!}}km/h
     |km:h= kilometres per hour{{!}}km/h
    |°C=  Celsius|°C
    |°F=  Fahrenheit|°F
    |K=    Kelvin|K
    |°R=  Rankine|°R
     }}]]|={{#switch: {{{3|}}}
     }}]]|={{#switch: {{{3|}}}
     |ft=  ft
     |ft=  ft
Line 242: Line 293:
     |m:s=  m/s
     |m:s=  m/s
     |km:h= km/h
     |km:h= km/h
    |°C=  °C
    |°F=  °F
    |K=    K
    |°R=  °R
     }}}})<noinclude>{{esoteric}}
     }}}})<noinclude>{{esoteric}}
;Exampe/monitor page:
;Exampe/monitor page:

Revision as of 10:03, 5 January 2007

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

Exampe/monitor page
Monitor quality or look at examples at Template:Convert/check
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.