Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
m (Fixed bug in expr)
m (233 revisions imported)
 
(231 intermediate revisions by 29 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{{{{♥|safesubst:}}}#invoke:val|main}}</includeonly><noinclude>
Template used to present values in a scientific manner, including uncertainty.
{{documentation}}
 
== Arguments ==
# The value
# The uncertainty
or
# The value
# The upper limit of uncertainty
# The lower limit of uncertainty (negative)
 
== Examples ==
:<code><nowiki>{{ScientificValue|1.234|0.005}}</nowiki></code> -> {{ScientificValue|1.234|0.005}}
:<code><nowiki>{{ScientificValue|1.234|+0.005|-0.001}}</nowiki></code> -> {{ScientificValue|1.234|+0.005|-0.001}}
 
</noinclude>
</noinclude>
<includeonly>{{{1}}}{{{#if: {{{3|}}}
|&plusmn;{{#expr:{{{2}}}}}
|<sub>&minus;{{#expr:-{{{3}}}}}</sub><sup style="margin-left: -{{DigitsInNumber|{{{3}}}}}ex;">+{{#expr:{{{2}}}}}</sup>
}}</includeonly>

Latest revision as of 14:07, 3 September 2020