Difference between revisions of "Template:ErrorBar2"
Jump to navigation
Jump to search
imported>TFOWR m (Unprotected Template:ErrorBar2: Unprotection, Consensus at ANI appears to be that original protection level should be restored. using TW) |
imported>EmausBot m (robot Adding: vi:Bản mẫu:ErrorBar2; cosmetic changes) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#if:{{{2|}}}|{{#ifexpr: {{{2}}} > {{{1}}} * {{{3}}}|approx. {{#expr: {{{1}}} round {{Sigfigs|{{{2}}}}}}}|{{#expr: {{{1}}} round {{Sigfigs|{{{2}}}}} }} | + | <includeonly>{{#if:{{{2|}}}|{{#ifexpr: {{{2}}} > {{{1}}} * {{{3}}}|approx. {{#expr: {{{1}}} round {{Sigfigs|{{{2}}}}}}}|{{#expr: {{{1}}} round {{Sigfigs|{{{2}}}}} }} ± {{#expr: {{{2}}} round {{Sigfigs|{{{2}}}}} }} }} |{{{1}}} }}</includeonly><noinclude> |
This template is used to display a correctly rounded uncertain quantity and its uncertainty, except that if | This template is used to display a correctly rounded uncertain quantity and its uncertainty, except that if | ||
| Line 17: | Line 17: | ||
* <nowiki>{{ErrorBar2|1573.614|0.007|0.1}}</nowiki> yields ''{{ErrorBar2|1573.614|0.007|0.1}}''. | * <nowiki>{{ErrorBar2|1573.614|0.007|0.1}}</nowiki> yields ''{{ErrorBar2|1573.614|0.007|0.1}}''. | ||
| + | [[vi:Bản mẫu:ErrorBar2]] | ||
</noinclude> | </noinclude> | ||
Revision as of 06:51, 26 October 2010
This template is used to display a correctly rounded uncertain quantity and its uncertainty, except that if
the uncertainty exceeds a threshold times the quantity, the uncertainty is not displayed and it is merely
indicated that the quantity is uncertain.
Its syntax is
{{ErrorBar2|uncertain-quantity|uncertainty|threshold}}.
For example:
- {{ErrorBar2|1573.614|687.9|0.1}} yields approx. Expression error: Unrecognized punctuation character "["..
- {{ErrorBar2|1573.614|187.9|0.1}} yields approx. Expression error: Unrecognized punctuation character "["..
- {{ErrorBar2|1573.614|123.4|0.1}} yields Expression error: Unrecognized punctuation character "[". ± Expression error: Unrecognized punctuation character "["..
- {{ErrorBar2|1573.614|47.9|0.1}} yields Expression error: Unrecognized punctuation character "[". ± Expression error: Unrecognized punctuation character "["..
- {{ErrorBar2|1573.614|0.873|0.1}} yields Expression error: Unrecognized punctuation character "[". ± Expression error: Unrecognized punctuation character "["..
- {{ErrorBar2|1573.614|0.007|0.1}} yields Expression error: Unrecognized punctuation character "[". ± Expression error: Unrecognized punctuation character "["..