Template:Convert/x/AonSoff

From Orain Meta
Revision as of 12:20, 26 October 2013 by imported>Wikid77 (changed to handle undefined {u} as {n} or plural {l}; fixed scientific x10 notation by {#ifeq:1|{#expr}|...} for error msgs; allow wrap 2nd amount if 1st amount > 3 long.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

1 45 × 3 67 {{{u}}} The Template:Convert/x/AonSoff formats a range where the 2 amounts are separated with symbol ex, "×" between the numbers. The range can text-wrap at "×" if the first amount > 4 long, such as a number in scientific x10 notation.

For unit-codes where the unit symbol is undefined (or blank), then the template also checks for literal "{{{u}}}" with leading curly brace "{" and then the unit name (depending on amount singular or plural) will be displayed instead.

pt:Predefinição:Convert/x/AonSoff