Template:Convertx/-

The Template:Convertx/- (for ranges using "-") is invoked as the first template below {Convertx}, for converting ranges such as {Convertx|2|-|4|ft|m}. It immediately invokes Convertx/{4}, for the input unit {4}, passing the range of input numbers as "{1}|-|{3}". Having obtained all 8 parameters, {1}|-|{3}...{8}, it sets the precision "s" from either parameter {5}, {6} or {8} (depending on whichever is the numeric round-number); otherwise, the precision is set as: s=(0.5)+(0). It passes {dgen} (or {d}) down as d=Dual/{dgen} (or Dual/{d}) to invoke subtemplate Convertx/Dual/{dgen} which displays the dual-range (rather than a typical single amount). For any customization, such as disp=x, the parameters {6} and {7} are passed as {5} and {6} (or null if none).