Template:Convert/Dual/LoffAoffDxSflip
Jump to navigation
Jump to search
{{convert/{{{4}}}|{{{1}}}|{{{2}}}/AoffSoff|{{{3}}}|{{{s}}}+{{{b}}}|r={{{r}}}|j={{{j}}}|d=Dual/Loff}} [ {{ convert/{{{2}}}/AonSoff|{{{1}}}|{{{3}}}|u={{{n}}} }} ]
The Template:Convert/Dual/LoffAoffDxSflip converts a range of numbers, reversing the input range to be the output, while displaying custom separators around the output amounts. Examples:
- {{convert|4|-|6|cm|ft|adj=flip|disp=x}} → 0.13–0.20 foot [ 4–6 cm ]
- {{convert|4|-|6|cm|ft|adj=flip|disp=x| long (or |)}} → 0.13–0.20 foot long (or 4–6 cm)
- {{convert|3|-|7|km|mi|adj=flip|disp=x|, same as }}. → 1.9–4.3 miles, same as 3–7 km.
- {{convert|2|-|5|m|ft|adj=flip|disp=x| or }} → 6.6–16 feet or 2–5 m
This subtemplate is invoked from whichever range-word subtemplate is used, such as {{Convert/-}} or {{Convert/to}} (etc.), passing parameter {5} as {4} here, using the name "Dual/LoffAoffDxSflip" and passing parameters {6} & {7} as being parameters {5} & {6} here.