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

From blackwiki
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 -->
{{For|the template used to show the flag of Spain|Template:ESP}}
 
{{For|the template used for responding to requests for edits to semi-protected pages|Template:ESp}}
 
 
== Usage ==
 
== Usage ==
The {{Tl|Esp}} template is intended to facilitate and make uniform [[scientific notation]] numbers. Its is a spaced version of {{tl|e}} template. <!--- It should be [[WP:SUBST|substituted]]. --->To render
 
:3.14{{Esp|−12}}
 
instead of writing:
 
:<tt><nowiki>3.14&amp;nbsp;×&amp;nbsp;10<sup>−12</sup></nowiki></tt>
 
you can write:
 
:<tt><nowiki>3.14{{Esp|−12}}</nowiki></tt>
 
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 (&minus;) with negative numbers gives different results.
+
{{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]].-->
:<tt><nowiki>3.14{{Esp|-12}}</nowiki></tt>&mdash;3.14{{Esp|-12}}
 
:<tt><nowiki>3.14{{Esp|&amp;minus;12}}</nowiki></tt>&mdash;3.14{{Esp|&minus;12}}
 
:<tt><nowiki>3.14{{Esp|−12}}</nowiki></tt>&mdash;3.14{{Esp|−12}}
 
:<tt><nowiki>3.14{{Esp|''z'' − ''y''}}</nowiki></tt>&mdash;3.14{{Esp|''z'' − ''y''}}
 
  
== Heading text ==
+
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&amp;nbsp;×&amp;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 (&minus;) 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|&amp;minus;12}}</nowiki></code> | yields: | 3.14{{e-sp|&minus;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>&nbsp; | 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

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&nbsp;×&nbsp;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