Template:Convert/Dual/LonAonDxSflip

From WikiSwire
Jump to navigation Jump to search

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


The Template:Convert/Dual/LonAonDxSflip 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=on to show the unit symbols as wikilinks. Examples:

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