Difference between revisions of "Template:Convert/Dual/LoffAoffDxSoff"

From Self-sufficiency
Jump to: navigation, search
(fixed shift of parameter 6/7 as 5/6; expanded doc)
 
m (1 revision: Subtemplates of Template Convert templates from wikipedia)
 
(No difference)

Latest revision as of 09:13, 19 September 2010

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


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

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

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