Template:Esp/doc: Difference between revisions

From Sarkarverse
Jump to navigation Jump to search
m (1 revision)
 
(→‎Usage: clean up)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
{{For|the template used for responding to requests for edits to semi-protected pages|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
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 [[SV:SUBST|substituted]]. --->To render
:3.14{{Esp|−12}}
:3.14{{Esp|−12}}
instead of writing:
instead of writing:
Line 25: Line 25:
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
[[Category:Sarkarverse formatting and function templates|{{PAGENAME}}]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->


</includeonly>
</includeonly>

Latest revision as of 07:33, 12 April 2014

For the template used to show the flag of Spain, see Template:ESP.
For the template used for responding to requests for edits to semi-protected pages, see Template:ESp.

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 × 10−12

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 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 × 10-12
3.14{{Esp|&minus;12}}—3.14 × 10−12
3.14{{Esp|−12}}—3.14 × 10−12
3.14{{Esp|''z'' − ''y''}}—3.14 × 10zy

Heading text

See also