Difference between revisions of "Template:E-sp/doc"
Jump to navigation
Jump to search
imported>RussBot m (Robot: changing categories due to redirect) |
imported>Ruslik0 (→Usage: ce) |
||
| Line 3: | Line 3: | ||
== 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 | 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. | + | :3.14{{Esp|−12}} |
instead of writing: | instead of writing: | ||
| − | :<tt><nowiki>3. | + | :<tt><nowiki>3.14&nbsp;×&nbsp;10<sup>−12</sup></nowiki></tt> |
you can write: | you can write: | ||
:<tt><nowiki>3.14{{Esp|−12}}</nowiki></tt> | :<tt><nowiki>3.14{{Esp|−12}}</nowiki></tt> | ||
| Line 11: | Line 11: | ||
Note that the parameter is text, not a number; it can include variables which can be italicized, etc. This also means that using a hyphen (-) and a minus sign (−) with negative numbers gives different results. | Note that the parameter is text, not a number; it can include variables which can be italicized, etc. This also means that using a hyphen (-) and a minus sign (−) with negative numbers gives different results. | ||
| − | :<tt><nowiki>3.14{{Esp|-12}}</nowiki></tt> 3. | + | :<tt><nowiki>3.14{{Esp|-12}}</nowiki></tt>—3.14{{Esp|-12}} |
| − | :<tt><nowiki>3.14{{Esp|&minus;12}}</nowiki></tt> 3. | + | :<tt><nowiki>3.14{{Esp|&minus;12}}</nowiki></tt>—3.14{{Esp|−12}} |
| − | :<tt><nowiki>3.14{{Esp|−12}}</nowiki></tt> 3. | + | :<tt><nowiki>3.14{{Esp|−12}}</nowiki></tt>—3.14{{Esp|−12}} |
| − | :<tt><nowiki>3.14{{Esp|''z'' − ''y''}}</nowiki></tt> 3. | + | :<tt><nowiki>3.14{{Esp|''z'' − ''y''}}</nowiki></tt>—3.14{{Esp|''z'' − ''y''}} |
==See also== | ==See also== | ||
Revision as of 14:35, 13 November 2008
Template:Template doc page viewed directly
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 × 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 which 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|−12}}—3.14
- 3.14{{Esp|−12}}—3.14
- 3.14{{Esp|''z'' − ''y''}}—3.14