Jump to content

Template:Convert: Difference between revisions

From IdeaWazaWiki
wikademia>Drumguy8800
..tentative addition of ability to use singular tense when values aren't 1.
wikademia>Drumguy8800
.. allow for abbreviations
Line 1: Line 1:
{{formatnum:{{{1}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{2|}}}
{{formatnum:{{{1}}}}} {{#ifeq:{{{abbr}}}|on|{{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}}
    |AU=  astronomical unit{{!}}AU
    |ft=  foot (unit of length){{!}}ft
    |yd=  yard{{!}}yd
    |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²
    |sqyd= square yard{{!}}yd²
    |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
    |yd=  yd
    |in=  in
    |mm=  mm
    |cm=  cm
    |m=    m
    |km=  km
    |mi=  mi
    |nmi=  nmi
    |acre= acre
    |ha=  ha
    |sqft= ft²
    |sqyd= yd²
    |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
    }}}} | {{#switch: {{{lk|}}}|on=[[{{#switch: {{{2|}}}
     |AU=  astronomical unit{{!}}{{#ifeq:{{{1}}}|1||{{#ifeq:{{{sing}}}|on||{{!}}astronomical units}}}}
     |AU=  astronomical unit{{!}}{{#ifeq:{{{1}}}|1||{{#ifeq:{{{sing}}}|on||{{!}}astronomical units}}}}
     |ft=  foot (unit of length){{!}}{{#ifeq:{{{1}}}|1|foot|{{#ifeq:{{{sing}}}|on|foot|feet}}}}
     |ft=  foot (unit of length){{!}}{{#ifeq:{{{1}}}|1|foot|{{#ifeq:{{{sing}}}|on|foot|feet}}}}
Line 55: Line 111:
     |K=    K
     |K=    K
     |°R=  °R
     |°R=  °R
     }}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}}
     }}}}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}}
|AU = {{#switch: {{{3|}}}
|AU = {{#switch: {{{3|}}}
     |ft=490807087000
     |ft=490807087000

Revision as of 00:41, 2 March 2007

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