Template:Convert/Dual/LoffAonDxSoff

From WikiSwire
Jump to navigation Jump to search

{{convert/{{{2}}}/AonSoff|{{{1}}}|{{{3}}}|u={{{u}}}|U={{{u}}}|n={{{n}}}|l={{{n}}}s}} [ {{ convert/{{{4}}}|{{{1}}}|{{{2}}}/AonSoff|{{{3}}}|{{{s}}}+{{{b}}}|r={{{r}}}|j={{{j}}}|d=Dual/Loff}} ]


The Template:Convert/Dual/LoffAonDxSoff converts a range of numbers, while displaying custom separators around the output amounts. Examples:

  • {{convert|3|-|6|cm|ft|abbr=on|disp=x| long (or |)}} → 3–6 cm long (or 0.098–0.20 ft)
  • {{convert|4|-|7|km|mi|abbr=on|disp=x|, same as }} → 3–6 cm, same as 0.098–0.20 ft

This subtemplate is invoked from whichever range-word subtemplate is used, such as {{Convert/-}} or {{Convert/to}} (etc.) using the name "Dual/LoffAonDxSoff" and passing parameters {6} & {7} as being parameters {5} & {6} here.