Difference between revisions 5293697 and 5293707 on simplewiki<noinclude><!-- - ================================================================== - Template:Convert/2 - Convert 2 units with any text between -================================================================== - (see NOTES at bottom) --></noinclude>{{#switch:{{{warn|no}}} | y|yes = {{#switch:{{{2|xby}}} | and|or|x|xx|by|-|+/-|,|to = <!--ok--> (contracted; show full) #switch: {{{abbr|def}}}<!--condense 7 values to off/on/comma--> | def = {{#switch:{{{4|m}}} | F|C|K|R|°F|°C = on <!--force temperature as symbol--> | #default=def}} | off|out|none|comma|mos = off | on|in = on }}<!--endswitch {abbr}-- -->|lk={{{lk|off}}}|adj={{ ⏎ #ifeq: {{{adj|off}}} |split | on | {{{sing|{{{adj|off}}}}}}⏎ }}<!-- -->|sp={{{sp|}}} }}<!--show unit --------------------------------------- check {x4} --show-x4-->{{#if:{{{x4|}}}|{{ #switch: {{padleft:|1|{{{x4}}}z}} | -|&|< = {{{x4}}} | #default = {{{x4}}} }} (contracted; show full) }}|<!--param.4-->{{#if:{{{p|}}} |{{#expr:{{{p}}} }} |{{#ifeq:{{{disp|b}}}|x |{{#if:{{{8|}}}|{{{8}}} }}<!--endif {8}--> |{{#if:{{{6|}}} |{{#expr: {{{6}}} }} |{{#expr: {{ #ifexpr: {{ <!--numsense-->precision|{{{1|10}}}|}} > {{<!--numsense-->precision|{{{3|20}}}|}} |{{<!--numsense-->precision |{{{1|10}}}|}} |{{<!--numsense-->precision |{{{3|20}}}|}} }}<!--endifexpr numsense-->{{ #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 (contracted; show full) }}|<!--param.4-->{{#if:{{{p|}}} |{{#expr:{{{p}}} }} |{{#ifeq:{{{disp|b}}}|x |{{#if:{{{8|}}}|{{{8}}} }}<!--endif {8}--> |{{#if:{{{6|}}} |{{#expr: {{{6}}} }} |{{#expr: {{ #ifexpr: {{ <!--numsense-->precision|{{{1|10}}}|}} > {{<!--numsense-->precision|{{{3|20}}}|}} | {{<!--numsense-->precision |{{{1|10}}}|}} | {{<!--numsense-->precision |{{{3|20}}}|}} }}<!--endifexpr numsense-->{{ #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 (contracted; show full) -31Jan14 Set default precision +1 if converted range difference < 1. -31Jan14 Changed to show input unit symbol for abbr=~. -03Feb14 Fix when {4}=F|C as +/- to use F-change or C-change on {3}. -03Feb14 Auto-corrected for lb to km, mi to kg & sqft to m/km. -03Feb14 Unlinked {convert/old} but allows 1+3 in 'p=' or {6}. -04Jan16 Fixed adj=split to show singular "-unit" name. -04Jan16 Changed range "x" to repeat output unit symbol. -04Jan16 Restored {numsense} to fix precision 10-20 C. -04Jan16 Filter adj=split as adj=on to avoid Lua error.⏎ --> {{documentation}}{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- This documentation page isused on multiple .pages. Some categories should be in the individual pages, not here. [[simple:Template:Convert/2]] -->}}</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=5293707.
![]() ![]() 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.
|