Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
(Added n argument, using delimitnum)
meta>SkyLined
(Created based on other val/* templates)
Line 1: Line 1:
<noinclude>
<noinclude>
{{documentation}}
{{Documentation|Template:val/doc}}
<!--
<!--
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.
--></noinclude><includeonly>{{
--></noinclude><includeonly><span style="white-space:nowrap"><!--
REM|Make sure this doesn't wrap:  }}<span style="white-space:nowrap">{{
Check to see if we want brackets (want both exponent and error):
REM|First argument                }}{{delimitnum|{{{1|}}}}}&nbsp;{{
-->{{#if: {{{e|}}}|{{#if: {{{2|}}}|(}}}}<!--
REM|Closing bracket and e argument }}{{#if: {{{e|}}}|&nbsp;×&nbsp;10<sup>{{{e}}}</sup>}}{{
-->{{#if: {{{n|}}}|{{delimitnum|{{{n}}}}}}}<!--"n" Value
REM|
-->{{{1|}}}<!--First argument value
}}</includeonly>
-->{{#if:{{{s|}}}|&nbsp;({{{s}}})<!--Significance
-->}}{{#if: {{{2|}}}
|&nbsp;{{#if: {{{3|}}}
|{{su|w=f|p={{{2}}}|b={{{3}}}}}<!--Uncertainty (two values)-->
|±&nbsp;{{{2}}}<!--Uncertainty (one value)-->
}}
}}{{#if: {{{e|}}}
|<!--
End bracket here?
-->{{#if: {{{2|}}}|)}}<!--
-->&nbsp;×&nbsp;10<sup>{{{e}}}</sup>
}}{{#if: {{{u|}}}
|&nbsp;{{ScientificValue/units|{{{u}}}}}
}}</span></includeonly>

Revision as of 21:02, 9 April 2008