Difference between revisions 4190545 and 4190550 on simplewiki{{QD|G2}} <!-- -============================================================= - Template:Convert/3 - Convert 3 units at once -============================================================= - -->{{#switch:{{{warn|no}}} | y|yes = {{#switch:{{{2|xby}}} | and|or|x|xx|by|-|+/-|,|to = <!--ok--> | #default = '''<span style="color:#DD6600">[[Template:Convert/3|Convert/3]] - Invalid<!-- --> parameter 2''' "{{{2|??}}}" - try: by, to, and,<!-- --> or, -, +/-, x, xx or comma. </span> }}<!--endswitch {2}--> }}<!--endswitch {warn}-- ------------------------------------------------- Check display -->{{#switch: {{{disp|b}}} <!--switch {disp} #1--> | 2|#|out| output only|number|output number only = | #default = <!-- ------------------------------------------------- Show inputs -->{{convert/numdisp|{{{1|10}}}}}<!--show amount 1-->{{ #switch:{{padleft:|1|{{{2|x}}}}} | x|-|,|/ =<!--then no -/space--> | +/- = <!--then no break--> |#default={{#ifeq:{{{adj|off}}}|off| |-}}<!--if hyphen-- -->}}<!--endswitch {2}-->{{ #switch:{{{2|x}}}| x = ×<!--if {2}=x show small-x--> | - = –<!--if {2}=hyphen show dash--> | +/- = ±<!--if {2}=+/- show plus-minus--> | #default={{{2|xx}}}<!--put range-word #1 -->}}<!--endswitch {2} word-->{{ #switch:{{padleft:|1|{{{2|x}}}}} | x|-|/ =<!--then no -/space--> | +/-|, = <!--then no break--> |#default={{#ifeq:{{{adj|off}}}|off| |-}}<!--if hyphen-- -->}}<!--endswitch {2} -->{{convert/numdisp|{{{3|20}}}}}<!--show amount 2 in param.3-->{{ #switch:{{padleft:|1|{{{4|x}}}}} | x|-|,|/ =<!--then no -/space--> | +/- = <!--then no break--> |#default={{#ifeq:{{{adj|off}}}|off| |-}}<!--if hyphen-- -->}}<!--endswitch {4}-->{{ #switch:{{{4|x}}}| x = ×<!--if {4}=x show small-x--> | - = –<!--if {4}=hyphen show dash--> | +/- = ±<!--if {4}=+/- show plus-minus--> | #default={{{4|xx}}}<!--put range-word #1 -->}}<!--endswitch {4} word-->{{ #switch:{{padleft:|1|{{{4|x}}}}} | x|-|/ =<!--then no -/space--> | +/-|, = <!--then no break--> |#default={{#ifeq:{{{adj|off}}}|off| |-}}<!--if hyphen-- -->}}<!--endswitch {4} -->{{convert/numdisp|{{{5|30}}}}}<!--show amount 3 in param.5 -->{{#ifeq:{{{adj|x}}}|on|-| }}<!--if show hyphen-- -->{{convert|{{{5|30}}}|{{{6|m}}}|abbr={{ #switch: {{{abbr|off}}}<!--condense 7 values to off/on/comma--> | off|out|none|comma|mos = def | on|in = on }}<!--endswitch {abbr}-- -->|lk={{{lk|off}}}|adj={{{sing|{{{adj|off}}}}}}<!-- -->|disp=unit|sp={{{sp|}}} }}<!--show unit ----------------------------------------------- Show separator -->{{#switch:{{{disp|b}}} | b =  ( | or =  or  | s|/ =  /  | comma = ,  | semi|semicolon = ;  | #default = '''[[Template:Convert/3|Convert/3]] - Invalid<!-- --> separator''' "disp={{{disp|xx}}}" - try: disp=s, <!-- --> disp=or, disp=comma, disp=semi, or disp=b. }}<!--endswitch {2} --> }}<!--endswitch {disp} #1-- ------------------------------------------------- Show results -->{{convert|{{{1|10}}}|{{{6|m}}}|{{{7|ft}}}<!-- -->|disp=output number only<!-- SHOW RESULT 1 -- -->|abbr={{#ifeq:{{{abbr}}}|comma|comma|def}}<!-- --> }}{{ #switch:{{padleft:|1|{{{2|x}}}}} | x|-|,|/ =<!--then no -/space--> | +/- = <!--then no break--> |#default={{#ifeq:{{{adj|off}}}|off| |-}}<!--if hyphen-- -->}}<!--endswitch {2}-->{{ #switch:{{{2|x}}}| x = ×<!--if {2}=x show small-x--> | - = –<!--if {2}=hyphen show dash--> | +/- = ±<!--if {2}=+/- show plus-minus--> | #default={{{2|xx}}}<!--put range-word #1 -->}}<!--endswitch {2} word-->{{ #switch:{{padleft:|1|{{{2|x}}}}} | x|-|/ =<!--then no -/space--> | +/-|, = <!--then no break--> |#default={{#ifeq:{{{adj|off}}}|off| |-}}<!--if hyphen-- -->}}<!--endswitch {2} -->{{convert|{{{3|20}}}|{{{6|m}}}|{{{7|ft}}}<!-- -->|disp=output number only<!-- SHOW RESULT 2 -- -->|abbr={{#ifeq:{{{abbr}}}|comma|comma|def}}<!-- --> }}{{ #switch:{{padleft:|1|{{{4|x}}}}} | x|-|,|/ =<!--then no -/space--> | +/- = <!--then no break--> |#default={{#ifeq:{{{adj|off}}}|off| |-}}<!--if hyphen-- -->}}<!--endswitch {4}-->{{ #switch:{{{4|x}}}| x = ×<!--if {4}=x show small-x--> | - = –<!--if {4}=hyphen show dash--> | +/- = ±<!--if {4}=+/- show plus-minus--> | #default={{{4|xx}}}<!--put range-word #1 -->}}<!--endswitch {4} word-->{{ #switch:{{padleft:|1|{{{4|x}}}}} | x|-|/ =<!--then no -/space--> | +/-|, = <!--then no break--> |#default={{#ifeq:{{{adj|off}}}|off| |-}}<!--if hyphen-- -->}}<!--endswitch {4} -->{{convert|{{{5|30}}}|{{{6|m}}}|{{{7|ft}}}<!-- -->|disp={{#switch: {{{disp|b}}} <!--#2--> | #|number|output number only = output number only | #default = output only<!--show result 3 & unit--> }}<!--endswitch {disp} #2-- -->|lk={{{lk|off}}}<!--use link-mode -->|abbr={{<!--use abbreviation-mode--> #switch:{{{abbr|on}}}<!--condense 7 values to off/on/comma--> | in = def | none|off = off | out|on|mos = on | comma = comma }}<!--endswitch {abbr}-- -->|adj={{{sing|{{{adj|off}}}}}}<!--use adjective-mode -->|sp={{{sp|}}} }}<!--endconvert of 3rd amount -->{{#ifeq:{{{disp|b}}}|b|)}}<!--when disp=b put parenthesis- --><noinclude>{{documentation}}<!-- -------------------------- HISTORY -------------------------------- -06Nov09 Created, as Convert subtemplate, for 3-amount unit-ranges -06Nov09 Allowed disp=s or disp=/ and fixed semicolon as "& #59". -07Nov09 Allowed display of input unit as abbr=none or lk=on/in. -20Mar10 Added HISTORY comments to log major template changes. -20Mar10 Fixed to handle spelling sp=us for unit names. -20Mar10 Fixed to handle abbr=none for output unit names. -20Mar10 Fixed to handle abbr=comma for output unit names. -20Mar10 Fixed to handle abbr=mos for input/output units. -15Mar11 Removed restrictions on separator unless "warn=yes". -15Mar11 Allows separators: x, or, +/-, xx and others. -15Mar11 New disp=2 (disp=out) shows just output amounts/unit. -15Mar11 New disp=# (disp=number) shows just output amounts. -03Aug11 Replacing abbr=none with abbr=off ---></noinclude> All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://simple.wikipedia.org/w/index.php?diff=prev&oldid=4190550.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|