Template:Val

{{#ifeq:{{valid|number={{{1|0}}}}}|false|{{FormattingError|Error in {{tl|val}}: first argument is not a valid number or requires too much precision to display.|nocategory={{{nocategory|}}}}}|{{#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.|nocategory={{{nocategory|}}}}}|{{#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.|nocategory={{{nocategory|}}}}}|{{#ifexpr: {{{3|-1}}} >= 0|{{FormattingError|Error in {{tl|val}}: third argument is not negative.|nocategory={{{nocategory|}}}}}|{{#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.|nocategory={{{nocategory|}}}}}|{{#ifeq:{{{u|{{{ul|{{{up|{{{upl|}}}}}}}}}}}}|{{{up|{{{upl}}}}}}|{{FormattingError|Error in {{tl|val}}: unit (u or ul) is not specified but units per (up or upl) is.|nocategory={{{nocategory|}}}}}|{{#ifeq:{{{u}}}{{{ul}}}|{{{u|}}}{{{ul|}}}|{{FormattingError|Error in {{tl|val}}: unit (u) and units with link (ul) are both specified, only one is allowed.|nocategory={{{nocategory|}}}}}|{{#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.|nocategory={{{nocategory|}}}}}|{{{p|}}}{{{#if:{{{1|}}}|{{val/delimitnum|{{{1|}}}}}{{{end|}}}{{#if: {{{2|}}}|{{#if: {{{3|}}}| $+$ |{{#if:{{#ifexpr: 0{{{2}}}}}|{{{2}}}| ± {{val/delimitnum|{{{2}}}}}{{{errend|}}}}}}}}}{{#if:{{{e|}}}| × End is there at least one unnamed argument

-->{{#if:{{{e|}}}|10$$}}{{#if:{{{u|}}}| {{val/units|{{{u}}}}}}}{{#if:{{{ul|}}}| {{val/unitswithlink|{{{ul}}}}}}}{{#if:{{{up|}}}|/{{val/units|{{{up}}}}}}}{{#if:{{{upl|}}}|/{{val/unitswithlink|{{{upl}}}}}}}{{{s|}}}}}}}}}}}}}}}}}}}