Template:Convert/Dual/LoutAonDxSflip

From WikiSwire
Jump to: navigation, search

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


The Template:Convert/Dual/LoutAonDxSflip converts a range of numbers, reversing the input range to be the output, while displaying custom separators around the output amounts, with abbr=on and lk=out to show the output unit symbol as wikilinked. Examples:

  • {{convert|4|-|6|cm|ft|adj=flip|abbr=on|lk=out|disp=x}}                → 0.13–0.20 ft [ 4–6 cm ]
  • {{convert|4|-|6|cm|ft|adj=flip|abbr=on|lk=out|disp=x| long (or |)}} → 0.13–0.20 ft long (or 4–6 cm)
  • {{convert|3|-|7|km|mi|adj=flip|abbr=on|lk=out|disp=x|, same as }} → 1.9–4.3 mi, same as 3–7 km
  • {{convert|2|-|5|m|ft|adj=flip|abbr=on|lk=out|disp=x| or }} → 6.6–16 ft or 2–5 m

This subtemplate is invoked from whichever range-word subtemplate is used, such as {{Convert/-}} or {{Convert/to}} (etc.), passing the output unit-code parameter {5} as {4} here, and passing parameters {6} & {7} as being parameters {5} & {6} here.