Template:Val

{{#ifeq:{{valid|number={{{1}}}}}|false|{{FormattingError|Error in {{tl|val}}: first argument is not a valid number or requires too much precision to display.}}|{{#ifeq:{{valid|number={{{2|0}}}}}|false|{{FormattingError|Error in {{tl|val}}: second argument is not a valid number or requires too much precision to display.}}|{{#ifeq:{{valid|number={{{3|0}}}}}|false|{{FormattingError|Error in {{tl|val}}: third argument is not a valid number or requires too much precision to display.}}|{{#ifexpr: {{{3|-1}}} >= 0|{{FormattingError|Error in {{tl|val}}: third argument is not negative.}}|{{#ifeq:{{valid|number={{{e|0}}}}}|false|{{FormattingError|Error in {{tl|val}}: exponent (e) is not a valid number or requires too much precision to display.}}|{{#ifeq:{{{u|{{{up|}}}}}}|{{{up}}}|{{FormattingError|Error in {{tl|val}}: unit (u) is not specified but units per (up) is.}}|{{#ifeq:{{{u}}}{{{ul}}}|{{{u|}}}{{{ul|}}}|{{FormattingError|Error in {{tl|val}}: unit (u) and units with link (ul) are both specified, only one is allowed.}}|{{#ifeq:{{{up}}}{{{upl}}}|{{{up|}}}{{{upl|}}}|{{FormattingError|Error in {{tl|val}}: unit per (up) and units per with link (upl) are both specified, only one is allowed.}}|{{{h|}}}{{val/delimitnum|{{{1|}}}}}{{#if: {{{2|}}}|{{#if: {{{3|}}}| $+$ |{{#if:{{#ifexpr: 0{{{2}}}}}| {{{2}}} | ± {{val/delimitnum|{{{2}}}}}}}}}}}{{#if:{{{e|}}}| × 10$$}}{{#if:{{{u|}}}| {{val/units|{{{u}}}}}}}{{#if:{{{ul|}}}| {{val/unitswithlink|{{{ul}}}}}}}{{#if:{{{up|}}}|/{{val/units|{{{up}}}}}}}{{#if:{{{upl|}}}|/{{val/unitswithlink|{{{upl}}}}}}}{{{f|}}}||}}}}}}}}}}}}