Pojdi na vsebino

Predloga:Convert/testniprimeri/prefiksi

Iz Wikipedije, proste enciklopedije

From module:convert/text (currently, only SI prefixes are tested):

from "Ym" to abbr=off

[uredi kodo]
Convert Code Convert (Live) Convert (Peskovnik) Result
{{convert|1234,56789|m|in|lk=on}} 1.234,56789 m (48.605,035 in) 1.234,56789 m (48.605,035 in) Exact Match
{{convert|1234,56789|Ym|in|lk=on}} 1.234,56789 Ym (4,8605035×1028 in) 1.234,56789 Ym (4,8605035×1028 in) Exact Match
{{convert|1234,56789|Zm|in|lk=on}} 1.234,56789 Zm (4,8605035×1025 in) 1.234,56789 Zm (4,8605035×1025 in) Exact Match
{{convert|1234,56789|Em|in|lk=on}} 1.234,56789 Em (4,8605035×1022 in) 1.234,56789 Em (4,8605035×1022 in) Exact Match
{{convert|1234,56789|Pm|in|lk=on}} 1.234,56789 Pm (4,8605035×1019 in) 1.234,56789 Pm (4,8605035×1019 in) Exact Match
{{convert|1234,56789|Tm|in|lk=on}} 1.234,56789 Tm (4,8605035×1016 in) 1.234,56789 Tm (4,8605035×1016 in) Exact Match
{{convert|1234,56789|Gm|in|lk=on}} 1.234,56789 Gm (4,8605035×1013 in) 1.234,56789 Gm (4,8605035×1013 in) Exact Match
{{convert|1234,56789|Mm|in|lk=on}} 1.234,56789 Mm (4,8605035×1010 in) 1.234,56789 Mm (4,8605035×1010 in) Exact Match
{{convert|1234,56789|km|in|lk=on}} 1.234,56789 km (48.605.035 in) 1.234,56789 km (48.605.035 in) Exact Match
{{convert|1234,56789|hm|in|lk=on}} 1.234,56789 hm (4.860.503,5 in) 1.234,56789 hm (4.860.503,5 in) Exact Match
{{convert|1234,56789|dam|in|lk=on}} 1.234,56789 dam (486.050,35 in) 1.234,56789 dam (486.050,35 in) Exact Match
{{convert|1234,56789|m|in|lk=on}} 1.234,56789 m (48.605,035 in) 1.234,56789 m (48.605,035 in) Exact Match
{{convert|1234,56789|dm|in|lk=on}} 1.234,56789 dm (4.860,5035 in) 1.234,56789 dm (4.860,5035 in) Exact Match
{{convert|1234,56789|cm|in|lk=on}} 1.234,56789 cm (486,05035 in) 1.234,56789 cm (486,05035 in) Exact Match
{{convert|1234,56789|mm|in|lk=on}} 1.234,56789 mm (48,605035 in) 1.234,56789 mm (48,605035 in) Exact Match
{{convert|1234,56789|μm|in|lk=on}} 1.234,56789 µm (0,048605035 in) 1.234,56789 µm (0,048605035 in) Exact Match
{{convert|1234,56789|µm|in|lk=on}} 1.234,56789 µm (0,048605035 in) 1.234,56789 µm (0,048605035 in) Exact Match
{{convert|1234,56789|um|in|lk=on}} 1.234,56789 µm (0,048605035 in) 1.234,56789 µm (0,048605035 in) Exact Match
{{convert|1234,56789|nm|in|lk=on}} 1.234,56789 nm (4,8605035×10−5 in) 1.234,56789 nm (4,8605035×10−5 in) Exact Match
{{convert|1234,56789|pm|in|lk=on}} 1.234,56789 pm (4,8605035×10−8 in) 1.234,56789 pm (4,8605035×10−8 in) Exact Match
{{convert|1234,56789|fm|in|lk=on}} 1.234,56789 fm (4,8605035×10−11 in) 1.234,56789 fm (4,8605035×10−11 in) Exact Match
{{convert|1234,56789|am|in|lk=on}} 1.234,56789 am (4,8605035×10−14 in) 1.234,56789 am (4,8605035×10−14 in) Exact Match
{{convert|1234,56789|zm|in|lk=on}} 1.234,56789 zm (4,8605035×10−17 in) 1.234,56789 zm (4,8605035×10−17 in) Exact Match
{{convert|1234,56789|ym|in|lk=on}} 1.234,56789 ym (4,8605035×10−20 in) 1.234,56789 ym (4,8605035×10−20 in) Exact Match
{{convert|1234,56789|km|m}} 1.234,56789 km (1.234.567,89 m) 1.234,56789 km (1.234.567,89 m) Exact Match


from "Ym" to abbr

