Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Mike Peel
Add brackets around number and error if the exponent is present
Ookami (talk | contribs)
m 233 revisions imported
 
(199 intermediate revisions by 28 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{{{{♥|safesubst:}}}#invoke:val|main}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
<!--
</noinclude>
PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS
Normally, the code for the template is included, but this template is too complex to do that.
--></noinclude><includeonly><span style="white-space:nowrap"><!--
Check to see if we want brackets (want both exponent and error):
-->{{#if: {{{e|}}}|{{#if: {{{2|}}}|(}}}}<!--
-->{{{1|}}}{{#if: {{{2|}}}
|&nbsp;{{#if: {{{3|}}}
|<sub>−{{#expr:-{{{3}}}}}</sub><sup style="margin-left: -{{#expr:-1 + {{DigitsInNumber|{{{3}}}}}}}ex;">+{{#expr:{{{2}}}}}</sup>
|±&nbsp;{{#expr:{{{2}}}}}
}}
}}{{#if: {{{e|}}}
|<!--
End bracket here?
-->{{#if: {{{2|}}}|)}}<<!--
-->&nbsp;×&nbsp;10<sup>{{{e}}}</sup>
}}{{#if: {{{u|}}}
|&nbsp;{{{u}}}
}}</span></includeonly>

Latest revision as of 14:07, 3 September 2020