Arguments Bản_mẫu:Val

1stThe numeric basis of the value. Defaults to 100.

{{val|1234567.1234567}} → 12345671234567
{{val|.1234}} → 1234                     (adds the zero)
{{val|+1234}} → +1234                     (passes the plus)
{{val|-1234}} → −1234                     (replaces dash with minus)
{{val|1234}} → 1234                     (four-digits pure)

2ndUncertainty in either format.

{{val|11|22}} → 11±22
{{Val|11|(22)}} → 11(22)

3rdAsymmetric uncertainty.

{{Val|11|22|33}} → 11+22
−33

|e=Exponential.

{{Val|11|22|33|e=11}} → 11+22
−33×1011

|fmt=fmt=commas for the integer part, but commas ignores the fractional part. Defaults to gaps, except for four digits. Four digits accept |fmt=gaps.

{{val|1234567.1234567|fmt=commas}} → 12345671234567.
{{val|1234|fmt=gaps}} → 1234.

|u= or |ul=The unit code. Val adds a space and the unit.

|ul= Link the unit.
|u= Don't link the unit. Also accepts wiki markup in lieu of a unit code.
{{val|11|ul=m}} → 11 m

|up= or |upl=A unit code, but Instead of a space Val adds a slash and the unit, a "per" unit (the denominator), to form a ratio.

|upl= Link the per unit.
|up= Don't link the per unit.
The ratio can be of two unit codes, or a prefix and a unit code. Val will add parentheses to disambiguate, if a unit code has a dot or a slash.
{{Val|11|ul=J/C|upl=F/m}} → 11 (J/C)/(F/m)
{{Val|11|upl=acre|p=$}} → $11/mẫu Anh
{{Val|11|ul=km/s|upl=Mpc}} → 11 (km/s)/Mpc
{{Val|11|ul=kg.m|upl=s-2}} → 11 (kg⋅m)/s−2

|p=Prefix. Non-spaced, but accepts markup.

{{Val|11|22|ul=m/s|p=<Prefix>}} → <Prefix>11±22 m/s
{{Val|11|22|ul=m/s|p=<Prefix>&nbsp;}} → <Prefix> 11±22 m/s

|s=Suffix. Non-spaced, but accepts markup.

{{Val|11|22|ul=m/s|s=<Suffix>}} → 11±22 m/s<Suffix>
{{Val|11|22|ul=m/s|s=&nbsp;<Suffix>}} → 11±22 m/s <Suffix>

|end=Add something between the base number and what follows. This is how Val can do numeric ranges.

{{val|30|end={{ndash}}50|ul=km}} → 30 – 50 km
{{val|30|end=&ndash;{{gaps|1|234|567}}|ul=km}} → 30–1234567 km
{{val|1234567|fmt=commas|end={{ndash}}1,234,567|ul=km}} → 1234567 – 1,234,567 km
{{val|11|ul=m/s|end=<END>}} → 11<END> m/s
{{val|11|22|ul=m/s|end=<END>}} → 11<END>±22 m/s
{{val|11|(22)|ul=m/s|end=<End>}} → 11<End>(22) m/s
{{val|11|22|33|ul=m/s|end=<End>}} → 11<End>+22
−33 m/s
{{val|11|ul=m/s|end=<End>}} → 11<End> m/s

|errend= or |+errend= and |-errend=Appends something after an uncertainty.

{{val|11|22|ul=m/s|errend=<Errend>}} → 11±22<Errend> m/s.
{{val|11|22|33|+errend=<Errend>|-errend=<Errend>}} → 11+22<Errend>
−33<Errend>.

|sortval=Alternative sorting factor to 1
|us= or |ups=Alternative unit code for sorting.
|long scale=Usually a unit is the short ton and billion means 1×109. But there are long versions of these units and others. Use |long scale=on to assign your unit to the long scale instead. The unit code's link will change and it will sort differently in tables. "See Long and short scales".
|nocategory=If set to any value, errors in the use of this template will not cause the page to be added to the Pages with incorrect formatting templates use category. This is useful for documentation and test pages that do not need to be fixed.