User:Wikid77/Template:Convert/text2
| y|yes = {{#switch:{{{2|xby}}}
| and|or|x|xx|by|-|+/-|,|to =
| #default = '''Convert/text2 - Invalid parameter 2''' "{{{2|??}}}" - try: by, to, and, or, -, +/-, x, xx or comma.
}}
}}{{#switch: {{{disp|b}}}
| 2|#|out| output only|number|output number only =
| #default = {{#if:{{{x0|}}}|{{
#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}}}
}}
}}{{
#ifeq:{{{adj|off}}}|off| |-}}{{convert|disp=unit |{{{1|10}}}|{{{4|m}}}|abbr={{
#switch: {{{abbr|def}}}
| def = {{#switch:{{{4|m}}}
| F|C|K|R|°F|°C = on
| #default=def}}
| comma = def
| on|in = on
| #default = off
}}|lk={{{lk|off}}}|adj={{{sing|{{{adj|off}}}}}}|sp={{{sp|}}} }}{{#if:{{{x2|}}}|{{
#switch: {{padleft:|1|{{{x2}}}z}}
| -|&|< = {{{x2}}}
| #default = {{{x2}}}
}}
}}{{#switch:{{padleft:|1|{{{2|x}}}z}}
| x = ×
| - = {{#ifeq:{{{2|x}}}|-| –
| {{{2}}} }}
| ± = {{#ifexpr:{{{3|1}}}<1000| | }}±
| + = {{#ifeq:{{{2|x}}}|+/-
| {{#ifexpr:{{{3|1}}}<1000| | }}±
| {{{2}}} }}
| ,|/|) = {{{2}}}
| (|[|{ = {{{2}}}
| t={{#switch:{{{2}}}{{{abbr|o}}}
| to(-)on | to(-)out = –
| #default= {{#switch:{{{adj|{{{sing|off}}}|}}}
| off= {{{2}}} | split= {{{2}}}-
| #default=-{{{2}}}- }}
}}
| #default= {{#switch:{{{adj|{{{sing|off}}}|}}}
| off= {{{2}}} | split= {{{2}}}-
| #default=-{{{2}}}- }}
}}{{#if:{{{x3|}}}|{{
#switch: {{padleft:|1|{{{x3}}}z}}
| -|&|~|< = {{{x3}}}
| #default = {{{x3}}}
}}
}}{{User:Wikid77/Template:Convert/numdisp|{{formatnum:{{{3|20}}}|R}}}}{{#if:{{{x4|}}}|{{
#switch: {{padleft:|1|{{{x4}}}z}}
| -|&|~|< = {{{x4}}}
| #default = {{{x4}}}
}}
}}{{
#ifeq:{{{adj|off}}}|off |
|{{#ifeq:{{{curt|on}}}|on | |-}}
}}{{convert|disp=unit |{{{3|20}}}|{{{4|m}}}|abbr={{
#switch: {{{abbr|def}}}
| def = {{
#ifeq:{{{curt|on}}}|on |on
|{{#switch:{{{4|m}}}
| F|C|K|R|°F|°C = on
| #default=def}}
}}
| on|in = on
| comma = def
| #default = off
}}|lk={{{lk|off}}}|adj={{{sing|{{{adj|off}}}}}}|sp={{{sp|}}} }}{{#if:{{{x5|}}}|{{
#switch: {{padleft:|1|{{{x5}}}z}}
| -|&|~|< = {{{x5}}}
| #default = {{{x5}}}
}}
}}{{#switch: {{padleft:|1|{{{6|
| ? =
| 0|1|2|3|4|5|6|7|8 =
| - = {{#switch:{{{6}}} |-1|-2|-3|-4|-5 = |#default={{{6}}} }}
| -|+|&|<|[ = {{{6}}}
| #default = {{{6}}}
}}{{#switch:{{{disp|b}}}
| b = (
| sqbr = [
| br =
| or = or
| s|/ = /
| comma = ,
| semi|semicolon = ;
| x = {{{7| [}}}
| #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:{{{x6|}}}|{{
#switch: {{padleft:|1|{{{x6}}}z}}
| -|&|~|< = {{{x6}}}
| #default = {{{x6}}}
}}
}}{{convert|{{{1|10}}}|{{{4|m}}}|{{{5|ft}}}|{{#if:{{{p|}}}|{{{p}}}|{{#ifeq:{{{disp|b}}}|x
|{{#if:{{{9|}}}|{{{9}}} }}
|{{#if:{{{7|}}}|{{{7}}} }}}}}}|sigfig={{#if:{{{sigfig|}}}|{{{sigfig|9}}} }}|disp=number|abbr={{#ifeq:{{{abbr}}}|comma|comma|def}}|frac={{#if:{{{frac|}}}|{{{frac}}} |0 }} }}{{#if:{{{x7|}}}|{{
#switch: {{padleft:|1|{{{x7}}}z}}
| -|&|~|< = {{{x7}}}
| #default = {{{x7}}}
}}
}}{{#switch:{{padleft:|1|{{{out|x}}}}}
| x = ×
| - = {{#ifeq:{{{out|x}}}|-| –
| {{{out|}}} }}
| ± = {{#ifexpr:{{{3|1}}}<1000| | }}±
| + = {{#ifeq:{{{out|x}}}|+/-
| {{#ifexpr:{{{3|1}}}<1000| | }}±
| {{{out|x}}} }}
| ,|/|) = {{{out}}}
| (|[|{ = {{{out}}}
| t={{#switch:{{{out}}}{{{abbr|o}}}
| to(-)on | to(-)out = –
| #default= {{#switch:{{{adj|{{{sing|off}}}|}}}
| off= {{{out}}} | split= {{{out}}}-
| #default=-{{{out}}}- }}
}}
| #default= {{#switch:{{{adj|{{{sing|off}}}|}}}
| off= {{{out}}} | split= {{{out}}}-
| #default=-{{{out}}}- }}
}}{{#if:{{{x8|}}}|{{
#switch: {{padleft:|1|{{{x8}}}z}}
| -|&|~|< = {{{x8}}}
| #default = {{{x8}}}
}}
}}{{convert|{{{3|20}}}|{{{4|m}}}|{{{5|ft}}}|{{#if:{{{p|}}}|{{{p}}}|{{#ifeq:{{{disp|b}}}|x
|{{#if:{{{9|}}}|{{{9}}} }}
|{{#if:{{{7|}}}|{{{7}}} }}}}}}|sigfig={{#if:{{{sigfig|}}}|{{{sigfig|9}}} }}|disp={{#switch: {{{disp|b}}}
| #|number|output number only = output number only
| #default = out
}}|lk={{{lk|off}}}|abbr={{
#switch:{{{abbr|on}}}
| in = off
| none|off = off
| comma = comma
| #default = on
}}|adj={{#switch: {{{sing|{{{adj|off}}}}}}
| off = off | #default=on
}}|sp={{{sp|}}}|frac={{#if:{{{frac|}}}|{{{frac}}} |0 }} }}{{#if:{{{x9|}}}|{{
#switch: {{padleft:|1|{{{x9}}}z}}
| -|&|~|< = {{{x9}}}
| #default = {{{x9}}}
}}
}}{{#if:{{{out2|}}}|{{
#switch: {{padleft:|1|{{{out2}}}z}}
| -|&|~|< = {{{out2}}}
| #default = {{{out2}}}
}}
}}{{#switch:{{{disp|b}}}
| b = )
| sqbr = ]
| br =
| x = {{#if:{{{7|}}}|{{{8|}}}|]}}
}}
{{documentation}}