User:Sirwhiteout/Sandbox/SIdim

{{#if:{{{long|}}}|{{#vardefine:USCunitLong|{{#switch:{{#var:USCunit0}} |in = {{#ifeq:{{#var:num}}|1|inch|inches}} |ft = {{#ifeq:{{#var:num}}|1|foot|feet}} |yd = {{#ifeq:{{#var:num}}|1|yard|yards}} |mi = {{#ifeq:{{#var:num}}|1|mile|miles}} |league|leagues = {{#ifeq:{{#var:num}}|1|league|leagues}} |fathom|fathoms = {{#ifeq:{{#var:num}}|1|fathom|fathoms}} |{{#var:USCunit}} }} }}{{#if:{{#var:USCunit2}}|{{#vardefine:USCunitLong2|{{#ifeq:{{#var:num2}}|1|inch|inches}}}}}}{{#if:{{#var:SIprefix0}}|{{#vardefine:SIprefixLong|{{#switch:{{#var:SIprefix0}} |m = milli |c = centi |d = deci |da = deca |h = hecto |k = kilo |l|L = {{#ifeq:{{#var:SInum}}|1|liter|liters}} |ml|mL = {{#ifeq:{{#var:SInum}}|1|milliliter|milliliters}} |{{#var:SIprefix}} }} }} }}{{#if:{{{long|}}}|{{#vardefine:by|by}}|{{#vardefine:by|×}} }}{{#if:{{#var:USCunit2}}|{{formatnum:{{#var:num01}}}}{{#var:USCunit0}}{{formatnum:{{#var:num21}}}}{{#var:USCunit21}} {{#var:by}} {{#var:num02}}{{#var:USCunit0}}{{#var:num22}}{{#var:USCunit22}}|{{#replace:{{formatnum:{{#var:num01}} }}|-|−}} {{#var:by}} {{#replace:{{formatnum:{{#var:num02}} }}|-|−}} {{#var:USCunit0}}}} ({{#replace:{{formatnum:{{#var:SInum1}} }}|-|−}} {{#var:by}} {{#replace:{{formatnum:{{#var:SInum2}} }}|-|−}} {{#var:SIunit}}){{#vardefine:num01|}}{{#vardefine:num02|}}{{#vardefine:num11|}}{{#vardefine:num12|}}{{#vardefine:num21|}}{{#vardefine:num22|}}{{#vardefine:unit|}}{{#vardefine:SIprefix0|}}
 * {{#vardefine:SIfactor|1}}