Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Mike Peel
m missed a small tag
meta>Mike Peel
Add brackets around number and error if the exponent is present
Line 4: Line 4:
PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS
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.
Normally, the code for the template is included, but this template is too complex to do that.
--></noinclude><includeonly><span style="white-space:nowrap">{{{1|}}}{{#if: {{{2|}}}
--></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|}}}
|&nbsp;{{#if: {{{3|}}}
|<sub>−{{#expr:-{{{3}}}}}</sub><sup style="margin-left: -{{#expr:-1 + {{DigitsInNumber|{{{3}}}}}}}ex;">+{{#expr:{{{2}}}}}</sup>
|<sub>−{{#expr:-{{{3}}}}}</sub><sup style="margin-left: -{{#expr:-1 + {{DigitsInNumber|{{{3}}}}}}}ex;">+{{#expr:{{{2}}}}}</sup>
Line 10: Line 13:
}}
}}
}}{{#if: {{{e|}}}
}}{{#if: {{{e|}}}
|&nbsp;×&nbsp;10<sup>{{{e}}}</sup>
|<!--
End bracket here?
-->{{#if: {{{2|}}}|)}}<<!--
-->&nbsp;×&nbsp;10<sup>{{{e}}}</sup>
}}{{#if: {{{u|}}}
}}{{#if: {{{u|}}}
|&nbsp;{{{u}}}
|&nbsp;{{{u}}}
}}</span></includeonly>
}}</span></includeonly>

Revision as of 19:20, 27 March 2008