Шаблон:Convert/Dual/LoffAonD5Soff
The Template:Convert/Dual/LoffAonD5Soff is a subtemplate of Template:Convert to handle ranges with 5-increment rounding and option abbr=on to show unit symbols (if available, else unit names). The 2 output amounts, in the range, are rounded to the nearest 5 units.
Performance considerations
вироишThis template runs essentially at the speed of 3 simple {Convert} operations, by invoking the underlying subtemplates which process the output unit, after the input unit has been decoded into conversion factor {b} passed twice, into the output-unit subtemplate for each of the 2 amounts. The 5-increment rounding, to the nearest 5 units, occurs after any optional sigfig=n rounding (or "|n" rounding from parameter 5 or 6). Hence, use of "disp=5" does not require removal of any other rounding parameters.
The resulting unit symbol is displayed using Template:Convert/LoffAonSoffu2. Overall, this subtemplate is much more complex than the typical formatter subtemplates of Template:Convert. It allows the output unit-code to be default "def". It also handles fractions in both amounts.
See also
вироиш- Template:Convert/Dual/LoffAoffD5Soff - format range with unit name & "disp=5"
- Template:Convert/Dual/LoffAoffDflip5Soff - format range reversed by "disp=flip5"
- Template:Convert/LoffAoffDflip5Soff - format a 1-amount conversion with "disp=flip5"