Difference between revisions of "Template:E"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
m (49 revisions from wikipedia:Template:E)
 
(24 intermediate revisions by 17 users not shown)
Line 1: Line 1:
×10<sup>{{{1}}}</sup><noinclude>
+
{{#if:{{{1|}}}
{{e/Help}}
+
|<span style="margin:0 .15em 0 .25em">×</span>10<sup><!--
[[Category:Function templates|{{PAGENAME}}]]
+
-->{{#ifeq:{{{2|}}}|text
 
+
  |{{{1}}}
[[eu:Txantiloi:E]]
+
  |{{#ifeq:{{valid|number={{{1}}}}}|false
[[fr:Modèle:x10]]
+
    |{{{1}}}
[[hu:Sablon:E]]
+
    |{{#ifeq:{{{2|}}}|plus
[[hr:Predložak:E]]
+
      |&#43;{{val/delimitnum|{{{1}}}}}
[[ja:Template:E]]
+
      |{{val/delimitnum|{{{1}}}}}
[[rmy:Sikavno:E]]
+
    }}
[[ro:Format:E]]
+
  }}
[[sk:Šablóna:E]]
+
}}</sup>
[[uk:Шаблон:E]]
+
|{{Main other|[[Category:Articles using E without any arguments]]}}
[[sr:Шаблон:E]]
+
}}<noinclude>
[[no:Mal:E]]
+
{{documentation}}
[[su:Citakan:E]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 08:50, 15 March 2016

Documentation icon Template documentation[view] [edit] [history] [purge]

The {{e}} and {{10^}} 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[edit]

To render Template:Xt, instead of writing Template:Xt you can write Template:Xt:

{{#invoke:DemoTemplate|e|b}}

{{#invoke:DemoTemplate|10^|b}}

{{#invoke:DemoTemplate|10^|-12}}

The first output character for {{e}} is a non-breaking thin-space:

.{{e|b}}. → .×10Template:Val/delimitnum.

.{{10^|b}}. → .Template:10^.

.{{10^|-12}}. → .Template:10^.

Delimiters[edit]

The template uses gaps or commas, per {{val/delimitnum}}.
Template:XtTemplate:Xt.

See #Forcing text display to turn this off.

Text and number recognition[edit]

By default, the template recognizes both text and numbers. That is, typing Template:Xt will produce Template:Xt, with the proper minus sign (Template:Xt), rather than with a hyphen (Template:Xt). However, typing Template:Xt will produce Template:Xt since Template:Xt is not a number. In those cases, you need to write Template:Xt to produce the correct Template:Xt.

A minus sign also has to be provided for cases like Template:Xt (Template:Xt).

Explicit plus sign[edit]

To explicitly display the Template:Xt character, write Template:Xt which will produce Template:Xt.

Forcing text display[edit]

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 Template:Xt, which will display Template:Xt instead of Template:Xt. This can also be used as an alternative to explicitly display the plus sign (Template:Xt gives Template:Xt), but remember that you also lose delimitation if you do it this way.

Tracking category[edit]

Category:Articles using E without any arguments is a hidden category which may be added to pages using Template:E.

See also[edit]


Template:Sup and sub-related templates