[uredi kodo]
Convert Code Convert (Live) Convert (Peskovnik) Result
{{convert|1234,56789|m|in|lk=on|abbr=on}} 1.234,56789 m (48.605,035 in) 1.234,56789 m (48.605,035 in) Exact Match
{{convert|1234,56789|Ym|in|lk=on|abbr=on}} 1.234,56789 Ym (4,8605035×1028 in) 1.234,56789 Ym (4,8605035×1028 in) Exact Match
{{convert|1234,56789|Zm|in|lk=on|abbr=on}} 1.234,56789 Zm (4,8605035×1025 in) 1.234,56789 Zm (4,8605035×1025 in) Exact Match
{{convert|1234,56789|Em|in|lk=on|abbr=on}} 1.234,56789 Em (4,8605035×1022 in) 1.234,56789 Em (4,8605035×1022 in) Exact Match
{{convert|1234,56789|Pm|in|lk=on|abbr=on}} 1.234,56789 Pm (4,8605035×1019 in) 1.234,56789 Pm (4,8605035×1019 in) Exact Match
{{convert|1234,56789|Tm|in|lk=on|abbr=on}} 1.234,56789 Tm (4,8605035×1016 in) 1.234,56789 Tm (4,8605035×1016 in) Exact Match
{{convert|1234,56789|Gm|in|lk=on|abbr=on}} 1.234,56789 Gm (4,8605035×1013 in) 1.234,56789 Gm (4,8605035×1013 in) Exact Match
{{convert|1234,56789|Mm|in|lk=on|abbr=on}} 1.234,56789 Mm (4,8605035×1010 in) 1.234,56789 Mm (4,8605035×1010 in) Exact Match
{{convert|1234,56789|km|in|lk=on|abbr=on}} 1.234,56789 km (48.605.035 in) 1.234,56789 km (48.605.035 in) Exact Match
{{convert|1234,56789|hm|in|lk=on|abbr=on}} 1.234,56789 hm (4.860.503,5 in) 1.234,56789 hm (4.860.503,5 in) Exact Match
{{convert|1234,56789|dam|in|lk=on|abbr=on}} 1.234,56789 dam (486.050,35 in) 1.234,56789 dam (486.050,35 in) Exact Match
{{convert|1234,56789|m|in|lk=on|abbr=on}} 1.234,56789 m (48.605,035 in) 1.234,56789 m (48.605,035 in) Exact Match
{{convert|1234,56789|dm|in|lk=on|abbr=on}} 1.234,56789 dm (4.860,5035 in) 1.234,56789 dm (4.860,5035 in) Exact Match
{{convert|1234,56789|cm|in|lk=on|abbr=on}} 1.234,56789 cm (486,05035 in) 1.234,56789 cm (486,05035 in) Exact Match
{{convert|1234,56789|mm|in|lk=on|abbr=on}} 1.234,56789 mm (48,605035 in) 1.234,56789 mm (48,605035 in) Exact Match
{{convert|1234,56789|μm|in|lk=on|abbr=on}} 1.234,56789 µm (0,048605035 in) 1.234,56789 µm (0,048605035 in) Exact Match
{{convert|1234,56789|µm|in|lk=on|abbr=on}} 1.234,56789 µm (0,048605035 in) 1.234,56789 µm (0,048605035 in) Exact Match
{{convert|1234,56789|um|in|lk=on|abbr=on}} 1.234,56789 µm (0,048605035 in) 1.234,56789 µm (0,048605035 in) Exact Match
{{convert|1234,56789|nm|in|lk=on|abbr=on}} 1.234,56789 nm (4,8605035×10−5 in) 1.234,56789 nm (4,8605035×10−5 in) Exact Match
{{convert|1234,56789|pm|in|lk=on|abbr=on}} 1.234,56789 pm (4,8605035×10−8 in) 1.234,56789 pm (4,8605035×10−8 in) Exact Match
{{convert|1234,56789|fm|in|lk=on|abbr=on}} 1.234,56789 fm (4,8605035×10−11 in) 1.234,56789 fm (4,8605035×10−11 in) Exact Match
{{convert|1234,56789|am|in|lk=on|abbr=on}} 1.234,56789 am (4,8605035×10−14 in) 1.234,56789 am (4,8605035×10−14 in) Exact Match
{{convert|1234,56789|zm|in|lk=on|abbr=on}} 1.234,56789 zm (4,8605035×10−17 in) 1.234,56789 zm (4,8605035×10−17 in) Exact Match
{{convert|1234,56789|ym|in|lk=on|abbr=on}} 1.234,56789 ym (4,8605035×10−20 in) 1.234,56789 ym (4,8605035×10−20 in) Exact Match
{{convert|1234,56789|km|m|abbr=on}} 1.234,56789 km (1.234.567,89 m) 1.234,56789 km (1.234.567,89 m) Exact Match


from "yottametre"

[uredi kodo]

