Difference between revisions of "Template:E-sp/doc"

From blackwiki
Jump to navigation Jump to search
imported>Meteor sandwich yum
m (→‎See also: add 10^)
imported>Sardanaphalus
(→‎See also: categorization)
Line 26: Line 26:
 
<includeonly>
 
<includeonly>
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
+
[[Category:Mathematical formatting templates]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
+
[[Category:Superscript and subscript templates]]
 
 
 
</includeonly>
 
</includeonly>

Revision as of 12:47, 19 June 2014

Usage

The {{Esp}} template is intended to facilitate and make uniform scientific notation numbers. Its is a spaced version of {{e}} template. To render

3.14

instead of writing:

3.14&nbsp;×&nbsp;10<sup>−12</sup>

you can write:

3.14{{Esp|−12}}

which yields that same wikitext, and is therefore rendered the same.

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.

3.14{{Esp|-12}}—3.14
3.14{{Esp|&minus;12}}—3.14
3.14{{Esp|−12}}—3.14
3.14{{Esp|''z'' − ''y''}}—3.14

Heading text

See also