Шаблон:Convert/getu2

Мавод аз Википедиа — донишномаи озод

ft

Ҳуҷҷатгузорӣ

Usage

The Template:Convert/getu2 displays the 2nd unit name, or unit symbol, for the unit-code specified in parameter 3 of a conversion. For example, to show the output unit name for unit-code "m" use:

  • {{convert/getu2 |2.5|ft|m}}            → m
  • {{convert/getu2 |2.5|ft|m|lk=out}} → m
  • {{convert/getu2 |2.5|ft|m|abbr=off}}         → metre
  • {{convert/getu2 |2.5|ft|m|lk=out|adj=on}} → m

If a named unit-code 'xyz' is not defined, then the result will display a red-linked template name to indicate the unit-code named xyz is not defined. Option "abbr=values" will omit the unit.

  • {{convert/getu2 |2.5|ft|m|abbr=values}}    →

This template does not need subtemplates for every possible one of 450 combinations of lk/abbr/adj with the suffixes "Na" for non-abbreviated units or "Imp" for imperial units or "eng" for engineering units, etc. Unlike "disp=u2" there will be no occasional redlinks each month for the rare options such as "Convert/LonAoffDu2SonNa" etc.