Difference between revisions of "Template:E-sp/doc"
Jump to navigation
Jump to search
imported>Sardanaphalus m (Sardanaphalus moved page Template:Esp/doc to Template:E-sp/doc: Per template page) |
imported>Sardanaphalus (updates following move; moved {{for}}s to (more noticeable) <noinclude> on template page) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
| − | |||
| − | |||
== Usage == | == Usage == | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | {{tl|e-sp}}, a more spaced version of {{tl|e}}, is intended to facilitate and make uniform [[scientific notation]] numbers. <!--It should be [[WP:SUBST|substituted]].--> | |
| − | |||
| − | |||
| − | : | ||
| − | |||
| − | + | To render, for example, | |
| − | ==See also== | + | : 3.14{{e-sp|−12}} |
| + | use | ||
| + | : <code><nowiki>3.14{{e-sp|−12}}</nowiki></code> | ||
| + | instead of | ||
| + | : <code><nowiki>3.14&nbsp;×&nbsp;10<sup>−12</sup></nowiki></code> | ||
| + | |||
| + | Note that the parameter is text, not a number; it can include variables that can be italicized, etc. This also means that using a hyphen (-) and a minus sign (−) with negative numbers gives different results: | ||
| + | {{Aligned table |cols=3 | ||
| + | | <code><nowiki>3.14{{e-sp|-12}}</nowiki></code> | yields: | 3.14{{e-sp|-12}} | ||
| + | | <code><nowiki>3.14{{e-sp|&minus;12}}</nowiki></code> | yields: | 3.14{{e-sp|−12}} | ||
| + | | <code><nowiki>3.14{{e-sp|−12}}</nowiki></code> | yields: | 3.14{{e-sp|−12}} | ||
| + | | <code><nowiki>3.14{{e-sp|''z'' − ''y''}}</nowiki></code> | yields: | 3.14{{e-sp|''z'' − ''y''}} | ||
| + | }} | ||
| + | |||
| + | == See also == | ||
*{{tl|10^}} | *{{tl|10^}} | ||
*{{tl|e}} | *{{tl|e}} | ||
Revision as of 14:30, 19 June 2014
| This is a documentation subpage for Template:E-sp. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{e-sp}}, a more spaced version of {{e}}, is intended to facilitate and make uniform scientific notation numbers.
To render, for example,
- 3.14 × 10−12
use
3.14{{e-sp|−12}}
instead of
3.14 × 10<sup>−12</sup>
Note that the parameter is text, not a number; it can include variables that can be italicized, etc. This also means that using a hyphen (-) and a minus sign (−) with negative numbers gives different results: Script error: No such module "aligned table".
See also