Template:E/doc: Difference between revisions
Appearance
Template:E/doc
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "{{Documentation subpage}} {{Commons Import}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> The {{tl|10^}} and {{tl|x10^}}templates are intended to facilitate and make..." |
Caleb Cooper (talk | contribs) Redirected page to Template:X10^/doc Tag: New redirect |
||
| Line 1: | Line 1: | ||
#REDIRECT [[Template:X10^/doc]] |
|||
{{Documentation subpage}} |
|||
{{Commons Import}} |
|||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> |
|||
The {{tl|10^}} and {{tl|x10^}}templates are intended to facilitate and make uniform [[scientific notation]] numbers. The {{tl|10^}} template works exactly as described below except that it does not generate a multiplication (“{{xt|×}}”) symbol. |
|||
==Usage== |
|||
To render {{xt|3.14{{x10^|-12}}}}, instead of writing {{xt|<nowiki>3.14&nbsp;&times;&nbsp;10<sup>&minus;12</sup></nowiki>}} you can write {{xt|<nowiki>3.14{{x10^|-12}}</nowiki>}}: |
|||
{{xt|<nowiki>{{x10^|b}}</nowiki>}} → {{xt|{{x10^|b}}}} |
|||
{{xt|<nowiki>{{10^|b}}</nowiki>}} → {{xt|{{10^|b}}}} |
|||
{{xt|<nowiki>{{x10^|-12}}</nowiki>}} → {{xt|{{x10^|-12}}}} |
|||
{{xt|<nowiki>{{10^|-12}}</nowiki>}} → {{xt|{{10^|-12}}}} |
|||
The first output character for {{tlf|x10^}} is a non-breaking thin-space (“{{xt|]}}” and “{{xt|[}}” are used to illustrate the effects): |
|||
{{xt|<nowiki>]{{x10^|b}}[</nowiki>}} → {{xt|]{{x10^|b}}[}} |
|||
{{xt|<nowiki>]{{10^|b}}[</nowiki>}} → {{xt|]{{10^|b}}[}} |
|||
{{xt|<nowiki>]{{x10^|-12}}[</nowiki>}} → {{xt|]{{x10^|-12}}[}} |
|||
{{xt|<nowiki>]{{10^|-12}}[</nowiki>}} → {{xt|]{{10^|-12}}[}} |
|||
===Delimiters=== |
|||
The template uses gaps or commas, per {{tl|val/delimitnum}}.<br /> |
|||
{{xt|<nowiki>1.2{{x10^|12341}}</nowiki>}} → {{xt|1.2{{x10^|12341}}}} |
|||
See ''[[#Forcing text display]]'' to turn this off. |
|||
===Text and number recognition=== |
|||
By default, the template recognizes both text and numbers. That is, typing {{xt|<nowiki>3.14{{x10^|-12}}</nowiki>}} will produce {{xt|3.14{{x10^|-12}}}}, with the proper [[minus sign]] (“{{xt|−}}”), rather than with a [[hyphen]] (“{{xt|-}}”). However, typing {{xt|<nowiki>A{{x10^|-BC}}</nowiki>}} will produce {{xt|A{{x10^|-BC}}}} since {{xt|BC}} is not a number. In those cases, you need to write {{xt|<nowiki>A{{x10^|&minus;BC}}</nowiki>}} to produce the correct {{xt|A{{x10^|−BC}}}}. |
|||
A minus sign also has to be provided for cases like {{xt|1.2{{x10^|1 − 2}}}} ({{xt|<nowiki>1.2{{x10^|1 &minus; 2}}</nowiki>}}). |
|||
===Explicit plus sign=== |
|||
To explicitly display the {{xt|+}} character, write {{xt|<nowiki>1.2{{x10^|4|plus}}</nowiki>}} which will produce {{xt|1.2{{x10^|4|plus}}}}. |
|||
===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 {{xt|<nowiki>1.2{{x10^|&minus;42342|text}}</nowiki>}}, which will display {{xt|1.2{{x10^|−42342|text}}}} instead of {{xt|1.2{{x10^|-42342}}}}. This can also be used as an alternative to explicitly display the plus sign ({{xt|<nowiki>1.2{{x10^|+4|text}}</nowiki>}} gives {{xt|1.2{{x10^|+4|text}}}}), but remember that you also lose delimitation if you do it this way. |
|||
== Tracking category == |
|||
* {{clc|Articles using E without any arguments}} – a hidden category which may be added to pages using [[Template:E]] |
|||
==See also== |
|||
For more detail see wikipedia page [[wikipedia:Template:X10^]] |
|||
{{Sup and sub-related templates}} |
|||
<includeonly>{{Sandbox other|| |
|||
<!-- ADD CATEGORIES BELOW THIS LINE --> |
|||
[[Category:Mathematical formatting templates]] |
|||
[[Category:Superscript and subscript templates]] |
|||
[[Category:Templates that add a tracking category]] |
|||
}}</includeonly> |
|||
Latest revision as of 16:21, 20 October 2020
Redirect to: