Template:E/doc

Template page

The {{10^}} and {{x10^}} templates are intended to facilitate and make uniform scientific notation numbers. The {{10^}} template works exactly as described below except that it does not generate a multiplication ("×") symbol.

Usage

To render 3.14Template:X10^, instead of writing 3.14&nbsp;×&nbsp;10<sup>&minus;12</sup> you can write 3.14{{x10^|-12}}:

{{x10^|b}}Template:X10^
{{10^|b}}Template:10^
{{x10^|-12}}Template:X10^
{{10^|-12}}Template:10^

The first output character for {{x10^}} is a non-breaking thin-space ("]" and "[" are used to illustrate the effects):

]{{x10^|b}}[]Template:X10^[
]{{10^|b}}[]Template:10^[
]{{x10^|-12}}[]Template:X10^[
]{{10^|-12}}[]Template:10^[

Delimiters

The template uses gaps or commas, per {{Val}}.

1.2{{x10^|12341}}1.2Template:X10^

See #Forcing text display to turn this off.

Text and number recognition

By default, the template recognizes both text and numbers. That is, typing 3.14{{x10^|-12}} will produce 3.14Template:X10^, with the proper minus sign (""), rather than with a hyphen ("-"). However, typing A{{x10^|-BC}} will produce ATemplate:X10^ since BC is not a number. In those cases, you need to write A{{x10^|&minus;BC}} to produce the correct ATemplate:X10^.

A minus sign also has to be provided for cases like 1.2Template:X10^ (1.2{{x10^|1 &minus; 2}}).

Explicit plus sign

To explicitly display the + character, write 1.2{{x10^|4|plus}} which will produce 1.2Template:X10^.

Forcing text display

To force the template to display the input as text, and forgo the automatic delimitation and the recognition of the hyphen as a minus sign, write 1.2{{x10^|&minus;42342|text}}, which will display 1.2Template:X10^ instead of 1.2Template:X10^. This can also be used as an alternative to explicitly display the plus sign (1.2{{x10^|+4|text}} gives 1.2Template:X10^), but remember that you also lose delimitation if you do it this way.

Tracking category

See also