Notes:

See #The prefixes below for the existing articles in these unit names. So we expect no redlinks for them.
From line 2 and 3 (|1=millimetre(s)) I concluded we should use singular.
Apart from "micrometre", no such input is documented. Any testfail is meaningless. -DePiep (talk) 20:08, 12 October 2013 (UTC)
Convert Code Convert (Live) Convert (Peskovnik) Result
{{convert|1234,56789|metre|in|lk=on}} 1.234,56789 metre[convert: nejasna enota] 1.234,56789 metre[convert: nejasna enota] Exact Match
{{convert|1234,56789|milimetre|in|lk=on}} 1.234,56789 milimetre[convert: neznana enota] 1.234,56789 milimetre[convert: neznana enota] Exact Match
{{convert|1234,56789|millimetre|in|lk=on}} 1.234,56789 millimetre[convert: neznana enota] 1.234,56789 millimetre[convert: neznana enota] Exact Match
{{convert|1234,56789|micrometres|in|lk=on}} 1.234,56789 micrometres[convert: neznana enota] 1.234,56789 micrometres[convert: neznana enota] Exact Match
{{convert|1234,56789|micrometre|in|lk=on}} 1.234,56789 µm (0,048605035 in) 1.234,56789 µm (0,048605035 in) Exact Match


The prefixes

[uredi kodo]

From modul:convert/text:

-- The prefix field is what the prefix should be, if different from the prefix used.
-- Some units accept an SI prefix before the unit code, such as "kg" for kilogram.

local SIprefixes = { -- The prefix field is what the prefix should be, if different from the prefix used. ['Y'] = { exponent = 24, name = 'jota', }, ['Z'] = { exponent = 21, name = 'zeta', }, ['E'] = { exponent = 18, name = 'eksa' , }, ['P'] = { exponent = 15, name = 'peta' , }, ['T'] = { exponent = 12, name = 'tera' , }, ['G'] = { exponent = 9, name = 'giga' , }, ['M'] = { exponent = 6, name = 'mega' , }, ['k'] = { exponent = 3, name = 'kilo' , }, ['h'] = { exponent = 2, name = 'hekto', }, ['da']= { exponent = 1, name = 'deka' , name_us = 'deka' }, ['d'] = { exponent = -1, name = 'deci' , }, ['c'] = { exponent = -2, name = 'centi', }, ['m'] = { exponent = -3, name = 'mili', }, ['μ'] = { exponent = -6, name = 'mikro', prefix = 'µ' }, -- key = 'GREEK SMALL LETTER MU' (U+03BC) utf-8 CE BC ['µ'] = { exponent = -6, name = 'mikro', }, -- key = 'MICRO SIGN' (U+00B5) utf-8 C2 B5 ['u'] = { exponent = -6, name = 'mikro', prefix = 'µ' }, -- not an SI prefix, but allow for people typing this ['n'] = { exponent = -9, name = 'nano' , }, ['p'] = { exponent =-12, name = 'piko' , }, ['f'] = { exponent =-15, name = 'femto', }, ['a'] = { exponent =-18, name = 'ato' , }, ['z'] = { exponent =-21, name = 'zepto', }, ['y'] = { exponent =-24, name = 'jokto', }, } Predloga:SI units of length

Engineering notation

[uredi kodo]

Engineering notation in {convert} looks like: e3m2. So it is added to the unit name (id) as a prefix, not the numerical part of the measure. See Help:Convert_units#Engineering_notation. The tests below are module:convert compared with {{convert/nonlua}}.

  • {convert|123,4|e3m2}} → 123,4×10^3 m2 (1,328×10^6 sq ft)
{convert/nonlua|123,4|e3m2}} → Predloga:Convert/nonlua
  • {convert|123,4|e3m2|e6sqft|abbr=off}} → 123,4 tisoč kvadratnih metrov (1,328 milijon kvadratnih čevljev)
{convert/nonlua|123,4|e3m2|e6sqft|abbr=off}} → Predloga:Convert/nonlua
  • {convert|1,23|e6L}} → 1,23×10^6 L (320.000 US gal)
{convert/nonlua|1,23|e6L}} → Predloga:Convert/nonlua
{convert/nonlua|1,23|e6L|e3usgal|abbr=off|lk=on|sp=us}} → Predloga:Convert/nonlua
  • {convert|1,23|e9impgal}} → 1,23×10^9 imp gal (5,6 Gl)
{convert/nonlua|1,23|e9impgal}} → Predloga:Convert/nonlua
{convert/nonlua|1,23|e9impgal|e3usgal|abbr=off|lk=on}} → Predloga:Convert/nonlua
  • {convert|1,23|e12cuft}} → 1,23×10^12 cu ft (35×10^9 m3)
{convert/nonlua|1,23|e12cuft}} → Predloga:Convert/nonlua