• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:X10^

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

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.

Contents

  • 1 Usage
    • 1.1 Delimiters
    • 1.2 Text and number recognition
    • 1.3 Explicit plus sign
    • 1.4 Forcing text display
  • 2 Tracking category
  • 3 See also

Usage

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

{{x10^|b}} → ×10b
{{10^|b}} → 10b
{{x10^|-12}} → ×10−12
{{10^|-12}} → 10−12

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

]{{x10^|b}}[ → ]×10b[
]{{10^|b}}[ → ]10b[
]{{x10^|-12}}[ → ]×10−12[
]{{10^|-12}}[ → ]10−12[

Delimiters

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

1.2{{x10^|12341}} → 1.2×1012341

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.14×10−12, with the proper minus sign ("−"), rather than with a hyphen ("-"). However, typing A{{x10^|-BC}} will produce A×10-BC since BC is not a number. In those cases, you need to write A{{x10^|&minus;BC}} to produce the correct A×10−BC.

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

Explicit plus sign

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

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.2×10−42342 instead of 1.2×10−42342. This can also be used as an alternative to explicitly display the plus sign (1.2{{x10^|+4|text}} gives 1.2×10+4), but remember that you also lose delimitation if you do it this way.

Tracking category

  • Category:Articles using x10^ with no parameters (1) – a hidden category which may be added to pages using Template:E

See also

  • m:Template:e
  • {{e-sp}}, a more spaced version of {{x10^}}.
  • {{val}}
  • {{scinote}}


  • v
  • t
  • e
Superscript and subscript-related templates
{{sup}} and related templatesCombined super/subscripts
sup textsuperscript    superscripttext
smallsup (ssup) textsmall superscript    small superscripttext
i sup (isup · padlsup) textsuperscript  (rather than: textsuperscript)
i smallsup (issup · padlssup) textsmall superscript  (rather than: textsmall superscript)
b sup (bsup) textsuperscript  (rather than: textsuperscript)
sub textsubscript    subscripttext
smallsub (ssub) textsmall subscript    small subscripttext
subsub textdouble-subscripted    double-subscriptedtext
su textp=superscript
b=subscript
    p=superscript
b=subscript
text
sup sub textsup
sub
    sup
sub
text
± 1.23+4
−2
overunderset / underoverset superscripttextsubscript
Subscript and superscript
The above documentation is transcluded from Template:X10^/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:X10%5E&oldid=1059580852"
Last edited on 10 December 2021, at 08:46

Languages

    • Afrikaans
    • Alemannisch
    • Алтай тил
    • Ænglisc
    • العربية
    • অসমীয়া
    • Asturianu
    • Авар
    • Azərbaycanca
    • Basa Bali
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • Башҡортса
    • Беларуская
    • Беларуская (тарашкевіца)
    • भोजपुरी
    • Български
    • Bosanski
    • Brezhoneg
    • Català
    • Чӑвашла
    • Čeština
    • Cymraeg
    • Dansk
    • الدارجة
    • Eesti
    • Ελληνικά
    • Español
    • Esperanto
    • Euskara
    • فارسی
    • Føroyskt
    • Français
    • Gaeilge
    • ગુજરાતી
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • Հայերեն
    • हिन्दी
    • Hrvatski
    • Ilokano
    • Bahasa Indonesia
    • Interlingua
    • Ирон
    • Íslenska
    • Italiano
    • Jawa
    • ಕನ್ನಡ
    • ქართული
    • Қазақша
    • Ikirundi
    • Kongo
    • Kurdî
    • Кыргызча
    • Latina
    • Latviešu
    • Лезги
    • Lietuvių
    • Magyar
    • मैथिली
    • Македонски
    • മലയാളം
    • मराठी
    • მარგალური
    • Bahasa Melayu
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • မြန်မာဘာသာ
    • नेपाली
    • नेपाल भाषा
    • 日本語
    • Нохчийн
    • Norsk bokmål
    • Norsk nynorsk
    • Occitan
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • Перем коми
    • Polski
    • Português
    • Română
    • Romani čhib
    • Runa Simi
    • Русский
    • Саха тыла
    • संस्कृतम्
    • Scots
    • සිංහල
    • Simple English
    • سنڌي
    • Slovenčina
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Sunda
    • Suomi
    • Svenska
    • Tagalog
    • தமிழ்
    • Taqbaylit
    • Татарча / tatarça
    • တႆး
    • తెలుగు
    • ไทย
    • Тоҷикӣ
    • Türkçe
    • Удмурт
    • Українська
    • Tiếng Việt
    • 吴语
    • 粵語
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 10 December 2021, at 08:46 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop