Template:E/doc: Difference between revisions
Jump to navigation
Jump to search
imported>Drew R. Smith (New page: <includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> == Usage == Th...) |
imported>Caesar Schinas mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
The {{Tl|e}} template is intended to facilitate and make uniform [[scientific notation]] numbers. <!--- It should be [[CZ:SUBST|substituted]]. --->To render | The {{Tl|e}} template is intended to facilitate and make uniform [[scientific notation]] numbers. <!--- It should be [[CZ:SUBST|substituted]]. --->To render | ||
Line 15: | Line 14: | ||
:<tt><nowiki>3.14{{subst:e|−12}}</nowiki></tt> 3.14 × 10<sup>−12</sup> | :<tt><nowiki>3.14{{subst:e|−12}}</nowiki></tt> 3.14 × 10<sup>−12</sup> | ||
:<tt><nowiki>3.14{{subst:e|''z'' − ''y''}}</nowiki></tt> 3.14 × 10<sup>''z'' − ''y''</sup> | :<tt><nowiki>3.14{{subst:e|''z'' − ''y''}}</nowiki></tt> 3.14 × 10<sup>''z'' − ''y''</sup> | ||
Latest revision as of 07:51, 15 June 2009
Usage
The {{e}} template is intended to facilitate and make uniform scientific notation numbers. To render
- 3.14 × 10−12
instead of writing:
- 3.14 × 10<sup>−12</sup>
you can write:
- 3.14{{subst:e|−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{{subst:e|-12}} 3.14 × 10-12
- 3.14{{subst:e|−12}} 3.14 × 10−12
- 3.14{{subst:e|−12}} 3.14 × 10−12
- 3.14{{subst:e|''z'' − ''y''}} 3.14 × 10z − y