User:Wikid77/Template:Usconv/2

{{#switch: {{{disp|b}}} #switch: {{padleft:|1|{{{x0}}}z}} | ~|&|< = {{{x0}}} | #default = {{{x0}}} }} }}{{User:Wikid77/Template:Convert/numdisp|{{formatnum:{{{1|10}}}|R }}}}{{#if:{{{x1|}}}|{{ #switch: {{padleft:|1|{{{x1}}}z}} | -|&|< = {{{x1}}} | #default = {{{x1}}} }} }}{{#switch:{{padleft:|1|{{{2|x}}}}} | -|,|/|) =   | x| +/- =      | (|[|{ = &#32; | t={{#switch:{{{2}}}{{{abbr|o}}} | to(-)on | to(-)in = | #default= {{#switch:{{{adj|{{{sing|off}}}|}}} | off=&#32; | split=-&#32; | #default=-}} }}   | #default= {{#switch:{{{adj|{{{sing|off}}}|}}} | off=&#32; | split=-&#32; | #default=-}}}}{{ #switch:{{{2|x}}}| x = × | - = –   | +/- = ±    | to(-)={{#switch:{{{abbr|def}}}| def|off|out=to |#default=–}} | #default={{{2|xx}}}}}{{ #switch:{{padleft:|1|{{{2|x}}}}} | -|/ =   | +/-|, =      | (|[|{ =     | t={{#switch:{{{2}}}{{{abbr|o}}} |to(-)on|to(-)in =          | #default= {{#switch:{{{adj|{{{sing|off}}}|}}}            | off=&#32; | split=&#32; | #default=-}}        }}    | #default= {{#switch:{{{adj|{{{sing|off}}}|}}}      | off=&#32; | split=&#32; | #default=-}}}}{{#if:{{{x2|}}}|{{    #switch: {{padleft:|1|{{{x2}}}z}}    | -|&|< = {{{x2}}}    | #default = {{{x2}}}     }}  }}{{User:Wikid77/Template:Convert/numdisp|{{formatnum:{{{3|20}}}|R}}}}{{#if:{{{x3|}}}|{{    #switch: {{padleft:|1|{{{x3}}}z}}    | -|&|< = {{{x3}}}    | #default =  {{{x3}}}    }}  }}{{  #ifeq:{{{adj|off}}}|off|&#32;|-}}{{convert|disp=unit |{{  #ifeq:{{{adj|off}}} |off    | {{{3|2}}} |1  }}|{{{4|m}}}|abbr={{  #switch: {{{abbr|def}}}    | def = {{#switch:{{{4|m}}}        | F|C|K|R|°F|°C = on         | #default=def}}    | off|out|none|comma|mos = off    | on|in = on  }}|lk={{{lk|off}}}|adj={{{sing|{{{adj|off}}}}}}|sp={{{sp|}}} }}{{#if:{{{x4|}}}|{{ #switch: {{padleft:|1|{{{x4}}}z}} | -|&|< = {{{x4}}} | #default = {{{x4}}} }} }}{{#switch:{{{disp|b}}} | b = &#32;( | br|sqbr = &#32;[  | or = &#32;or&#32;  | s|/ = &#32;/&#32;  | comma = ,&#32;  | semi|semicolon = &#59;&#32;  | x = {{{6| [}}}  | #default = Convert/2 - Invalid separator "disp={{{disp|xx}}}" - try: disp=s,  disp=or, disp=comma, disp=semi, disp=sqbr, disp=x or disp=b.  }} }}{{#if:{{{x5|}}}|{{    #switch: {{padleft:|1|{{{x5}}}z}}    | -|&|< = {{{x5}}}    | #default = {{{x5}}}     }}  }}{{#ifeq:{{{abbr|def}}}|~   |{{convert|1.0|{{{4|m}}}|disp=unit|abbr=on}},&#32;  }}{{User:Wikid77/Template:Usconv |{{{1|10}}}|{{{4|m}}}|{{     #switch: {{{4|m}}}     | lb = {{#ifeq:{{{5|ft}}}|km |kg |{{{5|}}} }}     | mi = {{#ifeq:{{{5|ft}}}|kg |km |{{{5|}}} }}     | sqft = {{#switch:{{{5|ft}}}|m|m3=m2 |km|km3=km2 |mi=sqmi              |#default={{{5|m2}}} }}     | #default = {{{5|}}}     }}|{{#if:{{{p|}}}        |{{#expr:{{{p}}} }}        |{{#ifeq:{{{disp|b}}}|x |{{#if:{{{8|}}}|{{{8}}} }} |{{#if:{{{6|}}} |{{#expr: {{{6}}} }} |{{#expr: {{ #ifexpr: {{precision|{{{1|10}}}|}} > {{precision|{{{3|20}}}|}} |{{precision |{{{1|10}}}|}} |{{precision |{{{3|20}}}|}} }}{{             #ifexpr: {{convert|{{#expr: abs(                {{formatnum:{{{1|1}}}|R}} -                {{formatnum:{{{3|3}}}|R}} ) }}|{{{4|m}}}|{{ #if:{{{5|}}}|{{{5}}}|{{#ifeq:{{{4|m}}}|m|ft|1}} }}|1|disp=number }} < 1 |+1 |+0             }}            }}          }}        }}      }}|sigfig={{#if:{{{sigfig|}}}|{{{sigfig|9}}} }}|disp=number|abbr={{#ifeq:{{{abbr}}}|comma|comma|def}} }}{{#if:{{{x6|}}}|{{ #switch: {{padleft:|1|{{{x6}}}z}} | -|&|< = {{{x6}}} | #default = {{{x6}}} }} }}{{  #switch:{{padleft:|1|{{{2|x}}}}} | -|,|/|) =   | x| +/- =      | (|[|{ = &#32; | t={{#switch:{{{2|to(-)}}}{{{abbr|on}}} | to(-)on | to(-)out = | #default= {{#switch:{{{adj|off}}}| off|split=&#32; | #default=-}} }}   | #default= {{#switch:{{{adj|off}}}| off|split=&#32; | #default=-}}}}{{ #switch:{{{2|x}}}| x = × | - = –   | +/- = ±    | to(-)={{#switch:{{{abbr|on}}}| off|in=to |#default=–}} | #default={{{2|xx}}}}}{{ #switch:{{padleft:|1|{{{2|x}}}}} | -|/ =   | +/-|, =      | (|[|{ =     | t={{#switch:{{{2|to(-)}}}{{{abbr|on}}} | to(-)on | to(-)out =          | #default= {{#switch:{{{adj|off}}}| off|split=&#32; | #default=-}}        }}    | #default= {{#switch:{{{adj|off}}}| off|split=&#32; | #default=-}}}}{{#if:{{{x7|}}}|{{    #switch: {{padleft:|1|{{{x7}}}z}}    | -|&|< = {{{x7}}}    | #default = {{{x7}}}     }}  }}{{User:Wikid77/Template:Usconv |{{{3|20}}}|{{     #switch: {{{4|m}}}     | C|°C={{#switch:{{{2}}}|+/-|±=C-change|#default={{{4}}} }}     | F|°F={{#switch:{{{2}}}|+/-|±=F-change|#default={{{4}}} }}     | #default = {{{4|m}}}     }}|{{     #switch: {{{4|m}}}     | lb = {{#ifeq:{{{5|ft}}}|km |kg |{{{5|}}} }}     | mi = {{#ifeq:{{{5|ft}}}|kg |km |{{{5|}}} }}     | sqft = {{#switch:{{{5|ft}}}|m|m3=m2 |km|km3=km2 |mi=sqmi              |#default={{{5|m2}}} }}     | C|°C={{#switch:{{{2}}}|+/-|±=F-change|#default={{{5|F}}} }} | F|°F={{#switch:{{{2}}}|+/-|±=C-change|#default={{{5|C}}} }} | #default = {{{5|ft}}} }}|{{#if:{{{p|}}} |{{#expr:{{{p}}} }} |{{#ifeq:{{{disp|b}}}|x |{{#if:{{{8|}}}|{{{8}}} }} |{{#if:{{{6|}}} |{{#expr: {{{6}}} }} |{{#expr: {{ #ifexpr: {{precision|{{{1|10}}}|}} > {{precision|{{{3|20}}}|}} | {{precision |{{{1|10}}}|}} | {{precision |{{{3|20}}}|}} }}{{             #ifexpr: {{convert|{{#expr: abs(                {{formatnum:{{{1|1}}}|R}} -                {{formatnum:{{{3|3}}}|R}} ) }}|{{{4|m}}}|{{ #if:{{{5|}}}|{{{5}}}|{{#ifeq:{{{4|m}}}|m|ft|1}} }}|1|disp=number }} < 1 |+1 |+0             }}            }}          }}        }}      }}|sigfig={{#if:{{{sigfig|}}}|{{{sigfig|9}}} }}|disp={{#switch: {{{disp|b}}} | #|number|output number only = number | #default = out }}|lk={{{lk|off}}}|abbr={{ #switch:{{{abbr|on}}} | in = off | none|off = off | out|on|mos = on     | comma = comma }}|adj={{#switch: {{{adj|{{{sing|off}}}}}} | off = off | #default=on }}|sp={{{sp|}}} }}{{#if:{{{x8|}}}|{{ #switch: {{padleft:|1|{{{x8}}}z}} | -|&|< = {{{x8}}} | #default = {{{x8}}} }} }}{{#switch:{{{disp|b}}} | b = ) | br|sqbr = ]  | x = {{#if:{{{6|}}}|{{{7|}}}|]}}  }} {{documentation}}{{#ifeq:{{SUBPAGENAME}}|sandbox|| }}
 * 2|#|out| output only|number|output number only =
 * #default = {{#if:{{{x0|}}}|{{